Commit Graph

2304 Commits

Author SHA1 Message Date
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
Mark Harwood 18ece160e3 Fix to apply any custom boost setting when the Query is rewritten
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492830 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:18:32 +00:00
Mark Harwood 998908257b Added new "CachedFilter" feature to XML syntax enabling any queries or filters to be cached for better repeat performance. Added JUnit test and example XML file. Also fixed ClassCastException in DOMUtils which occured when getAttributeWithInheritance reached the root of a document without finding the required attribute.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492823 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:05:17 +00:00
Grant Ingersoll 59b624efc6 property ignore on benchmark/temp and work
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492384 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 02:20:31 +00:00
Grant Ingersoll 8cffe45c2a replaced string concatenation with chained appends
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@492383 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 02:17:58 +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
Daniel Naber 67399fdd8d ingore case in the names of commands (Search == search etc.)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@490513 13f79535-47bb-0310-9956-ffa450edef68
2006-12-27 15:22:22 +00:00
Grant Ingersoll c4193343bf set svn:ignore property on the build directory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@490501 13f79535-47bb-0310-9956-ffa450edef68
2006-12-27 13:27:06 +00:00
Grant Ingersoll 7d96f24357 Added some more explanation to the README to help people find the other analyzers.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@490368 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 20:44:29 +00:00
Otis Gospodnetic 2cf113a022 - Javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489847 13f79535-47bb-0310-9956-ffa450edef68
2006-12-23 03:36:34 +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 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 6b52621be3 make sure build.dir gets created as well. Plus make sure we exclude the results of running Forrest (src/site/build) from the source packaging.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@489257 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 03:32:42 +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
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 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
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
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
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
Grant Ingersoll 24a33435fc http://issues.apache.org/jira/browse/LUCENE-747 fixed per patch from Simon Willnauer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487369 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 22:02:03 +00:00
Simon Willnauer 550b50fdd8 redefined compile-core and compile-test to exclude db4o dependend classes if db4o jar is not present
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487315 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 19:26:27 +00:00
Simon Willnauer fb0c30d061 defined default task to use inherit ant tasks in sub folders
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@487313 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 19:25:43 +00:00
Simon Willnauer ad3ccde3a0 fixed some path errors due to the new structure
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486811 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 19:36:49 +00:00
Simon Willnauer 4374e2e88a created internal "subproject" structure to reuse the common-build.xml ant tasks
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486798 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 19:04:23 +00:00
Simon Willnauer 5aabf7a0b9 Fixed compile error in GDataIndexWriterTest as IndexWriter has not commitTimeout setter anymore.
Fixed misspelled path in gom-build.xml


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486631 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:55:43 +00:00
Simon Willnauer d775297874 modifications added to changes.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486629 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:46:13 +00:00
Simon Willnauer 4711af4ef3 Removed unneccessary UML metadata
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486628 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:41:32 +00:00
Simon Willnauer 3bd4a16711 Initial Revision GData Object Model
GOM is a GData object representation for render, parse and manipulate GData Feeds (RSS/ATOM)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486627 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:39:54 +00:00
Simon Willnauer 9cc3210dd0 deleted hivemind related test from core test folder.
This source has been copied/moved to ./src/hivemind/test

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486625 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:37:16 +00:00
Simon Willnauer e3e2ed3801 Applied new structure of the gdata-server project.
All source and test-sources are located under the ./src/ folder.
Created GData Object Model (GOM) folder ./src/gom, Core-Folder ./src/core and ./src/hivemind
Sources and Tests now splitted into their "sub" projects.

Fixed compile error in GDataIndexWriter as IndexWriter has not commitTimeout setter anymore.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486622 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 12:32:08 +00:00