Commit Graph

3032 Commits

Author SHA1 Message Date
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
Michael Busch 850ffde6a6 Add section for the 2.3.1 release to CHANGES.txt in trunk.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@630362 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 00:11:44 +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
Mark Harwood 37a060c15c Additional thread safety around filter creation - old code could create duplicate CachingWrapperFilter if thread1 gets cache miss and thread 2 has a cache miss before thread1 populates cache with new CachingWrapperFilter.
Synchronization cost around whole method is OK here because Filter object construction should be a lightweight call. 
Note: CachingWrapperFilter currently has a similar bug in bits() method but adding "synchronized" around that whole method would not be a solution there because of the cost of evaluating filter.bits and the unnecessary blocking effect this would have on threads using different readers to the thread with the lock.

 

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628921 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 23:39:12 +00:00
Mark Harwood caed55ef5e Added thread-safety around use of core's QueryParser.
Old XML parser constructors use a mode which will synchronize on use of the user-supplied QueryParser. 
New constructors offer alternative option of passing "defaultField" String which is used to create a new single-use QueryParser for each parse operation.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628568 13f79535-47bb-0310-9956-ffa450edef68
2008-02-17 22:32:58 +00:00
Otis Gospodnetic 95e2e57c86 - Typo fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628424 13f79535-47bb-0310-9956-ffa450edef68
2008-02-17 04:30:11 +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
Grant Ingersoll 00941055fd benchmark autocommit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619457 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 15:33:02 +00:00
Grant Ingersoll 0dc6c59ac1 LUCENE-494: Added QueryAutoStopWordAnalyzer in a new query subpackage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@619420 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 14:13:38 +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 18adf788d8 only show the first 10 million warnings and errors when compiling
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618739 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 18:38:28 +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
Erik Hatcher 140a867933 Correct javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618275 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 13:31:02 +00:00
Michael Busch cc6778188f Update CHANGES.txt for LUCENE-584
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@618188 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 07:42:14 +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 McCandless afb58ca0d2 when reinit() is called, reset the start time (used only when printing # docs indexed)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617991 13f79535-47bb-0310-9956-ffa450edef68
2008-02-03 14:24:30 +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 Busch 3a24900ef5 Set svn:eol-style=native for some classes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@617336 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 03:00:02 +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
Grant Ingersoll 3db9002efb LUCENE-1156: see CHANGES.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616934 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 22:47:52 +00:00
Grant Ingersoll 61f2aa3078 allow TrecDocMaker to be more easily extended by making values protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616882 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 20:03:39 +00:00
Grant Ingersoll 4fc8654bc1 Made some member variables protected so they can accessed by extending classes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616806 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 16:29:35 +00:00