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
Grant Ingersoll
860f6bb673
LUCENE-550: put the comment in the wrong spot
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636749 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 13:00:03 +00:00
Grant Ingersoll
f4cc6e2269
LUCENE-550: Added RAMDirectory alternative as a contrib. Similar to MemoryIndex, but can hold more than one document
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636745 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 12:34:30 +00:00
Michael McCandless
b36d9f9be3
download bdb zip from Oracle's servers
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@636673 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 09:06:31 +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
Doron Cohen
25f80c71c9
LUCENE-1209: Fixed DocMaker settings by round. Prior to this fix, DocMaker settings of
...
first round were used in all rounds. (E.g. term vectors.)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635280 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 16:43:32 +00:00
Doron Cohen
ce0309ed5f
Javadoc clarrification for getRecall().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635195 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 08:30:28 +00:00
Doron Cohen
8b2f12851b
make the name of multi-value property long enough for the values.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@635194 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 08:28:53 +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
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