Commit Graph

1721 Commits

Author SHA1 Message Date
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
Michael Busch 45f760ea24 LUCENE-881: QueryParser.escape() now also escapes the characters '|' and '&'
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@540839 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 04:54:38 +00:00
Chris M. Hostetter b1eb460b7e clarifing javadocs for BooleanClause.SHOULD - two is not a magic number, the real issue is a lack of MUST clauses
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@540460 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 07:51:41 +00:00
Daniel Naber 0f7d981498 LUCENE-884: document that wildcard search doesn't work in phrases
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@539596 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 20:42:49 +00:00
Michael Busch 56547a1f36 LUCENE-880: Fixed DocumentWriter to close the TokenStreams after it has written the postings.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@538892 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 12:38:43 +00:00
Michael McCandless 03cbb8fd86 LUCENE-877: fix confusing part of file format doc about the write.lock
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@536719 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 23:32:13 +00:00
Doron Cohen 8ed11daae0 javadoc warnings and errors solved (except for gdata).
build.xml "javadocs" target will now fail if there are 
javadoc warnings/errors under jdk1.4.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@535448 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 05:36:49 +00:00
Otis Gospodnetic e7c06745f7 - Added the missing ASL v2.0
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@534568 13f79535-47bb-0310-9956-ffa450edef68
2007-05-02 17:48:47 +00:00
Michael Busch 80c0f267f6 LUCENE-580:
- Added the public method reset() to TokenStream.
- Added a new constructor to Field that takes a TokenStream as argument, useful for pre-analyzed fields.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@533549 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 19:26:11 +00:00
Doron Cohen 3c60a00b69 LUCENE-789: fix MultiSearcher to not ignore its custom similarity.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@532487 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 21:10:43 +00:00
Michael Busch d7ea0e5b19 LUCENE-869: Changed FSIndexInput and FSIndexOutput to inner classes of FSDirectory to enable extensibility of these classes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@532259 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 08:46:14 +00:00
Grant Ingersoll a181157bfd LUCENE-834:
Added documentation to Similarity class

