Commit Graph

1195 Commits

Author SHA1 Message Date
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
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
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
Yonik Seeley 487fd6657c fix confusing indentation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487929 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 02:24:49 +00:00
Otis Gospodnetic d0f24d87da - Typo and tabs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487922 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 00:10:40 +00:00
Grant Ingersoll 9b2405c0cc Uses JUnit Task defined tempDir instead of system temp.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487878 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 20:38:44 +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 16a578c21a Hooked in link to Clover test code coverage reports, which will be generated by the nightly build once it goes live. Currently the webserver holds a snapshot of the reports as generated on 12-16-06. See issue 708.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487860 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 19:22:10 +00:00
Otis Gospodnetic 5b21cee1b0 - Fixed typo and unused import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487514 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 10:49:21 +00:00
Yonik Seeley 86442612f3 SpanOrQuery simplification and test: LUCENE-742
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486295 13f79535-47bb-0310-9956-ffa450edef68
2006-12-12 19:52:03 +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
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
Grant Ingersoll e3f84c2a19 Fixed the trail (thanks Marvin) in skinconf and put in a temporary feather logo for the left image.
Added in developer-resources.xml that contains info on contributing, downloading nightly builds and getting code from SVN and added it under the resources section.
Fixed the news release item on the main page to be Nov. 26
Added in links to previous versions of site under the Site Versions so that we have links.  These sites have been downloaded and are available on the website, just not linked to until now

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@481549 13f79535-47bb-0310-9956-ffa450edef68
2006-12-02 12:11:45 +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
Daniel Naber 16d9dc0f49 fix a typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480706 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 20:22:11 +00:00
Grant Ingersoll ae1b4dba98 Readded the lock-less commits documentation that was accidentally lost.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480702 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 20:10:44 +00:00
Michael McCandless 3ec7fb833f LUCENE-727: adding unit test for MMapDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480163 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 19:27:58 +00:00
Yonik Seeley 5b7b831122 map *:* to MatchAllDocsQuery: LUCENE-723
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480150 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 18:29:28 +00:00
Yonik Seeley 42e2191b93 non-recursive MultiTermDocs.next,skipTo: LUCENE-729
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480147 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 18:17:56 +00:00
Grant Ingersoll fa2be4c0d2 Updated the website to new Forrest based site, see Issue 707, part one of commits
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@479465 13f79535-47bb-0310-9956-ffa450edef68
2006-11-27 00:00:46 +00:00
Otis Gospodnetic fe47121a67 - LUCENE-726: removed the use of a deprecated method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@479458 13f79535-47bb-0310-9956-ffa450edef68
2006-11-26 23:40:18 +00:00
Otis Gospodnetic 694dceaa33 - Added the ASF License header
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@479096 13f79535-47bb-0310-9956-ffa450edef68
2006-11-25 07:30:23 +00:00
Michael McCandless a01711b245 LUCENE-720: added a few missing close's
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@478241 13f79535-47bb-0310-9956-ffa450edef68
2006-11-22 17:07:00 +00:00
Michael McCandless 19f90a38ee LUCENE-720: fix two new unit tests (with lockless) to dynamically compute field number since this number can vary depending on JRE
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@478239 13f79535-47bb-0310-9956-ffa450edef68
2006-11-22 17:01:31 +00:00
Yonik Seeley 9ba7a8e612 RAMDirectory.sizeInBytes, public flushRamSegments: LUCENE-709
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@478014 13f79535-47bb-0310-9956-ffa450edef68
2006-11-22 02:47:49 +00:00