Commit Graph

2044 Commits

Author SHA1 Message Date
Michael McCandless 89ea7dfa59 improve javadocs for IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@698024 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 22:41:33 +00:00
Michael McCandless 6927ee46a4 LUCENE-1396: improve PhraseQuery.toString: gaps are shown with a ? and multiple terms at the same position are joined with |
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@697469 13f79535-47bb-0310-9956-ffa450edef68
2008-09-21 10:41:41 +00:00
Michael McCandless 5433872499 LUCENE-1392: small javadocs/extra imports fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@697115 13f79535-47bb-0310-9956-ffa450edef68
2008-09-19 14:51:04 +00:00
Michael McCandless 7987b38f46 LUCENE-1395: javadoc fix for SegmentMerger
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@697110 13f79535-47bb-0310-9956-ffa450edef68
2008-09-19 14:45:33 +00:00
Grant Ingersoll a8c0a8a810 LUCENE-1279: Add support for Collator to RangeFilter, etc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@696056 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 21:03:21 +00:00
Michael McCandless 31811e9f45 LUCENE-1379: fix corner case when Similarity.sloppyFreq() returns 0.0 the last matching doc is skipped
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@696013 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 19:25:07 +00:00
Michael McCandless 088a42b846 LUCENE-1135: fix rare deadlock case in testAddIndexOnDiskFull
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@696005 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 18:49:16 +00:00
Michael McCandless b88b6a73ad LUCENE-1388: add initialValue() method to CloseableThreadLocal
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695899 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 14:24:17 +00:00
Michael McCandless 9d23731bea more javadocs fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695581 13f79535-47bb-0310-9956-ffa450edef68
2008-09-15 19:01:33 +00:00
Michael McCandless 1ec2ab7d5a fix IndexWriter's javadocs for commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695574 13f79535-47bb-0310-9956-ffa450edef68
2008-09-15 18:33:33 +00:00
Otis Gospodnetic 0195fcd03d LUCENE-1378 - Removed the remaining 199 @author references
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695514 13f79535-47bb-0310-9956-ffa450edef68
2008-09-15 15:42:11 +00:00
Otis Gospodnetic 8d02d7859f LUCENE-1131 - Added numDeletedDocs() to IndexReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695510 13f79535-47bb-0310-9956-ffa450edef68
2008-09-15 15:33:15 +00:00
Michael McCandless d2aeaeeff2 add missing copyright headers
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695211 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 12:38:31 +00:00
Michael McCandless ac6ee32b60 LUCENE-1383: workaround the 'leak' in Java's ThreadLocal to prevent Lucene from causing OutOfMemoryError in certain situations, eg J2EE applications
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@695184 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 10:32:59 +00:00
Michael McCandless f82e52e3bf print stack trace when thread test fails
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@694808 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 21:14:08 +00:00
Michael McCandless 5790a86987 move comment to the right place
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@694665 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 09:43:06 +00:00
Michael McCandless 4218996230 LUCENE-1366: rename Field.Index.* options
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@694004 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 21:38:52 +00:00
Chris M. Hostetter ccf96e6b6b we have less and less vector refrences, let's switch the example to something more common
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@693997 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 21:30:52 +00:00
Grant Ingersoll 2bb9ab2246 LUCENE-1354: Provide programmatic access to CheckIndex
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@693508 13f79535-47bb-0310-9956-ffa450edef68
2008-09-09 16:34:18 +00:00
Michael McCandless d5a40278bc LUCENE-1369: switch from Hashtable to HashMap and from Vector to List, when possible
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@692921 13f79535-47bb-0310-9956-ffa450edef68
2008-09-07 19:22:40 +00:00
Michael McCandless 6242cb3322 LUCENE-1151: fix misleading javadoc comment and testcase for StandardAnalyzer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@692634 13f79535-47bb-0310-9956-ffa450edef68
2008-09-06 10:58:33 +00:00
Michael McCandless 9e88734177 LUCENE-1126: modify JFlex grammar to fallback to the JRE's Character.isDigit() (using :digit:) and Character.isLetter() (using :letter:) to define inclusion of unicode characters
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@692211 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 19:48:29 +00:00
Grant Ingersoll f262830a7f fix minor typo in javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@692109 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 15:36:08 +00:00
Michael McCandless e398f4e930 LUCENE-1376: catch BG merge exceptions even if all merges finish before FG thread (running optimize) advances to while loop
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691964 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 11:14:04 +00:00
Michael McCandless e6dcf14620 LUCENE-1375: added IndexCommit.getTimestamp method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691952 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 09:40:29 +00:00
Doron Cohen 80aed8ddae LUCENE-1356: Allow easy extensions of TopDocCollector.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691824 13f79535-47bb-0310-9956-ffa450edef68
2008-09-03 23:18:51 +00:00
Michael McCandless 626fa7664f LUCENE-1374: fix test case to close reader/writer in try/finally; add assert b!=null in RAMOutputStream.writeBytes (matches FSIndexOutput which hits NPE)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691694 13f79535-47bb-0310-9956-ffa450edef68
2008-09-03 17:34:29 +00:00
Michael McCandless 3f65c64d9e LUCENE-1374: fixed NPE case when merging compressed fields with heterogeneous segments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691617 13f79535-47bb-0310-9956-ffa450edef68
2008-09-03 13:59:31 +00:00
Michael McCandless 4ae5fcbf53 LUCENE-1371: add convenience method TopDocs Searcher.search(Query query, int n)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@691549 13f79535-47bb-0310-9956-ffa450edef68
2008-09-03 09:06:13 +00:00
Michael McCandless bfff632dbc LUCENE-753: Add new NIOFSDirectory implementation to use java.nio.* for access the same file concurrently with no locking
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@690539 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 17:33:06 +00:00
Michael McCandless 4b9a300730 LUCENE-1135: fix concurrency issues in IndexWriter when calling commit, rollback, close, optimize, addIndexes*
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@690537 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 17:16:29 +00:00
Michael McCandless 1bbfaa5445 LUCENE-1061: make it simpler to override concrete Query implementations created by QueryParser by factoring out protected newXXXQuery() methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@690535 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 17:12:19 +00:00
Yonik Seeley 09114186ba javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@690306 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 15:39:52 +00:00
Yonik Seeley 0b9512aa23 fix OpenBitSet.hashCode rotate
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@690302 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 15:33:44 +00:00
Michael McCandless 4661a1b02b LUCENE-1367: add IndexCommit.isDeleted()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@689791 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 11:50:15 +00:00
Michael McCandless 85102bd84a LUCENE-1280: prevent NPE in PhraseQuery.toString() when the PhraseQuery is empty
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@688689 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 10:02:16 +00:00
Michael McCandless f0d2a151ca LUCENE-1329: enable read-only IndexReaders; the default is to get a read-write IndexReader on open, but in 3.0 this will change to read-only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@688323 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 13:47:18 +00:00
Michael McCandless 59b8dca69a LUCENE-1365: deprecate addIndexes(Directory[]) in favor of addIndexesNoOptimize
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@688315 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 13:32:05 +00:00
Grant Ingersoll 09467ad18e LUCENE-1001: Make payloads accessible from SpanQuery's
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@687379 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 16:06:36 +00:00
Michael McCandless bb6b711718 LUCENE-1333: improvements to Token reuse API and full cutover to reuse API for all core and contrib analyzers
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@687357 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 14:38:07 +00:00
Michael McCandless 0541628af1 LUCENE-1249: fix small issues with TermVectorsReader.clone
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@687046 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 13:01:11 +00:00
Michael McCandless a486bff689 fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@687039 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 12:48:02 +00:00
Michael McCandless e31a9da835 LUCENE-1334: add Term(String fieldName) constructor that sets term text to empty string
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@687014 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 10:40:39 +00:00
Michael McCandless bc47023b3a fix javadoc warnings in Searcher.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@686801 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 15:58:30 +00:00
Michael McCandless a26f3734c6 LUCENE-1219: add Fieldable.getBinaryValue/Offset/Length reuse API
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@686723 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 10:31:03 +00:00
Otis Gospodnetic 4d33a23bd2 - Javadoc typos fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@684406 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 04:09:56 +00:00
Doron Cohen 78ffc2800f javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@683593 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07 11:51:18 +00:00
Michael McCandless 8d8e83518c LUCENE-1301: fix cause of rare NPE in TestIndexWriterExceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@683206 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 09:56:00 +00:00
Michael McCandless 60b43961da LUCENE-1340: add Fieldable.omitTf to not index term freq, positions, payloads for the field
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@682812 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 17:17:42 +00:00
Grant Ingersoll dd066edcf1 LUCENE-1351: clean additional ligatures
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@682766 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 15:47:33 +00:00
Grant Ingersoll 316cfd14df LUCENE-1349: Mark Fieldable as changeable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@682689 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 12:27:42 +00:00
Doron Cohen 82c1724efb LUCENE-1348: relax TestTimeLimitedCollector.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@682619 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 07:58:07 +00:00
Doron Cohen 0eb1be2b48 LUCENE-1310: Phrase query with term repeated 3 times needed more slop than expected.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@682186 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 15:40:14 +00:00
Michael McCandless e217b2b883 LUCENE-1347: fix hang in rollback() after previous rollback() call hit exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@681082 13f79535-47bb-0310-9956-ffa450edef68
2008-07-30 15:38:16 +00:00
Yonik Seeley d916665ab7 LUCENE-1346: replace Vector with ArrayList in Queries
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@680361 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 13:58:39 +00:00
Michael McCandless 7c842e3c34 LUCENE-1339: make IndexReader incRef and decRef expert public methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@678716 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 11:14:36 +00:00
Michael McCandless 7198ead131 LUCENE-1301: refactor DocumentsWriter into a package-private indexing chain, as a first step towards flexible indexing
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@677865 13f79535-47bb-0310-9956-ffa450edef68
2008-07-18 09:20:12 +00:00
Michael McCandless 43c2038ca0 fix javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@675503 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 10:36:05 +00:00
Michael McCandless a9ce6fd334 LUCENE-1331: catch if FSDirectory is used after being closed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@675485 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 09:27:44 +00:00
Michael McCandless dc65b35533 LUCENE-1324: add TokenFilter.reset()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673990 13f79535-47bb-0310-9956-ffa450edef68
2008-07-04 10:06:17 +00:00
Michael McCandless 22f76f1ebf LUCENE-1325: add IndexCommit.isOptimized() method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673979 13f79535-47bb-0310-9956-ffa450edef68
2008-07-04 09:43:12 +00:00
Michael McCandless 4099732195 LUCENE-1326: be sure to call Inflator/Deflator.end when working with zlib for compressed fields, to avoid memory leaks
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673972 13f79535-47bb-0310-9956-ffa450edef68
2008-07-04 09:20:41 +00:00
Michael McCandless b60829fb0c LUCENE-1322: remove unnecessary synchronization in CSIndexInput
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673371 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 11:57:27 +00:00
Michael McCandless ebf4625870 LUCENE-1323: fix MultiReader to make a private copy of the subReaders array
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673103 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 15:30:31 +00:00
Michael McCandless 5890f58fa4 improve javadocs for numRamDocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@672290 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 15:00:08 +00:00
Michael McCandless 13c08a947c LUCENE-1311: add IndexReader.listCommits & IndexReader.open methods to open a specific commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@671218 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 15:41:06 +00:00
Doron Cohen d69885c9d7 LUCENE-1303: BoostingTermQuery's explanation marked as a Match
depending only upon the non-payload part of the score.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@666949 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 04:15:10 +00:00
Doron Cohen 5503aba23b fix javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@666100 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 13:37:53 +00:00
Michael McCandless 6bbb079a68 fix IndexCommit.equals to compare version of the commit instead of segments filename, in addition to the Directory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@664419 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 00:51:11 +00:00
Michael Busch 455afb322d Thread.getId() is a java 1.5 feature. Change to Thread.getName().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@662545 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 20:21:38 +00:00
Michael McCandless d8c8c0e2c0 LUCENE-1288: add getVersion, getGeneration to IndexCommit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@660904 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 11:00:33 +00:00
Michael Busch df7fb0f45c LUCENE-1189: Fixed the QueryParser to handle escaped characters within quoted terms correctly.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@660674 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 19:55:36 +00:00
Michael Busch 33aea48b02 Add missing javadoc to Cache.synchronizedCache().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659875 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 21:07:48 +00:00
Michael Busch 1d6d186888 LUCENE-1187: Fix ChainedFilterTest.java and BooleanFilterTest.java to not reference class from test/org/apache/lucene/search/, which is not in the contrib classpath.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659740 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 01:16:30 +00:00
Michael Busch 0ebfcc663e LUCENE-1187: ChainedFilter and BooleanFilter now work with new Filter API and DocIdSetIterator-based filters.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659635 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 19:25:05 +00:00
Michael Busch 08a2eb4665 LUCENE-1290: Deprecate org.apache.lucene.search.Hits, Hit and HitIterator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659626 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 18:57:55 +00:00
Michael Busch eb0596c721 LUCENE-1195: Improve term lookup performance by adding a LRU cache to the TermInfosReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659602 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 17:20:31 +00:00
Michael Busch a7f1cbc5be Fixed TestIndexReaderReopen.java to fail when a thread hits an error in testThreadSafety().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659326 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 00:20:32 +00:00
Michael McCandless 2175d84d64 LUCENE-1282: added workaround for nasty JRE bug that strikes when merging very large segments; also added safety to abort the merge (preventing index corruption) if we detect the bug has struck
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@658902 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 22:14:16 +00:00
Michael Busch 4eb8692588 Set eol-style to native for all files in src/java and src/test that did not
have this property set before.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@658136 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 07:40:54 +00:00
Michael McCandless 6bafbdf98f LUCENE-1283: factor out ByteSliceWriter from DocumentsWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657397 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 16:49:18 +00:00
Michael McCandless 73ab487b7b fix intermittant failure when random byte sequence creates invalid UTF16 string
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657320 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 08:12:09 +00:00
Otis Gospodnetic a32375551e LUCENE-1060 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657278 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 01:47:53 +00:00
Michael McCandless b591e8c580 LUCENE-1282: upgrade an assert to a real check, to work around Sun JRE hotspot bug to prevent index corruption
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@655030 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 08:48:50 +00:00
Michael McCandless 39651e029d LUCENE-510: fix backwards compatibility bug when bulk-merging stored fields from pre-UTF8 segments that contain non-ascii stored fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@654774 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 12:04:46 +00:00
Michael McCandless 5a4f2572c0 fix incorrect javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@654767 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 11:31:51 +00:00
Michael McCandless 8540820fe1 LUCENE-1274: add preparCommit() to IW to do phase 1 of 2-phase commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@653878 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:41:10 +00:00
Michael McCandless 8f1feaa484 LUCENE-1255: revert this change (allow pos=-1 again) since it's not backwards compatible
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@652116 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 21:01:55 +00:00
Michael McCandless aecd167b05 LUCENE-1267: record per-segment deletion count in segments file; add maxDoc() & numDocs() in IW; deprecate docCount() in favor of maxDoc()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@651919 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 11:14:10 +00:00
Michael McCandless 963ec9e522 LUCENE-1270: fix intermittant case where IW.close() can hang after IW.addIndexesNoOptimize is called
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@651026 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 19:37:21 +00:00
Michael McCandless e35d9f6c62 LUCENE-1255: in CheckIndex, accept pos=-1 if index is < 2.4; added NOTE to remind user to turn on assertions for more thorough checking
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@650984 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 18:26:07 +00:00
Doron Cohen abc0d25a52 LUCENE-1157 and LUCENE-1256: HTML changes log, created automatically from CHANGES.txt.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649949 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 18:29:15 +00:00
Michael McCandless 59c8f9cd76 add warnings to javadoc for IndexModifier.docCount
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649598 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 16:35:08 +00:00
Michael McCandless 074df18090 LUCENE-1266: actually use the doWait param in IndexWriter.optimize(boolean doWait)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649429 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 09:35:44 +00:00
Michael McCandless 44daebab7c LUCENE-1150: put back public tokenImage/TOKEN_TYPES in StandardTokenizer and WikipediaTokenizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@648183 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 08:48:41 +00:00
Michael McCandless a6ff3c93df LUCENE-1262: fix issue that causes BufferedIndexInput to return incorrect bytes after exception was hit during refill
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647639 13f79535-47bb-0310-9956-ffa450edef68
2008-04-13 22:55:17 +00:00
Chris M. Hostetter 360051ec49 clarify slightly confusing comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647364 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 02:25:54 +00:00
Michael McCandless 62cf2ecb7f fix typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@645539 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 14:30:34 +00:00
Michael McCandless 5cfd9c8244 LUCENE-1255: if position is negative, silently change it to 0
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@644400 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 16:42:06 +00:00
Michael McCandless 378442872f LUCENE-1254: don't reject segments > maxMergeDocs/Size in IW.addIndexesNoOptimize
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@643303 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 06:58:42 +00:00
Michael McCandless 09b3a56ae2 LUCENE-1251: be sure to close the descriptor even if super.close() hits an exception, in FSIndexOutput.close
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@642339 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 19:10:58 +00:00
Michael McCandless 828333ab52 LUCENE-1247: remove always-true assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@642152 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 09:06:17 +00:00
Otis Gospodnetic 758e123591 - Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641497 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 19:22:28 +00:00
Michael McCandless 8af3598b74 LUCENE-510: change index format to store strings as true UTF8 not modified UTF8
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641303 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 13:39:25 +00:00
Michael McCandless 0bd6f8ec04 LUCENE-1244: don't use hard-coded path in AnalysisTest
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@640741 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 08:35:51 +00:00
Michael McCandless 8b0b533472 LUCENE-1242: small speedups to bulk merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@640516 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:45:55 +00:00
Michael McCandless df7cf49580 fix possible false failure in testCloseWithThreads case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@639961 13f79535-47bb-0310-9956-ffa450edef68
2008-03-22 08:23:41 +00:00
Michael McCandless 10230efa5d just adding some further asserts on the size of the term vector & stored fields index files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@639399 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 18:21:33 +00:00
Doron Cohen 4bd9dba46f LUCENE-1238: Fixed intermittent failures of TestTimeLimitedCollector.testTimeoutMultiThreaded.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@638568 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 21:08:08 +00:00
Michael McCandless a7e55a2a79 LUCENE-1233: correct javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@637844 13f79535-47bb-0310-9956-ffa450edef68
2008-03-17 11:31:46 +00:00
Grant Ingersoll 47da76d1b9 LUCENE-1234: Make BoostingSpanScorer protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@637331 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 01:48:04 +00:00
Michael McCandless b309970c3d LUCENE-1233: return empty array instead of null for certain get*s methods in Document
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@637053 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 11:08:28 +00:00
Doron Cohen 966ae0382e LUCENE-1228: IndexWriter.commit() was not updating the index version.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@637041 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 10:35:18 +00:00
Michael Busch b3e82f8939 LUCENE-1226: Fixed IndexWriter.addIndexes(IndexReader[]) to commit successfully created compound files.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636893 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 20:57:32 +00:00
Michael McCandless 2768bacab2 LUCENE-1223: fix lazy field loading to not allow string field to be loaded as binary, nor vice/versa
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636568 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 23:02:38 +00:00
Michael McCandless 4b3709be87 LUCENE-1214: preseve original exception in SegmentInfos write & commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636467 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 19:23:17 +00:00
Michael McCandless e5f9b4e1cb LUCENE-1212: factor DocumentsWriter into separate source files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636458 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 19:09:12 +00:00
Michael McCandless a6258c76fd LUCENE-1217: use Field.isBinary instead of 'instanceof'
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636139 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 22:53:50 +00:00
Michael McCandless 9dc489edb1 LUCENE-1222: make sure IW.doAfterFlush is called regardless of whether adds or deletes are flushed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636045 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 18:16:31 +00:00
Doron Cohen 29560fcf50 LUCENE-1213: MultiFieldQueryParser ignored slop for single field phrases.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635839 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 08:06:54 +00:00
Michael McCandless 6420539c07 LUCENE-1211: small speedup to DocumentsWriter by optimizing the common case of sorting only 2 values
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635193 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 08:26:16 +00:00
Michael McCandless fa4d10baf9 LUCENE-1210: fix deadlock case on hitting exception in mergeInit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635190 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 08:19:00 +00:00
Michael McCandless 10f2695b65 LUCENE-1208: if exception is hit after marking flushPending but before flushing, clear flushPending to prevent deadlock
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@634831 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 21:47:15 +00:00
Michael McCandless f3effe3627 LUCENE-1204: improve TestStressIndexing2 test by interleaving deletes by term & query
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@634355 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 17:20:56 +00:00
Michael McCandless c113c6419d LUCENE-1201: add IndexReader.getIndexCommit to see which index commit a reader is reading
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@634251 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 12:57:08 +00:00
Michael McCandless 69f35943bd LUCENE-1200: prevent rare deadlock in IndexWriter.addIndexes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@634232 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 11:52:46 +00:00
Michael McCandless 5b113c8af6 LUCENE-1194: add IndexWriter.deleteDocuments(Query)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@634219 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 11:02:04 +00:00
Michael McCandless 33bee3c60c LUCENE-1199: do defensive check of indexReader != null before trying to close it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632879 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 23:34:40 +00:00
Michael McCandless 3efa1c47ca LUCENE-1198: don't increment numDocsInRAM unless DocumentsWriter.ThreadState.init succeeds
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632871 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 23:24:07 +00:00
Daniel Naber 00fe257ddf LUCENE-1174: remove outdated information from javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632581 13f79535-47bb-0310-9956-ffa450edef68
2008-03-01 11:46:47 +00:00
Michael McCandless b18dde8a43 LUCENE-1197: fix DocumentsWriter to not overcount RAM usage when term vectors are on
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632306 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 12:42:47 +00:00
Michael McCandless 7af43e46d6 LUCENE-1191: if we hit OOM then don't commit any changes to the index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632124 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 21:35:42 +00:00
Michael McCandless 8f9781bbdb LUCENE-1196: don't throw EOF when seeking to the end of RAMFile when file is multiple of 1024 in length
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@632120 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 21:13:59 +00:00
Michael McCandless d7d1d680f2 LUCENE-1184: allow SnapshotDeletionPolicy to be re-used across close/open of IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@631223 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 14:23:45 +00:00
Yonik Seeley 6302172390 fix for reordering scorers from highest to lowest original skip (possible slight performance gain only... no correctness implications)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@630698 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 22:43:24 +00:00
Michael Busch b86e8e9097 LUCENE-1185: Avoid checking if the TermBuffer 'scratch' in SegmentTermEnum is null for every call of scanTo().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@630377 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 02:35:14 +00:00
Grant Ingersoll d5271e5619 LUCENE-1182: Added delegation to scorePayload
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@629772 13f79535-47bb-0310-9956-ffa450edef68
2008-02-21 13:15:19 +00:00
Otis Gospodnetic c61a33d4a2 - Fixed javadoc typos for expungeDeletes()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628423 13f79535-47bb-0310-9956-ffa450edef68
2008-02-17 04:15:30 +00:00
Michael McCandless b9dbd3b10e LUCENE-1179: provide more details when terms are out of order
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628105 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 16:23:31 +00:00
Michael McCandless cc64e6fdde LUCENE-1179: allow Fields with empty string field names
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628080 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 15:04:16 +00:00
Michael McCandless 9f2e3cf7bc LUCENE-1172: some small additional speedups for DocumentsWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627707 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 11:22:04 +00:00
Michael McCandless ac32a540c3 LUCENE-997: add missing synchronization in unit test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627700 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 10:36:31 +00:00
Michael McCandless 8c9f2ce227 LUCENE-1044: fix CheckIndex tool to properly identify 2.4 index format
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627315 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 09:04:34 +00:00
Doron Cohen 4b8b5ce1d7 fix multi-thread test for LUCENE-997 (search timeout).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627298 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 07:50:42 +00:00
Michael McCandless ec18d3ad7c LUCENE-1176: fix corruption case when adding docs with no term vectors followed by docs with term vectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627122 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 21:31:25 +00:00
Doron Cohen 527957bc94 LUCENE-997: Add search timeout (partial) support.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@627101 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 20:55:32 +00:00
Michael McCandless 40f9324c62 LUCENE-1175: add missing synchronization
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@621685 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 18:27:14 +00:00
Yonik Seeley fd5629c3f0 change seed for each test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@620669 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 23:37:39 +00:00
Michael McCandless 19fa2fb9fb LUCENE-1173: fix corruption in bulk merging of stored fields when autoCommit=false
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@620668 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 23:25:54 +00:00
Michael McCandless 1d4ab68796 LUCENE-325: add expungeDeletes methods to IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@620604 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 20:34:49 +00:00
Michael McCandless 862c44215a LUCENE-1044: sync index files in IndexWriter to ensure index is intact if machine or OS crashes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@620576 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 18:56:09 +00:00
Michael McCandless 4e99ddafe9 LUCENE-1171: better robustness in DocumentsWriter on hitting OOM at various times
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@620478 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 12:55:47 +00:00
Michael McCandless 7965c59942 LUCENE-1164: when too many merge threads are running, pause until one or more finishes, instead of doing the merge with the foreground thread
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619890 13f79535-47bb-0310-9956-ffa450edef68
2008-02-08 14:01:48 +00:00
Michael Busch 0d2df7b785 Rename local variable docIdSetIterator to filterDocIdIterator in IndexSearcher.java.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619685 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 23:22:34 +00:00
Michael Busch 9adff2072a LUCENE-1169: Fixed bug in IndexSearcher.search(): searching with a filter might miss some hits because scorer.skipTo() is called without checking if the scorer is already at the right position.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619676 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 22:46:37 +00:00
Michael McCandless 9716742942 LUCENE-1168: fix corruption cases with mixed term vectors and autoCommit=false
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619640 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 21:13:36 +00:00
Michael McCandless fc4bc1f5af LUCENE-1084: fix more test cases to use user-defined MaxFieldLength ctor for IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619637 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 21:07:35 +00:00
Michael McCandless 9a186ed521 LUCENE-1084: allow user-specified max field length when instantiating IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619545 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 18:22:21 +00:00
Michael McCandless 7ea8bd35f4 LUCENE-1084: fix the remaining deprecated calls to IndexWriter ctors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618764 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 20:07:29 +00:00
Michael McCandless 53d3a0cfab LUCENE-1163: get CharArraySet.contains(char[], int offset, int length) to actually pay attention to offset
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618652 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 14:02:32 +00:00
Doron Cohen d941d1276f LUCENE-1157: Formatable changes log.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618636 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 13:02:12 +00:00
Michael McCandless 59c76d2f47 LUCENE-1084: fix some more deprecated IndexWriter instantiations in unit tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618607 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 11:12:53 +00:00
Michael McCandless 0ec1870b11 LUCENE-1151: don't mis-identify HOST as ACRONYM, but, provide static method/property to revert to backwards-compatible but buggy behavior
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618001 13f79535-47bb-0310-9956-ffa450edef68
2008-02-03 15:33:16 +00:00
Michael Busch 3e6a40e89e LUCENE-1134: Fixed BooleanQuery.rewrite to only optimze a single clause query if minNumShouldMatch<=0.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617963 13f79535-47bb-0310-9956-ffa450edef68
2008-02-03 08:21:16 +00:00
Michael Busch 18b61286fa LUCENE-584: Changed Filter API to return a DocIdSet instead of a java.util.BitSet. This allows using more efficient data structures for Filters and makes them more flexible.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617859 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 19:04:03 +00:00
Grant Ingersoll 1caf5cb9ce LUCENE-1045: Added short, byte support
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617745 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 03:06:08 +00:00
Michael McCandless 65ec80028c catching up fileformats docs to recent changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617727 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 01:00:04 +00:00
Michael McCandless 115faf7b5d LUCENE-1160: see which index Directory a MergeException came from; make CMS more easily subclassed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617632 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 20:22:25 +00:00
Michael McCandless 7d03a8bff7 LUCENE-1084: fixing a few more IndexWriter instantiations to not use deprecated ctors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617104 13f79535-47bb-0310-9956-ffa450edef68
2008-01-31 11:23:38 +00:00
Doron Cohen 28605048e1 trivial, javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616738 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 12:29:48 +00:00
Daniel Naber e793bd52be LUCENE-1158: DateTools UTC/GMT mismatch -> fixing the javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616513 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 20:46:33 +00:00
Michael McCandless 38f8d4e837 LUCENE-1150: make StandardAnalyzer tokenizer constants public again (public access was accidentally removed with LUCENE-966)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616248 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 10:51:44 +00:00
Daniel Naber 66b5df6788 small typo fix in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615448 13f79535-47bb-0310-9956-ffa450edef68
2008-01-26 12:11:57 +00:00
Michael McCandless eb415f5171 LUCENE-1120: also add 2.3 index tests to the backwards compatibility test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615187 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 11:45:12 +00:00
Michael McCandless 76dfb92a44 LUCENE-1120: speed up merging of term vectors by bulk-copying the raw bytes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615183 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 11:32:32 +00:00
Michael McCandless ee835ccf21 LUCENE-1084: change all IW ctors to require up-front specification of max field length; deprecated existing ones
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615168 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 10:21:15 +00:00
Michael McCandless 674eae39ec LUCENE-705: pre-set the CFS file length before building it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615160 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 09:42:29 +00:00
Michael McCandless f99e4e7260 LUCENE-1147: add -segment option to CheckIndex tool, to check only a specific segment or segments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615159 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 09:36:21 +00:00
Grant Ingersoll 1f0e88f186 fixed javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@614894 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 15:01:59 +00:00
Grant Ingersoll 09e2766734 LUCENE-1137: Added Token.get/setFlags() Release the hounds
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@614891 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 14:58:34 +00:00
Michael McCandless 9b2c39f75d LUCENE-1144: fix NPE during DW.abort after OOM error
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@613645 13f79535-47bb-0310-9956-ffa450edef68
2008-01-20 18:35:26 +00:00
Michael McCandless 17fede30c0 LUCENE-1143: clear docStoreOffset when DocumentsWriter aborts
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@613606 13f79535-47bb-0310-9956-ffa450edef68
2008-01-20 16:50:58 +00:00
Michael Busch 7f4bdd5a80 Fix core jar name in gcj Makefile.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@613314 13f79535-47bb-0310-9956-ffa450edef68
2008-01-18 23:37:55 +00:00
Grant Ingersoll 82980ed7c4 LUCENE-1140 patch to fix StandardAnalyzer stop set NPE and test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@613282 13f79535-47bb-0310-9956-ffa450edef68
2008-01-18 21:28:05 +00:00
Grant Ingersoll ed9fdba601 LUCENE-1050 and LUCENE-1138 fixes for lock problem
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@612868 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 17:00:43 +00:00
Michael McCandless f7740afe84 LUCENE-1130: fix thread safety issues when hitting IOExceptions in DocumentsWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@611855 13f79535-47bb-0310-9956-ffa450edef68
2008-01-14 17:06:21 +00:00
Michael Busch a43f312375 - Add missing Wikipedia link to the javadocs menu
- Disable "Lucene 2.3 Documentation" tab; it's not released yet
- Remove javadocs.html and javadocs.pdf

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@611619 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 18:36:22 +00:00
Michael McCandless 8068979bec fix off-by-one error
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@611296 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 20:46:05 +00:00
Michael Busch da6c43f5d7 Separate project's web site from version-specific documentation.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@611094 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 07:50:59 +00:00
Michael McCandless 5aaf587516 LUCENE-1125: fix over-zero-filling that was drastically slowing down small docs w/ term vectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@610858 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 18:11:53 +00:00
Michael McCandless 2677871bbb LUCENE-508: make sure SegmentTermEnum.prev() is accurate (= last term) after next() returns false
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@609780 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 21:15:48 +00:00
Michael McCandless eaba22c72a Fixed a few issues uncovered by YourKit profiling:
* We were allocating 2X the size of each char block, but only
    actually using the first half!
  * Improved accuracy of numBytesAlloc tracking in DW
  * Small optimization to not use token.setTermText from DW


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@609546 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 09:48:06 +00:00
Michael McCandless 393a1d0575 LUCENE-1119: small optimization to TermInfosWriter.add to take a char[] instead of Term/String
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@609378 13f79535-47bb-0310-9956-ffa450edef68
2008-01-06 19:29:45 +00:00
Michael McCandless 26bc874e62 LUCENE-1118: skip terms > 255 (by default) characters in length in StandardAnalyzer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@609330 13f79535-47bb-0310-9956-ffa450edef68
2008-01-06 15:37:44 +00:00
Michael McCandless d86944d06f fix javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@608956 13f79535-47bb-0310-9956-ffa450edef68
2008-01-04 18:46:33 +00:00
Grant Ingersoll f715fc6031 LUCENE-1103
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@608852 13f79535-47bb-0310-9956-ffa450edef68
2008-01-04 14:29:15 +00:00
Michael McCandless 2d633f98a2 LUCENE-1112: skip immense terms and mark a doc for deletion if it hits a non-aborting exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@608534 13f79535-47bb-0310-9956-ffa450edef68
2008-01-03 15:49:50 +00:00
Doron Cohen 40eb1cd53f LUCENE-766: test added for adding two fields with same
name but different term vector setting.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@608367 13f79535-47bb-0310-9956-ffa450edef68
2008-01-03 07:32:38 +00:00
Daniel Naber 0ae1e1a905 LUCENE-1113: fix for Document.getBoost() documentation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607913 13f79535-47bb-0310-9956-ffa450edef68
2008-01-01 21:05:15 +00:00
Doron Cohen f4639c0ab0 LUCENE-1095: option added to StopFilter and QueryParser to consider position increments.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607591 13f79535-47bb-0310-9956-ffa450edef68
2007-12-30 21:19:17 +00:00
Doron Cohen b367e863e6 LUCENE-1101: TokenStream.next(Token) reuse 'policy': calling Token.clear() should be responsibility of token producer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607521 13f79535-47bb-0310-9956-ffa450edef68
2007-12-30 07:34:30 +00:00
Doron Cohen efbd1260a9 Rename section "Javadocs" to "Javadocs for Official Releases",
Following discussion http://www.nabble.com/site-javadocs-link-broken-tt14507459.html


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607350 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 22:43:36 +00:00
Grant Ingersoll ac27fb02de Changed from overriding next(Token) to next()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607246 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 14:17:48 +00:00
Grant Ingersoll da2a912919 LUCENE-1068: updated StandardTokenizer, Analyzer to allow for the replaceInvalidAcronym
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607161 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 02:46:11 +00:00
Doron Cohen 93b9adc280 LUCENE-1099: Make Tokenizer.reset(Reader) public.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606865 13f79535-47bb-0310-9956-ffa450edef68
2007-12-26 09:21:46 +00:00
Michael McCandless 9a9d138d8b remove 'implements Cloneable' from MergePolicy.MergeSpecification
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606657 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 02:35:12 +00:00
Michael Busch c0040adc27 LUCENE-1098: Make inner class StandardAnalyzer.SavedStreams static and final.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606647 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 00:48:31 +00:00
Michael Busch 3084aecc85 Added news item to website about nightly maven snapshots
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606641 13f79535-47bb-0310-9956-ffa450edef68
2007-12-23 23:57:33 +00:00
Doron Cohen 23da0335a5 LUCENE-1096: Fixed Hits behavior when hits' docs are deleted along with iterating the hits.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606614 13f79535-47bb-0310-9956-ffa450edef68
2007-12-23 20:50:29 +00:00
Michael McCandless 89fe185d71 LUCENE-1097: change IndexWriter.close(false) to ask merge threads to abort, and, wait for them to finally finish
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606441 13f79535-47bb-0310-9956-ffa450edef68
2007-12-22 10:06:28 +00:00
Grant Ingersoll 6e20e41418 should not have been committed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606305 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 20:45:35 +00:00
Michael McCandless 0c6efd3dee make sure to close the IndexInput used to read index version
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606299 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 20:31:48 +00:00
Grant Ingersoll 7dfe984867 Checkin of WikpediaTokenizer that extends StandardTokenizer using JFlex. examples/wikipedia/README contains info on running.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606292 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 20:08:24 +00:00
Grant Ingersoll 7a3a61e45d Checking in simple performance test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@605957 13f79535-47bb-0310-9956-ffa450edef68
2007-12-20 15:07:59 +00:00
Michael McCandless 52d307607c LUCENE-1094: don't corrupt fdt file on hitting an exception partway through indexing a document
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@605912 13f79535-47bb-0310-9956-ffa450edef68
2007-12-20 13:07:29 +00:00
Grant Ingersoll be794a3832 LUCENE-25 added test for stopwords in query parser
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@605535 13f79535-47bb-0310-9956-ffa450edef68
2007-12-19 13:36:32 +00:00
Grant Ingersoll 516143dea0 LUCENE-1045: Applied original LUCENE-1045.patch that refactors original 1045 patch to use ExtendedFieldCache and DOES NOT make FieldCache a class
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@605225 13f79535-47bb-0310-9956-ffa450edef68
2007-12-18 15:13:05 +00:00
Michael McCandless 905674805c LUCENE-1092: fix KeywordAnalyzer.reusableTokenStream so it can successfully be reused
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@605149 13f79535-47bb-0310-9956-ffa450edef68
2007-12-18 09:20:04 +00:00
Michael McCandless 10c1ec3a66 LUCENE-1089: add new PriorityQueue.insertWithOverflow method to allow for re-use
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@604949 13f79535-47bb-0310-9956-ffa450edef68
2007-12-17 18:05:13 +00:00
Doron Cohen c3f210db67 LUCENE-1019: CustomScoreQuery enhanced to support multiple ValueSource queries.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603837 13f79535-47bb-0310-9956-ffa450edef68
2007-12-13 06:28:27 +00:00
Doron Cohen adb9a5c594 LUCENE-1079: DocValues cleanup: constructor & getInnerArray().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603753 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 22:06:33 +00:00
Michael Busch c607f48fef Revert Lucene-944
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603415 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 23:38:01 +00:00
Grant Ingersoll c2130982e3 LUCENE-1042: Committed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603061 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 21:49:41 +00:00
Grant Ingersoll 8c18fd87a1 remove commented out code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603057 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 21:21:40 +00:00
Grant Ingersoll 07e7b557fe javadocs update
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603056 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 21:21:12 +00:00
Michael McCandless b0d2b1c90e LUCENE-1044: revert the doSync option to FSDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@602165 13f79535-47bb-0310-9956-ffa450edef68
2007-12-07 17:42:33 +00:00
Otis Gospodnetic 9d35e30330 - Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@602163 13f79535-47bb-0310-9956-ffa450edef68
2007-12-07 17:29:47 +00:00
Michael McCandless ce9b80539d LUCENE-1082: fix NPE in IndexReader.lastModified(*) methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@602055 13f79535-47bb-0310-9956-ffa450edef68
2007-12-07 10:13:11 +00:00
Grant Ingersoll 11895271a3 LUCENE-1058: override the close method so it doesn't try to close the null Reader input
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601748 13f79535-47bb-0310-9956-ffa450edef68
2007-12-06 14:42:58 +00:00
Michael Busch 2e678a307d LUCENE-1064: Changed TopDocs constructor to be public.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601662 13f79535-47bb-0310-9956-ffa450edef68
2007-12-06 09:06:40 +00:00
Grant Ingersoll 47d31b60f3 LUCENE-1080
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601602 13f79535-47bb-0310-9956-ffa450edef68
2007-12-06 03:34:06 +00:00
Michael McCandless 8a8944de1a LUCENE-1078: remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601337 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 13:59:37 +00:00
Doron Cohen a0c9992f0b make LuceneTestrCase abstract for junit to run smoother from Eclipse.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601222 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 06:41:14 +00:00
Michael McCandless 0d2d6475ac LUCENE-1072: make sure an exception raised in Tokenizer.next() leaves DocumentsWriter in OK state
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601121 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 22:29:42 +00:00
Michael McCandless c23cb457ef LUCENE-1075: fix possible thread hazard with IndexWriter.close(false)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601114 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 22:19:08 +00:00
Michael McCandless 5f73506dd3 LUCENE-1073: create SnapshotDeletionPolicy to facilitate taking a live backup of an index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601104 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 22:03:24 +00:00
Grant Ingersoll 72bb91f4ee Added some convenience constructors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600986 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 15:56:57 +00:00
Grant Ingersoll 1476b13d10 Rearranged javadocs location per Apache policy. Added in some Wiki links to help promote the wiki
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600915 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 12:55:23 +00:00
Grant Ingersoll db6b495182 constructor should have been public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600628 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 18:44:48 +00:00
Michael McCandless ddf136d928 LUCENE-1072: make sure on hitting a too-long term that IndexWriter is still usable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600465 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 10:09:10 +00:00
Grant Ingersoll 3372ce6f03 altered info about mailing list archives
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600372 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 20:37:38 +00:00
Grant Ingersoll a0b63a9a4f commented out OSSummit info until we know when it is scheduled
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600108 13f79535-47bb-0310-9956-ffa450edef68
2007-12-01 12:38:17 +00:00
Grant Ingersoll cad3d26ca4 Added some more javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599833 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 14:38:30 +00:00
Michael McCandless 97fbfb5427 LUCENE-982: add new method optimize(int maxNumSegments) to IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599766 13f79535-47bb-0310-9956-ffa450edef68
2007-11-30 10:09:45 +00:00
Grant Ingersoll 261382fd4e LUCENE-1058: Added new buffering tokenizer/token filter for reducing redundant analysis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599478 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 15:18:08 +00:00
Michael Busch 12d0cc180e remove obsolete todo comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599285 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 05:52:12 +00:00
Michael Busch 67e0d82230 LUCENE-1071: Fixed SegmentMerger to correctly set payload bit in the merged segment.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599264 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 04:43:03 +00:00
Michael McCandless 8e79f64fbc remove some dead/unnecessary code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@599131 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 20:20:21 +00:00
Michael McCandless db52f4ed7f LUCENE-1069: fix CheckIndex to properly take deletions into account
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598696 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:08:50 +00:00
Michael McCandless 6ebd306103 LUCENE-1067: make access to RAMFile's buffers thread safe
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598693 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:01:21 +00:00
Daniel Naber 47c8416e68 LUCENE-921: add some javadoc / turn comments into javadoc comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598462 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 23:31:39 +00:00
Daniel Naber 5882ec0659 LUCENE-1045: make SortField.AUTO work with long
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598376 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 18:45:39 +00:00
Daniel Naber 498d582423 remove unused variables; typo fixes in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598317 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 15:48:51 +00:00
Michael McCandless e729f9dee5 LUCENE-1059: various small fixes based on code inspection from Tzvika Barenholz
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598296 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 14:52:01 +00:00
Daniel Naber 1a7f578c26 fix typo in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598074 13f79535-47bb-0310-9956-ffa450edef68
2007-11-25 22:42:41 +00:00
Daniel Naber f668a48266 LUCENE-1066: better explain output for idf
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598072 13f79535-47bb-0310-9956-ffa450edef68
2007-11-25 22:39:33 +00:00
Michael Busch 54e5550c4d LUCENE-1062: Add setData(byte[] data), setData(byte[] data, int offset, int length), getData(), getOffset() and clone() methods to o.a.l.index.Payload. Also add the field name as arg to Similarity.scorePayload().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@597741 13f79535-47bb-0310-9956-ffa450edef68
2007-11-23 21:17:32 +00:00
Yonik Seeley f7ee9f6dfb LUCENE-693: Speed up nested conjunctions
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@597702 13f79535-47bb-0310-9956-ffa450edef68
2007-11-23 16:58:54 +00:00
Michael McCandless 02d9b51ede LUCENE-887: setDaemon(true) on merge threads so JVM will exit if only they remain
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@597382 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 11:32:35 +00:00
Michael McCandless aa7c63e82b LUCENE-1044: put back original ctor for FSIndexOutput
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@597371 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 10:46:18 +00:00
Grant Ingersoll 87cbdd0e1f fixed typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596904 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 02:17:37 +00:00
Yonik Seeley 6b6464ec9c LUCENE-1040: CharArraySet rehash fixes from Mike
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596685 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 14:23:10 +00:00
Michael Busch b04703fe8f LUCENE-1055: Remove gdata from trunk.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596501 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 00:46:27 +00:00
Yonik Seeley e395be3faf LUCENE-1040: new CharArraySet, make StopFilter directly use it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596484 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 23:23:04 +00:00
Chris M. Hostetter 49e85ee76d documents with a score <= 0 can in fact be collected as matches
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596462 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 22:03:22 +00:00
Yonik Seeley 88a01d6174 remove java5 code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596444 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 20:57:35 +00:00
Yonik Seeley f818ff09d8 LUCENE-1057: copy payload in Token.next()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596440 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 20:45:09 +00:00
Yonik Seeley e9a5866777 LUCENE-1057: call clear when reusing token, change clear to only resent essential fields, re-add Token.clone()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596398 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 19:10:37 +00:00
Michael Busch 0805999b66 LUCENE-743: Add IndexReader.reopen() method that re-opens an existing IndexReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@596004 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 21:34:23 +00:00
Michael McCandless e35a66d8a3 LUCENE-1052: add set/getTermInfosIndexDivisor to IndexReader to reduce memory usage of the TermInfos index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@595458 13f79535-47bb-0310-9956-ffa450edef68
2007-11-15 21:14:27 +00:00
Michael McCandless c5c1913410 LUCENE-1050: detect errors on releasing the lock (if delete of the lock file fails)s
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@595448 13f79535-47bb-0310-9956-ffa450edef68
2007-11-15 20:42:54 +00:00
Michael Busch bb37d2bcff LUCENE-1051: Generate separate javadocs for core, demo and contrib classes, as well as an unified view.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@595013 13f79535-47bb-0310-9956-ffa450edef68
2007-11-14 19:16:19 +00:00
Michael McCandless ec560e3855 LUCENE-1044: default doSync to false for now because performance cost of the simple 'sync() before every close()' approach is too severe in many cases
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@594824 13f79535-47bb-0310-9956-ffa450edef68
2007-11-14 10:25:34 +00:00
Michael Busch 68d95edb9b Remove redundant else-clause from SegmentTermPositions#readDeltaPosition(). This might be a small performance gain.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@594411 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 03:33:36 +00:00
Chris M. Hostetter 881d811641 ossummit rescheduled, new dates unknown - use new gif and remove explicit date refrences
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593938 13f79535-47bb-0310-9956-ffa450edef68
2007-11-11 18:45:16 +00:00
Michael McCandless 8b450203fe LUCENE-1020: close each SegmentReader after we've finished testing that segment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593819 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 22:33:10 +00:00
Michael McCandless 439ba586fc LUCENE-1044: add doSync option to FSDirectory.getDirectory, defaulting to true, to sync() each file descriptor before close()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593799 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 17:51:00 +00:00
Michael McCandless f69f98c0e4 LUCENE-1048: fix Lock.obtain(...) to work properly on very large timeouts, eg Long.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593774 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 13:43:18 +00:00
Michael McCandless a98a30818f LUCENE-1043: speed up merging of stored fields by bulk-copying bytes for contiguous range of non-deleted docs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593131 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 11:07:04 +00:00
Michael McCandless d1989f46fa LUCENE-1047: change MergePolicy & MergeScheduler from interface to abstract base class to have future freedom to add default methods without breaking backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593115 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 10:21:29 +00:00
Michael McCandless 5227c5cedd LUCENE-843: change public -> package protected for two advanced static methods on SegmentReader used only during merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@593114 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 10:12:17 +00:00
Grant Ingersoll 413c92f178 LUCENE-1038: Sets the document number of the term vector being mapped.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@591620 13f79535-47bb-0310-9956-ffa450edef68
2007-11-03 13:41:46 +00:00
Grant Ingersoll 7012f67027 LUCENE-1015: Added support for caching longs and doubles in a new interface, ExtendedFieldCache and *Impl. Added support into the various sorting fields. Put in some testing for it.
Removed the author tag in NumberTools.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@590530 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 01:28:25 +00:00
Michael McCandless 526d97676d LUCENE-1036: make sure the priority argument to Thread.setPriority(...) in ConcurrentMergeScheduler is in-bounds
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@589549 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 09:00:56 +00:00
Michael McCandless e7debdf9e3 LUCENE-1020: created basic tool to check an index, print details of each segment, and fix the index by removing broken segments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@587107 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 14:22:24 +00:00
Michael McCandless 38bbbb51de LUCENE-1022: share writer's infoStream with LogMergePolicy & ConcurrentMergeScheduler
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@587101 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 14:04:31 +00:00
Doron Cohen 1df7007219 LUCENE-1028: Fixed Weight serialization for few queries.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@587050 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 09:58:48 +00:00
Michael McCandless 112f227ecc LUCENE-1012: correct the javadocs for maxMergeDocs / maxMergeMB to state that the limit applies to each segment being merged, not to the resulting merged segment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@585572 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:54:22 +00:00
Michael McCandless 3b6b765939 LUCENE-1021: make all unit tests subclass from a new LuceneTestCase, so that we can assert no unhandled exceptions occurred in ConcurrentMergeScheduler's threads
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@583534 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 16:46:35 +00:00
Michael McCandless 5f4975211a add NOTE that the input Directory[] to addIndexes* must not be opened by a writer while the method is running
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@583450 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 12:26:18 +00:00
Michael McCandless ceebb95d63 LUCENE-1018: fix intermittent exception in TestConcurrentMergeScheduler
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582508 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 15:12:43 +00:00
Daniel Naber 9de7367279 fix typos in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582478 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 11:09:20 +00:00
Michael McCandless 065553bd20 LUCENE-1013: fix IndexWriter.setMaxMergeDocs(N) to work out-of-the-box again
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582384 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 20:51:53 +00:00
Chris M. Hostetter 2ac108d096 javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582381 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 20:31:42 +00:00
Chris M. Hostetter ef03dedeef javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582375 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 19:26:32 +00:00
Michael McCandless af6b980c45 LUCENE-1009: missed one file in the 'merge slowdown' fix causing it to still be slow when compound doc stores are used; also fixed default for comopund doc store = compound doc file format
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582193 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 10:18:06 +00:00
Chris M. Hostetter 5a1fdc2a72 more explicit javadocs about Scorer contract for iterating in doc id order
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@582054 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 01:53:29 +00:00
Michael McCandless f19266575e LUCENE-1011: 'get multiple writers over NFS' to work even when NFS client dir listing cache can be stale
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@581625 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 15:24:12 +00:00
Chris M. Hostetter 7c349594d6 clean up con icons so they float right; also using forrest 0.8 images
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@581504 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 06:15:32 +00:00
Michael McCandless f3119614e6 LUCENE-1007: woops ... Integer.SIZE is Java 1.5 only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@581355 13f79535-47bb-0310-9956-ffa450edef68
2007-10-02 19:21:28 +00:00
Michael McCandless 54729a50b6 LUCENE-1007: allow flushing by ram, doc count, or both (whichever comes first) in IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@581353 13f79535-47bb-0310-9956-ffa450edef68
2007-10-02 19:15:43 +00:00
Erik Hatcher b89d70d042 Add OSSummit Asia news
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@581328 13f79535-47bb-0310-9956-ffa450edef68
2007-10-02 18:05:26 +00:00
Michael McCandless 8df6312a30 LUCENE-1009: Fix merge slowdown with LogByteSizeMergePolicy when autoCommit=false and documents are using stored fields and/or term vectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@580646 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 21:22:35 +00:00
Michael McCandless 8315089cdd LUCENE-1010: fix corruption case, hit during merge, case when docs with and without term-vectors are mixed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@580643 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 21:11:57 +00:00
Yonik Seeley 16342bedb9 qp accept empty string: LUCENE-1006
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@580584 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 14:10:56 +00:00
Michael McCandless 014f23033f LUCENE-1008: fix corruption case when document has no term vector fields after other docs with term vector fields were added
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@580578 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 12:52:45 +00:00
Chris M. Hostetter 7496e8834f typo in javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@580553 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 07:40:50 +00:00
Michael McCandless a28eb4d978 LUCENE-994: change defaults in IndexWriter to maximize 'out of the box' indexing speed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@579360 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 20:02:07 +00:00
Chris M. Hostetter c028a06388 removing empty file -- was confusing clover
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@577635 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 08:46:38 +00:00
Michael Busch 68aa146535 LUCENE-986: Refactored SegmentInfos from IndexReader into the new subclass DirectoryIndexReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@577596 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 07:27:07 +00:00
Michael McCandless 963635448e LUCENE-845: fixed a case that was allowing same segment name to be used twice when a concurrent merge was aborted in between
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@576934 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 14:44:04 +00:00
Michael McCandless ddb17c6397 LUCENE-984: reduce TermVectorsWriter to just the merging use case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@576807 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 09:53:34 +00:00
Michael McCandless 299d6357dd LUCENE-845, LUCENE-847, LUCENE-870: factor MergePolicy & MergeScheduler out of IndexWriter, improve overall concurrency of IndexWriter, and add ConcurrentMergeScheduler
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@576798 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 09:27:14 +00:00
Chris M. Hostetter ec0c99a3c6 MultiSegmentReader doesn't have svn:eol-style=native, and was commited with DOS line endings ... hopefully just setting the property will fix it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@576731 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 06:46:17 +00:00
Michael McCandless e7179ea866 LUCENE-992: move buffered deletes into DocumentsWriter so IndexWriter.updateDocument is atomic
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@574260 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 14:33:51 +00:00
Grant Ingersoll bce939dcb2 LUCENE-991: Fixed explain() method reporting issues when no payloads present.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@573881 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 16:57:28 +00:00
Grant Ingersoll 373f0d777f fixed typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@573558 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 12:29:07 +00:00
Grant Ingersoll 6c761bde63 updated mailing list info
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@573260 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 13:28:58 +00:00
Michael McCandless bcb5b6ff24 LUCENE-987: deprecate IndexModifier
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@570247 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 21:18:16 +00:00
Grant Ingersoll 2b4e5a82de ApacheCon US news
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@569806 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 11:18:38 +00:00
Michael Busch 9c2a036db3 - LUCENE-908: Improvements and simplifications for how the MANIFEST file and the META-INF dir are created.
- LUCENE-935: Various improvements for the maven artifacts. Now the artifacts also include the sources as .jar files. 

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@568766 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 23:16:48 +00:00
Michael McCandless 27c4c6a3b1 LUCENE-985: throw clearer exception when term is too long (> 16383 chars)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@567338 13f79535-47bb-0310-9956-ffa450edef68
2007-08-18 23:15:14 +00:00
Michael McCandless c1a76d9dbe LUCENE-978: ensure all streams are closed when we hit exception in constructor
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@567253 13f79535-47bb-0310-9956-ffa450edef68
2007-08-18 09:42:21 +00:00
Michael McCandless 06d4849ca8 LUCENE-871: speedups for ISOLatin1AccentFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@567085 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 16:58:36 +00:00
Grant Ingersoll f38b1cf2f8 LUCENE-975: New PositionBasedTermVectorMapper for getting term vector information on a position by position basis.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@565994 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 01:14:54 +00:00
Yonik Seeley a94db219bd LUCENE-977: internal hashing improvements
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@565368 13f79535-47bb-0310-9956-ffa450edef68
2007-08-13 14:59:03 +00:00
Michael McCandless c25c1282ef LUCENE-976: add missing openInput(String, int) to MMapDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@564785 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 22:20:35 +00:00
Michael McCandless d42de32984 LUCENE-969: deprecate Token.termText() & optimize core tokenizers by re-using tokens & TokenStreams
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@564715 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 18:34:33 +00:00
Grant Ingersoll 82eb074afd LUCENE-974: Removed Author tags from all existing code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@564236 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 15:21:19 +00:00
Michael McCandless 2d954694dc LUCENE-966: sizable (~6X faster) speedups to StandardTokenizer by using JFlex instead of JavaCC
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@564036 13f79535-47bb-0310-9956-ffa450edef68
2007-08-08 22:26:44 +00:00
Michael McCandless 32b981044f LUCENE-948: handle stale dir listing caches on NFS (so quickly switching writers between machines works)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@562546 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 18:41:22 +00:00
Michael Busch 60c6a847b5 LUCENE-832: ParallelReader fixed to not throw NPE if isCurrent(), isOptimized() or getVersion() is called.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@561611 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 00:43:11 +00:00
Michael Busch 4b11c35b08 LUCENE-970: FilterIndexReader now implements isOptimized().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@561162 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 22:29:56 +00:00
Michael McCandless 1bc5a68549 LUCENE-964: remove DocumentWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@560378 13f79535-47bb-0310-9956-ffa450edef68
2007-07-27 20:50:19 +00:00
Michael Busch c1496444b2 LUCENE-781: MultiReader fixed to not throw NPE if isCurrent(), isOptimized() or getVersion() is called.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@560024 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 22:52:08 +00:00
Grant Ingersoll 2d16613438 LUCENE-868: Added a Javadoc comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@559083 13f79535-47bb-0310-9956-ffa450edef68
2007-07-24 15:30:45 +00:00
Michael Busch 273d28f000 LUCENE-939: Check explicitly for boundary conditions in FieldInfos.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@558917 13f79535-47bb-0310-9956-ffa450edef68
2007-07-24 03:05:21 +00:00
Grant Ingersoll e97d5830ce LUCENE-868: New Term Vector access mechanism. Allows for applications to define how they access term vector information instead of having to pack/unpack the TV info returned by the old way.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@558592 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 03:17:25 +00:00
Daniel Naber 86432275f6 protect object against NPE in finally block, as an NPE here would hide the original exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@558160 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 21:38:55 +00:00
Daniel Naber 58027a24bb improve setMaxFieldLength documentation; remove unused import statements
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@558132 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 20:53:58 +00:00
Doron Cohen e2d3fe1787 LUCENE-957: RAMDirectory fixed for more than Integer.MAX_VALUE bytes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@557678 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 16:27:48 +00:00
Michael McCandless a3298ce85c LUCENE-963: added caveats to javadocs for new Field setValue(...) methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@557553 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 10:16:30 +00:00
Michael McCandless 66bacd0b13 LUCENE-963: add setters to Field to allow re-using Field instances during indexing (for better performance)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@557445 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 01:33:59 +00:00
Grant Ingersoll 4293019522 LUCENE-960: Added SpanFilter mechanism that provides BitSet information and Span information in a filter. This can be used to get position information on where in a Document that is "on" in the filter matched.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@557105 13f79535-47bb-0310-9956-ffa450edef68
2007-07-18 00:52:07 +00:00
Michael McCandless aae68e0ba6 LUCENE-962: fixed case where unhandled exception in addDocument or updateDocument could fail to delete unreferenced files in the index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@557082 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 23:22:56 +00:00
Yonik Seeley 230ecaa169 remove synchronization in Document: LUCENE-959
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@556693 13f79535-47bb-0310-9956-ffa450edef68
2007-07-16 18:46:58 +00:00
Michael McCandless f55e4057d2 LUCENE-938: fixed certain cases where an unhandled exception could cause IndexWriter to lose buffered deletes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@556010 13f79535-47bb-0310-9956-ffa450edef68
2007-07-13 14:23:47 +00:00
Michael McCandless 8355ab88b3 LUCENE-843: fixed the triggerMerger logic from LUCENE-887 that I accidentally lost
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@555793 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 22:15:20 +00:00
Michael Busch 5b944011ff LUCENE-944: Remove deprecated methods setUseScorer14() and getUseScorer14() from BooleanQuery.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@555717 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 18:41:40 +00:00
Michael Busch 7c612dcb2d LUCENE-951: Fixed NullPointerException in MultiLevelSkipListReader that was thrown after a call of TermPositions.seek().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@555683 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 16:23:46 +00:00
Michael Busch c8f84d6707 LUCENE-955: Fixed SegmentTermPositions to work correctly with the first term in the dictionary.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@555678 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 16:14:54 +00:00
Yonik Seeley d7c0af3f30 replace div with shift since idiv takes ~40 cycles and compiler can't do strength reduction w/o knowing ops are non-negative
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@553947 13f79535-47bb-0310-9956-ffa450edef68
2007-07-06 16:34:40 +00:00
Michael McCandless 4db9625e28 LUCENE-843: add missing 'synchronized' to allThreadsIdle() method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@553854 13f79535-47bb-0310-9956-ffa450edef68
2007-07-06 11:57:18 +00:00
Michael McCandless 3e1a31748e LUCENE-843: SegmentInfo.clone() failed to copy some fields; in certain cases _x.nrm might not be created even when fieldInfos says it has norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@553298 13f79535-47bb-0310-9956-ffa450edef68
2007-07-04 19:03:21 +00:00
Michael McCandless 50787ab505 LUCENE-892: don't do extra buffer-to-buffer copies in CompoundFileReader.CSIndexInput
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@553269 13f79535-47bb-0310-9956-ffa450edef68
2007-07-04 17:00:22 +00:00
Michael McCandless cff5767e44 LUCENE-843: speed up IndexWriter performance
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@553236 13f79535-47bb-0310-9956-ffa450edef68
2007-07-04 15:16:38 +00:00
Doron Cohen ba90fb06c1 LUCENE-946: replace text from an online collection (used in
few test cases) with text that is surely 100% free.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@552009 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 19:43:19 +00:00
Chris M. Hostetter 3e39b0a9a0 LUCENE-936: example doesn't match text
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@550680 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 04:35:29 +00:00
Chris M. Hostetter 290c339ef9 regening all docs using forrest 0.8 ... removing sitemap.xmap per forrest 0.8 upgrade instructures, all other changes are just the effects of skin changes in 0.8
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@550678 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 04:29:29 +00:00
Doron Cohen 1d77b82dbf LUCENE-933: QueryParser fixed to not produce empty sub
BooleanQueries "()" even if the Analyzer 
            proudced no tokens for input.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@550647 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 00:40:20 +00:00