Changed BoostingTermQuery to score all occurrences of the term in a document by making the underlying setFreqCurrentDoc() method protected so that it can be overridden in BTQ.  Updated the tests to have multiple terms per document with different payloads, so that it can be averaged.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@531913 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 12:49:42 +00:00
Doron Cohen e06188c0d6 LUCENE-736: Sloppy phrase query with repeating terms matches wrong docs.
For example query "B C B"~2 matches the doc "A B C D E".
Search time cost of this fix is 4%, for sloppy phrase search. 
This fix also partially brings back the the tests checkSkipTo() in QueryUtils, 
(which was disabled by LUCENE-730), but this is now invoked 
only for non Boolean scorers.



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@531733 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 05:32:47 +00:00
Doron Cohen bb6d2cc9c9 set eol style to native (otherwise too much noise in 'svn diff' for simple changes.)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@531709 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 03:33:18 +00:00
Otis Gospodnetic e5f28aacc3 - LUCENE-730: Let BooleanScorer2 fall back to BooleanScorer when no required clauses are present
and only optional and less than 32 prohibited clauses are in the query.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@529783 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 22:00:07 +00:00
Michael Busch 3eaeba7fb7 LUCENE-431: RAMInputStream and RAMOutputStream subclass IndexInput and IndexOutput directly now
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@529749 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 20:08:41 +00:00
Chris M. Hostetter 866b626f67 minor followup to LUCENE-857, fixing a small mistake in Otis's orriginal commit to ensure that the deprecated QueryFilter still cache's
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@528298 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 00:59:28 +00:00
Grant Ingersoll 78a3a8a677 http://www.gossamer-threads.com/lists/lucene/java-dev/47895
Added javadocs about when to call optimize() method.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@527946 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 14:02:09 +00:00
Michael McCandless 8abc9bf1f2 LUCENE-710: fix false-positive failure case of 'delete by time' deletion policy test case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@527299 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 21:09:32 +00:00
Otis Gospodnetic b831821324 - LUCENE-857: Removed caching from QueryFilter and added QueryWrapperFilter that can be combined
with CachingWrapperFilter to provide caching.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@527291 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 20:42:47 +00:00
Otis Gospodnetic 2137fae116 - Removed a @todo and replaced it with javadoc about RemoteCachingWrapperFilter that was added in LUCENE-853
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@526846 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 17:25:33 +00:00
Otis Gospodnetic 48e662cf52 - LUCENE-853: Filter caching on the remote side of the RMI connection.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@526842 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 17:13:44 +00:00
Daniel Naber 76dffdd6e0 small javadoc improvements about ids and performance
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@526550 13f79535-47bb-0310-9956-ffa450edef68
2007-04-08 13:17:10 +00:00
Daniel Naber 2412d83aa2 javadoc: clarify when a reader may be closed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@526546 13f79535-47bb-0310-9956-ffa450edef68
2007-04-08 12:40:33 +00:00
Daniel Naber e21ffed782 improve the example code a bit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@526225 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 16:52:46 +00:00
Otis Gospodnetic 9d7f9911a4 - LUCENE-796: Don't call super.get*Query(....) to let sub-classes override.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@525682 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 02:06:46 +00:00
Otis Gospodnetic 80d54c70ae - Removed unused BooleanScore param passed to the inner BucketTable class
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@525669 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 01:06:16 +00:00
Otis Gospodnetic ace79697e3 - Removed unused var
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@525668 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 01:05:34 +00:00
Grant Ingersoll ca5430c7a0 Update links to point to Hudson
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@524517 13f79535-47bb-0310-9956-ffa450edef68
2007-04-01 02:51:52 +00:00
Grant Ingersoll 1e7d6d11cc added missing space
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@524498 13f79535-47bb-0310-9956-ffa450edef68
2007-04-01 00:03:03 +00:00
Grant Ingersoll 87213e0421 added missing space
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@524497 13f79535-47bb-0310-9956-ffa450edef68
2007-04-01 00:02:37 +00:00
Grant Ingersoll d9b2257834 Updated to point to Hudson nightly builds located on lucene.zones.a.o at http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@524494 13f79535-47bb-0310-9956-ffa450edef68
2007-03-31 23:48:56 +00:00
Grant Ingersoll b591bd8efb LUCENE-834:
Added in payloads search package, with one Query implementation: BoostingTermQuery.

Added isPayloadAvailable() method to TermPositions and implementations.

Modified access rights to some of the spans classes so that they could be accessed from the payloads package.

