Commit Graph

366 Commits

Author SHA1 Message Date
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
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
Otis Gospodnetic 534be1599d - LUCENE-759: Two n-gram producting TokenFilters (using them for the spellchecker in SOLR-81)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513876 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 18:19:53 +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 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
Doron Cohen 64449841ed LUCENE-804: fix build.xml to pack a compilable src_dist
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@510711 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 23:45:34 +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
Yonik Seeley 4cb0175dd7 update version
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@507636 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 17:37:06 +00:00
Yonik Seeley 3a7486b054 starting 2.1 release
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@507610 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 16:37:32 +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 881ab33b81 Forgot changes.txt updates for 762
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@506083 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 18:12:17 +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 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
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 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 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
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 ca55ebad18 document deletion of unused extension "tvp"
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494524 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 19:03:29 +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 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
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
Otis Gospodnetic 8b7f6e4ef6 - LUCENE-759: New n-gram-capable tokenizers and their unit tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489802 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 23:43:17 +00:00
Grant Ingersoll d9ebc50096 Lucene 757 - Added init-dist target and had package and package-*-src call it to ensure the dist dir is created.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489254 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 03:14:02 +00:00
Otis Gospodnetic 17315a9be7 - LUCENE-741: command-line utility for modifying or removing field norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489213 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 22:32:13 +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
Otis Gospodnetic fa71e29bd4 - self.add() to LUCENE-728
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489182 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 19:42:21 +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
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 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
Michael McCandless d6823ef374 LUCENE-702: make sure addIndexes(*) does not corrupt index on disk full; change to transactional semantics; fix IndexWriter.mergeSegments and IndexReader.commit to clean up (and leave instance consistent) on exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488330 13f79535-47bb-0310-9956-ffa450edef68
2006-12-18 16:45:29 +00:00
Grant Ingersoll 0d8f7b704a Mapped java.io.tmpdir to the same value as tempDir.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488004 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 16:45:53 +00:00
Yonik Seeley f1467191f1 replace Vector with ArrayList, add clauses() to return that List of clauses: LUCENE-745
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487931 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 02:40:37 +00:00
Grant Ingersoll a4e0edd530 LUCENE-713. Updated fileformats.xml to include how position and offset info is stored in the TVF file.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487874 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 20:23:30 +00:00
Grant Ingersoll 15df97db57 LUCENE 744 - Appended user.name property onto the directory that gets created in temp so that there aren't naming clashes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485988 13f79535-47bb-0310-9956-ffa450edef68
2006-12-12 02:44:42 +00:00
Michael McCandless f4d9f44828 LUCENE-669: I forgot attribution to Michael Busch for this (thanks Michael!)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485686 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 15:01:07 +00:00
Yonik Seeley 10460b5e87 Performance improvement for SegmentMerger.mergeNorms: LUCENE-739
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485469 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 02:38:29 +00:00
Yonik Seeley 0d109d1485 read/write .del as d-gaps when the deleted bit vector is sufficiently sparse: LUCENE-738
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485463 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 02:03:38 +00:00
Grant Ingersoll 6ccabb7c8f http://issues.apache.org/jira/browse/LUCENE-721 -- Added in Clover code coverage, thanks to Michael Busch.
Updated the xdocs with a new file named systemrequirements that details the system requirements for using Lucene.  Linked to them via the developer-resources and the releases page.  Regenerated the site.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@485001 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 16:32:22 +00:00
Michael McCandless 2b39422870 LUCENE-669: don't double-close RandomAccessFile in finalize
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480785 13f79535-47bb-0310-9956-ffa450edef68
2006-11-30 00:07:46 +00:00
Michael McCandless 989b1cb981 LUCENE-672: added description of the 'under-merging' bug that was also fixed with this change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480238 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 22:20:24 +00:00