Michael Busch 7505950c5f LUCENE-937: CachingTokenFilter now uses an iterator to access the Tokens that are cached in the LinkedList.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@550060 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 15:56:34 +00:00
Michael Busch 84ebd3fa03 Improvements to Lucene 2.2 news entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@549308 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 00:44:07 +00:00
Grant Ingersoll dddb4b2d70 Removed news item occurring before 2007
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@548902 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 03:00:16 +00:00
Grant Ingersoll 73ed823c08 fix typo in 2.2 release announcement
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@548896 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 02:46:44 +00:00
Michael Busch 18bf1cd45e adding benchmarktemplate.xml; this file was probably forgotten when the new forrest website was created; since then the link on benchmarks.html was broken
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@548629 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 07:21:56 +00:00
Michael Busch 482ee4062f update website for Lucene 2.2
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@548610 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 06:38:13 +00:00
Michael Busch 9578df3233 LUCENE-910: Change of the Payload javadoc comment in Similarity.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@547995 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 23:25:34 +00:00
Doron Cohen b265b576a9 fix sample code to be compilable (part of LUCENE-925 - Analysis Package Javadocs)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@547871 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 06:48:31 +00:00
Doron Cohen e8ed8cac4a LUCENE-925: analysis package javadocs enhanced.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@547814 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 22:16:24 +00:00
Grant Ingersoll 82f24dba0c LUCENE-926: document package javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@547234 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 12:43:40 +00:00
Grant Ingersoll ca726ddf17 Lucene 925: analysis javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@547226 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 12:09:02 +00:00
Grant Ingersoll 2bc81869df LUCENE 918 and 922 docs for term vectors applied to trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@546696 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 01:13:26 +00:00
Michael McCandless 1a35bbe0b3 LUCENE-924: small improvements to IndexWriter's javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545751 13f79535-47bb-0310-9956-ffa450edef68
2007-06-09 14:31:08 +00:00
Michael Busch df0a188415 LUCENE-931: adding missing license headers to various files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545696 13f79535-47bb-0310-9956-ffa450edef68
2007-06-09 06:09:46 +00:00
Michael Busch 53ef7398ce LUCENE-917: Javadoc improvements for org.apache.lucene.index.Payload
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545693 13f79535-47bb-0310-9956-ffa450edef68
2007-06-09 04:52:38 +00:00
Michael Busch 994f083846 LUCENE-923: Make SegmentTermPositionVector package-private.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545686 13f79535-47bb-0310-9956-ffa450edef68
2007-06-09 02:58:11 +00:00
Michael Busch 2cffd298a2 LUCENE-919: DefaultSkipListReader was accidentally public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545391 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 03:29:02 +00:00
Doron Cohen 899b858856 LUCENE-913: Two consecutive score() calls return different
scores for Boolean Queries.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545026 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 02:34:39 +00:00
Doron Cohen 860906333f LUCENE-912: DisjunctionMaxScorer first skipTo(target) call ignores the
skip target param and ends up at the first match.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545024 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 02:17:02 +00:00
Michael Busch 731fb3a228 LUCENE-908:
- Improves content of MANIFEST file and makes it customizable for the contribs.
- Adds SNOWBALL-LICENSE.txt to META-INF of the snowball jar 
- lucli jar now contains LICENSE.txt and NOTICE.txt.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@545010 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 00:48:32 +00:00
Michael Busch 35b5ace0ab LUCENE-910: added or changed warning comments for APIs related to Payloads
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544713 13f79535-47bb-0310-9956-ffa450edef68
2007-06-06 02:57:03 +00:00
Grant Ingersoll db99e27deb LUCENE-905
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544706 13f79535-47bb-0310-9956-ffa450edef68
2007-06-06 01:54:35 +00:00
Doron Cohen 1de7b02e98 LUCENE-909: Demo targets for running the demo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544685 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 23:52:05 +00:00
Michael Busch 8c62eb41a4 LUCENE-907: Include LICENSE.TXT and NOTICE.TXT in the META-INF dirs of demo war, demo jar, and the contrib jars.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544611 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 19:54:38 +00:00
Doron Cohen 125fed32d8 LUCENE-446: Added Solr's search.function for scores based on field
values, plus CustomScoreQuery for simple score (post) customization.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544546 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 16:29:35 +00:00
Michael McCandless db78c85c21 LUCENE-843: making a small backwards compatible API change to return the newly added FieldInfo instance
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544464 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 12:12:33 +00:00
Doron Cohen bcc79d1e84 LUCENE-903: FilteredQuery explanation inaccuracy with boost.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544254 13f79535-47bb-0310-9956-ffa450edef68
2007-06-04 20:41:06 +00:00
Michael Busch 81849454e4 LUCENE-894: Add custom build file for binary distributions that includes targets to build the demos.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544040 13f79535-47bb-0310-9956-ffa450edef68
2007-06-04 04:03:24 +00:00
Daniel Naber e2939508e5 javadoc improvements from LUCENE-763 by Steven Parkes; small javadoc parameter reordering to avoid warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@543620 13f79535-47bb-0310-9956-ffa450edef68
2007-06-01 21:18:56 +00:00
Michael Busch 87ba4a1258 LUCENE-866: Adds multi-level skip lists to the posting lists.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@543076 13f79535-47bb-0310-9956-ffa450edef68
2007-05-31 07:48:53 +00:00
Michael Busch f86b74623d Add protected convenience method for LUCENE-887. It neither changes IndexWriter's behavior, nor is this a public API change.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@543071 13f79535-47bb-0310-9956-ffa450edef68
2007-05-31 07:20:14 +00:00
Michael Busch f5c80265e0 LUCENE-698: FilteredQuery now takes the query boost into account for scoring.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542968 13f79535-47bb-0310-9956-ffa450edef68
2007-05-30 23:09:25 +00:00
Michael McCandless 0d5a4755c9 LUCENE-888: fix possible NPE in assert statement
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542667 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 21:56:43 +00:00
Michael McCandless 3e09257c09 LUCENE-888: increase internal buffer sizes used during indexing to improve overall indexing speed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542561 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 15:14:07 +00:00
Michael McCandless 4ef95040cb javadoc improvement: clarify impact of IndexWriter's autoCommit flag on IndexReader's isCurrent method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542492 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 11:26:09 +00:00
Michael McCandless 14ba4adfbe some small improvements to IndexWriter's top-level javadoc based on recent threads on java-dev/java-user
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542474 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 09:52:48 +00:00
Michael Busch 5877c03a01 LUCENE-730: Make scoring in docid order the default and add setAllowDocsOutOfOrder() and getAllowDocsOutOfOrder() to BooleanQuery.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@542303 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 19:33:10 +00:00
Otis Gospodnetic 304884c660 - LUCENE-891 doc patch
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@541702 13f79535-47bb-0310-9956-ffa450edef68
2007-05-25 16:07:18 +00:00
Otis Gospodnetic 9fbee15671 - LUCENE-890 doc patch
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@541701 13f79535-47bb-0310-9956-ffa450edef68
2007-05-25 16:04:24 +00:00
Michael Busch 393b4525db LUCENE-430: Delay allocation of the buffer after a clone of BufferedIndexInput.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@541402 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 19:42:47 +00:00