All tests pass.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@523302 13f79535-47bb-0310-9956-ffa450edef68
2007-03-28 12:58:15 +00:00
Grant Ingersoll 2ba4a3ad83 Undoubtedly, a vain attempt to ward of people sending user help questions to java-dev by putting a do not send message a little bit closer to the subscribe button.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@522646 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 22:16:15 +00:00
Michael McCandless eee9d52886 LUCENE-846: don't corrupt IndexWriter instance on hitting exception (eg disk full) during addIndexes(*) when writer is opened with autoCommit=false
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@522262 13f79535-47bb-0310-9956-ffa450edef68
2007-03-25 13:18:55 +00:00
Yonik Seeley 14d70e9be7 interned comparison comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@520891 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 13:58:47 +00:00
Otis Gospodnetic 539eaa3fd7 - Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@519008 13f79535-47bb-0310-9956-ffa450edef68
2007-03-16 15:22:10 +00:00
Otis Gospodnetic deabc30668 - Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@519007 13f79535-47bb-0310-9956-ffa450edef68
2007-03-16 15:21:53 +00:00
Otis Gospodnetic 939ed115c4 -LUCENE-828: Term equals(Object) fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@519006 13f79535-47bb-0310-9956-ffa450edef68
2007-03-16 15:21:05 +00:00
Michael McCandless b5a0c0c3de LUCENE-710: make IndexWriter.abort() synchronized
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518781 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 22:22:57 +00:00
Doron Cohen 40093328ca TestWindowsMmap now creates the index $(system.tempDir)/testLuceneMmap.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518753 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 21:08:54 +00:00
Doron Cohen b04a15016d LUCENE-710 followup: code cosmetics and added documentation.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518734 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 19:22:26 +00:00
Doron Cohen a6d56d5eb9 maintain most recent file format in a single line in the code.
(this is less bug prone.)


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518529 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 09:08:07 +00:00
Michael Busch cb88961792 LUCENE-807: Fixed the javadoc for ScoreDocComparator.compare() to be consistent with java.util.Comparator.compare()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518518 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 08:48:00 +00:00
Michael Busch eb20c06a62 LUCENE-755: Added the ability to store arbitrary binary metadata (payloads) in the posting list.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518486 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 05:15:43 +00:00
Michael McCandless 9da8211775 LUCENE-818: throw AlreadyClosedException when accessing IndexWriter, *Reader, RAMDirectory and FieldsReader after close()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518262 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 18:46:03 +00:00
Michael McCandless 4648912089 call rmDir() up front to prevent confusing false-positive failures from backwards compatibility unit test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518090 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 10:23:44 +00:00
Doron Cohen d4e406ad22 LUCENE-814: javacc build targets now fix line-end-style of generated
files, and deleting all javacc generated files before calling javacc.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@517863 13f79535-47bb-0310-9956-ffa450edef68
2007-03-13 20:50:56 +00:00
Michael McCandless 1159f9a768 LUCENE-710: add optional autoCommit=true/false mode and customizable IndexDeletionPolicy to IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@517599 13f79535-47bb-0310-9956-ffa450edef68
2007-03-13 09:06:22 +00:00
Michael Busch 11fb1314e6 Corrected comments and changed a variable name in SegmentTermPositions to better reflect the meaning of the variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@517007 13f79535-47bb-0310-9956-ffa450edef68
2007-03-11 20:29:19 +00:00
Michael Busch 0b706b4688 LUCENE-761: The proxStream is now cloned lazily in SegmentTermPositions when nextPosition() is called for the first time.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@516863 13f79535-47bb-0310-9956-ffa450edef68
2007-03-11 07:06:40 +00:00
Grant Ingersoll f4490ac789 LUCENE 791, INFRA-1173:
Migrated references from Jakarta Lucene Wiki to Lucene Java Wiki

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@516586 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 22:29:00 +00:00
Michael McCandless 07a632c0e9 LUCENE-825: detect null returned from Directory.list() and throw IOException not NPE
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@516120 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 17:59:11 +00:00
Michael Busch 57cf17d188 LUCENE-372: QueryParser.parse() now ensures that the entire input string is consumed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515914 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 04:18:56 +00:00
Michael Busch 397187494f LUCENE-800: removed backslash from the TERM_CHAR list in the QueryParser to support escaping of backslashes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515908 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 03:37:12 +00:00
Doron Cohen 35c0da7cab TestBackwardsCompatibility typo - rmDir already computes fullDir
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515893 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 02:11:50 +00:00
Michael McCandless 622d58b3f8 LUCENE-825: make sure FileNotFoundException is returned if directory.list() returns null
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515495 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 08:45:58 +00:00
Michael McCandless 810700836f LUCENE-824: remove redundant try/catch from IndexWriter.addIndexesNoOptimize
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515489 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 08:32:28 +00:00
Michael McCandless 1d1e44681e LUCENE-823: add unit test coverage to assert that when a MockRAMDirectory is closed, there are no open files; fixed 2 minor cases this check uncovered
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515316 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 21:40:55 +00:00
Michael McCandless 2380a957ef Fixing backwards compatibility unit test to make its test dirs under tempDir
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@515249 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 18:52:32 +00:00
Grant Ingersoll 83efa50f5e https://issues.apache.org/jira/browse/LUCENE-822
Applied Mark Miller's patch.  Added Unit tests to TestRemoteSearchable and TestMultiSearcher.  To get RemoteSearchable to work, had to make FieldSelector and FieldSelectorResult serializable.

