Commit Graph

1721 Commits

Author SHA1 Message Date
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