Mark Harwood
387d95417b
Added missing Apache license comments - thanks for the reminder, Otis.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@500417 13f79535-47bb-0310-9956-ffa450edef68
2007-01-26 23:51:38 +00:00
Mark Harwood
c02aed3b5e
Added QueryTemplateManager.java to aid construction of XML queries from form input by using XSL templates. A Junit test provides examples of use. This approach offers a convenient way of externalizing and changing how user input is turned into Lucene queries. Database applications often adopt similar practices by externalizing SQL in template files that can be easily changed/optimized by a DBA.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@500053 13f79535-47bb-0310-9956-ffa450edef68
2007-01-25 23:31:02 +00:00
Mark Harwood
9251a63e01
Fixed bug when BooleanFilter class is used in conjunction with cached filters - the anding of filters' bitsets was changing the original rather than taking a copy of the contents. Changed to use BitSet.clone before performing any destructive operation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@499592 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 22:19:05 +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
Otis Gospodnetic
8cafdd9b64
- Removed isEmpty() Java 6 method, so Andrzej can compile Luke
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@496628 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 09:07:01 +00:00
Otis Gospodnetic
74e68c9287
- Removed extra ;
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@496283 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 11:45:04 +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
Grant Ingersoll
db238e787f
Lucene 675: Initial commit of Doron Cohen's byTask benchmarking contribution. Thanks Doron!
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@495834 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 04:08:23 +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
Grant Ingersoll
59b8e30f85
synced the html with the xml for issue 756
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@494681 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 01:36:51 +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
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
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