All tests pass.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@514675 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 14:28:01 +00:00
Michael McCandless 4081e733b1 LUCENE-820: improve MockRAMDirectory to mimic Windows (can't delete open files); added test case for this bug (this root cause of this bug was already fixed by the fix to LUCENE-821)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@514370 13f79535-47bb-0310-9956-ffa450edef68
2007-03-04 08:25:31 +00:00
Yonik Seeley e6a9d9b318 only open .nrm file once: LUCENE-821
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@514344 13f79535-47bb-0310-9956-ffa450edef68
2007-03-04 03:23:00 +00:00
Yonik Seeley 1c3ec1d1d2 clarify Term javadoc: field shouldn't be null either
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513547 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 23:10:51 +00:00
Otis Gospodnetic 53e4c9dc02 - Wrapped looong liiines
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513258 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 10:21:16 +00:00
Yonik Seeley 1e1f9bddb1 clarify null term text
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513142 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 05:03:45 +00:00
Michael McCandless 66d4eb336f LUCENE-812: make sure Native/SimpleFSLockFactory can be set via system property
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@512493 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 23:33:31 +00:00
Doron Cohen 178500b09c LUCENE-813: Leading wildcard fixed to work with trailing wildcard
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@512371 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 19:26:57 +00:00
Michael McCandless 330aa3063e LUCENE-771: fixing the description of the naming of the write lock in the file format doc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@512329 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 17:26:58 +00:00
Michael McCandless 1486b19a4f LUCENE-811: make SegmentInfos class package-private again
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@511384 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 00:43:45 +00:00
Michael McCandless 4541271b9d LUCENE-793: added 3 new exceptions (subclasses of IOException) to better call out possible root causes of an IOException
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@510176 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 20:01:36 +00:00
Doron Cohen 5ff29d2bef clean IndexWriter unused code: Unused private constructor; Unused imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@509924 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 07:22:13 +00:00
Doron Cohen ff786381b1 search package javadoc fix: Content line; Typo; Update WildCardQuery info with QueryParser.setAllowLeadingWildcard
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@509866 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 02:18:19 +00:00
Daniel Naber 45bf72b22b tiny typo fix in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@509741 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 20:49:07 +00:00
Grant Ingersoll ef5176288f Fixed the bad link to clover tests in developer-resources.xml.
Added ApacheCon news items to index.xml and updated the site.  

I believe the changes to the skin/images are do to me putting in the SVN eol configuration per Yonik's suggestion on the mailing list.  As far as I can tell, the images still look correct.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@508992 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 20:50:36 +00:00
Yonik Seeley 65c9c90703 site update for Lucene 2.1
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@508904 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 14:24:11 +00:00
Doron Cohen cb2f8390b2 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@508359 13f79535-47bb-0310-9956-ffa450edef68 2007-02-16 10:00:55 +00:00
Yonik Seeley 070ed839b2 add getFilter to ConstantScoreQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@507374 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 03:12:50 +00:00
Grant Ingersoll 09930c9349 LUCENE-799: Added support for Lazy compressed string fields. Thanks to Mike Klaas.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@507009 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 14:06:52 +00:00
Michael McCandless 95bab8401f LUCENE-565: merge NewIndexModifier back into IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@506964 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 10:43:08 +00:00
Grant Ingersoll 65d27c8d72 Lucene 762 - Applied original patch as I could not find a nice way to handle lazy fields as part of a readField() method on FieldSelectorResult per the suggestion on 762.
All tests pass.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@505154 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:16:20 +00:00
Daniel Naber edde3b691a there was no test case for subSearcher() -> adding at least a simple one
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@505038 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 21:12:49 +00:00
Grant Ingersoll df6894f7ad Added link to my FOAF page on people.a.o
See http://people.apache.org/foaf/index.html for info on adding a FOAF

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@504631 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 17:41:47 +00:00
Daniel Naber 55450e5b2c LUCENE-795: deprecate Directory.renameFile()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@503911 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 22:49:42 +00:00
Michael McCandless 842995a83c LUCENE-701: make IndexFileDeleter class package protected and final (was public unnecessarily)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@503293 13f79535-47bb-0310-9956-ffa450edef68
2007-02-03 19:45:35 +00:00
Doug Cutting 3e0bd9472d Organize 'who we are' page to better match current active committers.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@502786 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 23:08:52 +00:00
Michael Busch e5a6d06899 added myself to the committer list on the "Who we are" page
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@502589 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 12:43:11 +00:00
Michael McCandless 7d583030ce LUCENE-565: added NewIndexModifier (IndexWriter subclass) to more efficiently handle updating documents (delete then add)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@502191 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 10:55:12 +00:00
Michael McCandless 4e79f49f23 LUCENE-785: make RAMDirectory serializable again
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@500611 13f79535-47bb-0310-9956-ffa450edef68
2007-01-27 20:39:14 +00:00
Grant Ingersoll ec0dc7b8f6 Updated Solr link per Solr graduation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@499208 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 01:28:53 +00:00
Daniel Naber 9a57076257 revert LUCENE-781 for now
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@499176 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 22:54:40 +00:00
Daniel Naber fb60f574aa LUCENE-781: fixed NPE in MultiReader.isCurrent() and getVersion()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@499152 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 22:01:05 +00:00
Michael McCandless d8979209bc LUCENE-773: fixed NPE caused by IndexWriter assuming LockFactory was non-null
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@499089 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 17:33:11 +00:00
Michael McCandless 3b13126bf5 LUCENE-780: add static Directory.copy() method to copy files from one Directory to another
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@498755 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 19:21:56 +00:00
Michael McCandless 02d6b05cd6 LUCENE-773: deprecate "create" argument to
FSDirectory.getDirectory(*); use IndexWriter's "create" argument
instead

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@497612 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 22:47:03 +00:00
Michael McCandless 30083146b4 LUCENE-756: small improvement to not rely on IO operation (fileExists)
to check whether a "single norm file" is in use for the segment.
Instead, save this information per segment explicitly into the segment
infos file.  Also renamed to "singleNormFile".


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@496851 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 20:24:52 +00:00
Michael McCandless ff86319f03 LUCENE-776: just clarifying comment on the private DIRECTORIES cache in FSDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@496166 13f79535-47bb-0310-9956-ffa450edef68
2007-01-14 22:13:04 +00:00
Michael McCandless 9ae7389701 LUCENE-771:
* API change: change LockFactory.clearAllLocks() to
    LockFactory.clearLock(String lockName) because locks are no longer
    so "global".  (This API is not released yet).  Now FSDirectory
    just clears specifically the write lock when create=true.

  * Fix abstraction violation of LockFactory: FSDirectory now calls
    clearLock() instead of doing File deletes itself (duh!).


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495911 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 15:40:34 +00:00
Michael McCandless 0e556e399b LUCENE-771:
* Default write lock location to the index directory and use the
    name "write.lock" (without prefix).

  * Make the LockFactory.clearAllLocks() method package protected.

  * Remove LOCK_DIR and no-argument constructors for
    SimpleFSLockFactory and NativeFSLockFactory (no more global lock
    directory).

  * Deprecate FSDirectory.LOCK_DIR


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495760 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 22:09:45 +00:00
Otis Gospodnetic 7c241242f0 - Added more javadoc for NO_NORMS
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495191 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 10:55:32 +00:00
Otis Gospodnetic 9b0986ae37 - Added isOptimized() to IndexReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495190 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 10:53:25 +00:00
Otis Gospodnetic da7c50925d - Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495186 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 10:51:19 +00:00
Michael McCandless 815f4f252e LUCENE-140:
- Add 2 more checks on initializing SegmentReader that raise
    IllegalStateException if corruption is detected.  This would have
    caught the second cause in LUCENE-140 (incorrectly re-using old
    .del files) earlier.

  - Fixed bugs in two unit tests that tripped up on these new checks.

  - Fixed (tightened) one more boundary case (when lastDoc was 0) in
    the pre-existing "docs out of order" check in SegmentMerger.java.

  - Simplified the unit test I added to TestIndexReader to test this
    issue.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494933 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 19:06:36 +00:00
Michael McCandless 91204f8d54 LUCENE-767: derive maxDoc from SegmentInfo.docCount instead of file length of fieldsReader's index file
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494871 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 16:06:33 +00:00
Bernhard Messer fe9c033464 remove "tvp" from INDEX_EXTENSIONS which not used at all.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494521 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 18:56:37 +00:00
Michael McCandless 853c03ac43 LUCENE-768: make sure IndexReader.close releases write lock even after hitting an exception in one of the methods that acquire the write lock
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494492 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 17:13:57 +00:00
Chris M. Hostetter ceaa0c3091 LUCENE-732 - DateTools support for QueryParser, Resolution can be set on a per field basis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494184 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 20:02:51 +00:00
Michael McCandless dc20634a97 LUCENE-140: Add bounds checking to BitVector's get, set, clear methods
to prevent index corruption on calling IndexReader.deleteDocument(int
docNum) on a "slightly" out of bounds docNum.  Other changes:

  * In IndexReader.deleteDocument, set hasChanges to true before
    calling doDelete in case an Exception is hit in doDelete.

  * Changed the "docs out of order" check to be tighter (<= instead of
    <) to catch boundary case that was missed.

  * Fixed small unrelated javadoc typo.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494136 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 18:11:08 +00:00
Yonik Seeley 0971e23550 norms test: LUCENE-756
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@493897 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 01:05:19 +00:00
Yonik Seeley c9795dd56b Maintain norms in a single file .nrm: LUCENE-756
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@493641 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 04:19:21 +00:00
Grant Ingersoll f0b51f5e2b Lucene.NET should be Lucene.Net
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@493285 13f79535-47bb-0310-9956-ffa450edef68
2007-01-06 03:38:44 +00:00
Grant Ingersoll 957be9a455 News item for LUCENE-493, announcing nightly source build availability. Also fixed a missing section tag in index.xml.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492315 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 21:44:43 +00:00
Michael McCandless c82b1703e3 LUCENE-764: add details to javadocs about temporary disk usage of IndexWriter optimize, addIndexes, addDocument methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492300 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 20:59:01 +00:00
Michael McCandless 411575b600 LUCENE-758: fix javadocs to clarify that RAMDirectory(Directory) makes a full copy of the original Directory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@491574 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 14:06:26 +00:00
Grant Ingersoll 9814a94714 Added some info on what is in a release
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@491026 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 15:19:14 +00:00
Grant Ingersoll ec9cbca90c LUCENE-708: Added a news item announcing the new nightly build based structure of the website.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489780 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:13:20 +00:00
Grant Ingersoll c778473589 Lucene 654 - Added GData
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489253 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 03:04:53 +00:00
Otis Gospodnetic 8e6c9a7f49 - ThreadLocals' remove() was added in Java 1.5, using set(null) instead
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489230 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 00:21:05 +00:00
Otis Gospodnetic 42592aeb49 - LUCENE-436: removed finalize() methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489183 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 19:45:40 +00:00
Yonik Seeley f4b3239092 fix FieldCache holding hard ref to readers: LUCENE-754
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488908 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 03:47:09 +00:00
Michael McCandless dc910bdc53 LUCENE-701: remove unnecessary and confusing extra line
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488854 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 23:41:22 +00:00
Yonik Seeley 30c8ce4f10 remove FSIndexOutput finalizer, move FSIndexInput finalizer to it's Descriptor: LUCENE-750
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488722 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 16:31:06 +00:00
Michael McCandless 19ba76b0d4 LUCENE-750: fix one case that was not closing an IndexOutput with a try/finally
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488716 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 16:17:35 +00:00
Michael McCandless 7c4b667f71 LUCENE-748: add javadoc around semantics of Exception during IndexWriter.close()
LUCENE-129: fix finalizers to always call super.finalize
LUCENE-301: add new constructors IndexWriter({String,File,Directory}, Analyzer) that create index if it's not already there, else append
LUCENE-701: found two cases of "open IndexWriter for create while reader is open, on Windows" that I didn't properly fix; added new test cases
LUCENE-702: corrected some small javadoc issues


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488640 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 11:31:27 +00:00