Erik Hatcher
f32d7e7786
Added rewrite methods to all SpanQuery subclasses that nest SpanQuerys
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@289556 13f79535-47bb-0310-9956-ffa450edef68
2005-09-16 14:17:32 +00:00
Daniel Naber
ae53f09860
avoid some deprecation warnings
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@240403 13f79535-47bb-0310-9956-ffa450edef68
2005-08-27 11:20:25 +00:00
Daniel Naber
c7c1a6b8c6
mention that QueryParser is not thread-safe; don't refer to deprecated method in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@239737 13f79535-47bb-0310-9956-ffa450edef68
2005-08-24 19:31:59 +00:00
Erik Hatcher
718380d17e
Add .equals/.hashCode to allow for comparisons of SpanOrQuerys
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@234254 13f79535-47bb-0310-9956-ffa450edef68
2005-08-21 15:45:42 +00:00
Daniel Naber
9b3aa1aec0
remove a class that's not used at all
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@234196 13f79535-47bb-0310-9956-ffa450edef68
2005-08-21 12:52:32 +00:00
Daniel Naber
3b9f3cf427
adding MatchAllDocsQuery by John Wang, bug #34946
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@234190 13f79535-47bb-0310-9956-ffa450edef68
2005-08-21 12:23:00 +00:00
Daniel Naber
e46b8070a6
-make more methods and the exceptions work, adding test cases for these
...
-adding a warning to the javadoc that the user is responsible for keeping the indexes in sync
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231343 13f79535-47bb-0310-9956-ffa450edef68
2005-08-10 22:39:26 +00:00
Daniel Naber
f770e5fbe2
use setter/getter instead of system property; catch security
...
exception so Lucene can be used inside an applet
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231098 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 20:12:50 +00:00
Daniel Naber
4e5151110b
catch security exception so this class can be used from an applet;
...
tiny improvement to the exception output (no toString())
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231078 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 18:41:47 +00:00
Daniel Naber
2b9294887f
avoid code duplication, patch by Stephane Bailliez ( #36078 )
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231075 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 18:15:30 +00:00
Erik Hatcher
c95a5c5390
Fix issue with lock file when org.apache.lucene.lockDir and java.io.tmpdir are not set
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@230939 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 00:58:01 +00:00
Daniel Naber
65cbe799af
re-indent, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@224373 13f79535-47bb-0310-9956-ffa450edef68
2005-07-22 17:41:46 +00:00
Erik Hatcher
7dd3e02a1a
#35823 - Paul Elschots fix for BooleanScorer2 causing ArrayIndexOutOfBoundsException
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220228 13f79535-47bb-0310-9956-ffa450edef68
2005-07-22 01:48:32 +00:00
Daniel Naber
3227a9dfb8
whitespace cleanup only (re-indent) + adding myself as author
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220171 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 19:12:35 +00:00
Daniel Naber
c9e584847b
stop using the deprecated parse() method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220165 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 18:44:19 +00:00
Daniel Naber
eaa580b853
fix parsing of sloppy phrase queries and wildcard queries
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219965 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 19:11:43 +00:00
Daniel Naber
025022251d
adding toString() implementation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219555 13f79535-47bb-0310-9956-ffa450edef68
2005-07-18 19:28:57 +00:00
Daniel Naber
f242e1b564
Fix for NPE (bug #35626 ). Fix by Hans Hjelm, test case by Scotty Allen.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219387 13f79535-47bb-0310-9956-ffa450edef68
2005-07-17 10:47:14 +00:00
Daniel Naber
d6ee6c0845
maxClauseCount: deprecate public field, no more setting via system property
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219250 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 21:03:33 +00:00
Daniel Naber
71067fa4ff
don't close the input stream as HTMLParser spawns a thread internally
...
and closing the stream leads to errors (this reverts one of my previous
changes)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219245 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 20:45:14 +00:00
Daniel Naber
d51c0dee07
higher resolution is required here so changes to files are detected
...
even if file dates differ by less than a minute
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219241 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 20:22:35 +00:00
Daniel Naber
28e1679191
adding a constructor that takes stopwords as a Set
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219090 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 20:36:28 +00:00
Daniel Naber
9ea49db638
don't allow setting of defaut values via system properties anymore
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216236 13f79535-47bb-0310-9956-ffa450edef68
2005-07-13 20:55:53 +00:00
Daniel Naber
685b655822
make QueryParser.Operator public
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216230 13f79535-47bb-0310-9956-ffa450edef68
2005-07-13 20:34:02 +00:00
Daniel Naber
e3cf2c61b9
toString() implementation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216011 13f79535-47bb-0310-9956-ffa450edef68
2005-07-12 19:49:26 +00:00
Erik Hatcher
77290bc286
Deprecate static parse method, to be removed in 2.0. It causes more trouble than it is worth
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@209185 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 02:31:08 +00:00
Daniel Naber
5433a9d324
import statement cleanup; fix javadoc comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208905 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 10:40:01 +00:00
Daniel Naber
899c7a2bfb
simplify usage of the main method: directory doesn't need to be specified explicitly anymore
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208904 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 10:33:33 +00:00
Daniel Naber
d9c75bfad0
more test cases to increase code coverage
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208851 13f79535-47bb-0310-9956-ffa450edef68
2005-07-02 17:39:57 +00:00
Daniel Naber
f2ac110482
clean up exception handling: there's no need to manually catch exceptions in test
...
cases (unless you expect the exception to be thrown)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208846 13f79535-47bb-0310-9956-ffa450edef68
2005-07-02 16:40:44 +00:00
Daniel Naber
e41ced8f49
clean up exception handling: there's no need to manually catch exceptions in test
...
cases (unless you expect the exception to be thrown)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208807 13f79535-47bb-0310-9956-ffa450edef68
2005-07-01 22:13:53 +00:00
Daniel Naber
9c520544f9
new small test case to increase code coverage of the tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208806 13f79535-47bb-0310-9956-ffa450edef68
2005-07-01 22:07:14 +00:00
Mark Harwood
fa211e79d6
added createTerm method to create Terms without incurring fieldName.intern() overhead
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208682 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 20:57:18 +00:00
Daniel Naber
5bf11bffaf
remove unused code
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202435 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 21:39:03 +00:00
Daniel Naber
096a69aec4
small cleanup, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202432 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 21:31:22 +00:00
Daniel Naber
7d60bb8214
don't print to stdout in test cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202414 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 19:12:55 +00:00
Daniel Naber
04b155a227
avoid NullPointerException when an analyzer returns null for some term
...
(bug #33848 ), patch inspired by John Wang
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202284 13f79535-47bb-0310-9956-ffa450edef68
2005-06-28 21:43:47 +00:00
Daniel Naber
efc2367ac6
small code simplification suggested by John Wang; added deprecated tag to javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202282 13f79535-47bb-0310-9956-ffa450edef68
2005-06-28 21:18:51 +00:00
Daniel Naber
52cda0c4ef
Most of Wolf Siberski's patch to fix #35241/#31841: MulitSearcher failed on WildcardQuery etc.
...
-this has not been committed: removal of mergeBooleanQueries(); change to BooleanQuery.equals()
-added: a test case that is commented out which shows strange queries like "multi* multi* foo" don't work properly
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@201453 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 20:43:47 +00:00
Daniel Naber
00b3e9d8a4
new method to get stop words from reader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@192991 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 20:05:13 +00:00
Daniel Naber
ca5b0a3ca0
small javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@192989 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 19:59:03 +00:00
Otis Gospodnetic
94d7f6e9f5
- Applied patch from src/java/org/apache/lucene/analysis/WordlistLoader.java
...
(reading word list from a Reader)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@191754 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 02:31:33 +00:00
Daniel Naber
416190e29d
small typo fix in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@191358 13f79535-47bb-0310-9956-ffa450edef68
2005-06-19 18:25:22 +00:00
Bernhard Messer
b51159aeda
use filenames and extensions from org.apache.lucene.index.IndexFileNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189794 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 19:00:36 +00:00
Bernhard Messer
ba8ed654fd
use new filename filter in org.apache.lucene.index.IndexFileNameFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189793 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:59:10 +00:00
Bernhard Messer
20acd17c8d
move extension members to new class org.apache.lucene.index.IndexFileNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189792 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:58:30 +00:00
Bernhard Messer
7f82450470
useful constants representing filenames and extensions used by lucene
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189791 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:57:20 +00:00
Bernhard Messer
088f61f774
new index filename filter class. Accepts all lucene related index files.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189790 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:56:40 +00:00
Daniel Naber
0c8d5ce2df
commenting out test cases, I'm pretty sure these were broken and the new result
...
is now correct thanks to the fixed behavior of MultiSearcher
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189622 13f79535-47bb-0310-9956-ffa450edef68
2005-06-08 19:28:47 +00:00
Daniel Naber
748b2419e9
if only score or id is accessed, don't load the document (as that causes
...
a disk access)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189448 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 21:46:50 +00:00
Daniel Naber
47180b6983
adding getVersion()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@188865 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 20:55:19 +00:00
Daniel Naber
af42440fc0
un-deprecate lastModified() and getCurrentVersion()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@188856 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 20:21:26 +00:00
Daniel Naber
4fd3b6899d
simplify set... methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@185088 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 22:57:18 +00:00
Daniel Naber
1041068de0
"see also" link in javadoc to IndexModifier
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@185087 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 22:54:42 +00:00
Daniel Naber
12f8b24dce
rename test case class
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@185083 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 22:43:28 +00:00
Daniel Naber
e2a79a145f
new IndexModifier class that simplifies access to IndexReader and IndexWriter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@185069 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 22:29:30 +00:00
Bernhard Messer
0532c41143
Implement names for "segments" and "deletable" files in Constants. This removes "hardcoded" filenames and makes code cleaner and easier to maintain.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@180349 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 17:52:12 +00:00
Daniel Naber
4114147edd
trivial fixes to javadocs, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@180014 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 19:17:51 +00:00
Daniel Naber
c636897dc4
add isCurrent() and initialise the segments version number with System.currentTimeMillis()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@180010 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 18:16:00 +00:00
Erik Hatcher
2dad1a9807
remove ERROR comments as the bug is not fixed
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179766 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 10:25:50 +00:00
Erik Hatcher
e45c04c7ff
#35157 - Fix for SpanTermQuerys in a BooleanQuery. Patch from Reece Wilton.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179679 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 00:22:47 +00:00
Daniel Naber
b305174366
fixing the inaccurate javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179621 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 18:18:50 +00:00
Doug Cutting
098a0e95b8
Optimize IndexWriter.addIndexes(Directory[]).
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179611 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 17:05:58 +00:00
Doug Cutting
eea1c63a62
Fix FSDirectory.createOutput() to always create new files.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179609 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 16:57:10 +00:00
Doug Cutting
4ade1d4606
Add IntParser and FloatParser interfaces to FieldCache.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179605 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 16:48:40 +00:00
Daniel Naber
5edb98e537
obtain(long) never really waited for the lock to go away ( #33799 )
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179414 13f79535-47bb-0310-9956-ffa450edef68
2005-06-01 20:10:58 +00:00
Daniel Naber
fa97a9bb13
small javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178902 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 23:21:00 +00:00
Daniel Naber
d40ff799e8
javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178894 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 23:00:49 +00:00
Daniel Naber
a3f99b1f43
small javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178893 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 22:58:17 +00:00
Daniel Naber
3dc6861571
not public anymore + javadoc fixes (by Paul Elschot)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178872 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 15:57:54 +00:00
Daniel Naber
f4e819c006
update URL in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178268 13f79535-47bb-0310-9956-ffa450edef68
2005-05-24 20:18:18 +00:00
Daniel Naber
30051ef3b5
adding setMaxFieldLength() to the example; Jakarta -> Apache
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178245 13f79535-47bb-0310-9956-ffa450edef68
2005-05-24 18:53:21 +00:00
Erik Hatcher
f9cda45f7d
adjust hashCode based on feedback from Paul Elschot
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178149 13f79535-47bb-0310-9956-ffa450edef68
2005-05-24 10:15:23 +00:00
Erik Hatcher
2762141057
implement .equals/.hashCode
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178059 13f79535-47bb-0310-9956-ffa450edef68
2005-05-24 01:35:13 +00:00
Daniel Naber
061a2074e0
test to show that "*" can be used as the first character, too
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178009 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 20:16:54 +00:00
Daniel Naber
d282afeb94
small javadoc improvement
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178005 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 19:10:12 +00:00
Daniel Naber
053ff701e0
small javadoc improvement
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@177997 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 18:39:02 +00:00
Daniel Naber
c3f5eb0eb4
import cleanup; small javadoc improvement
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@177987 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 17:58:40 +00:00
Erik Hatcher
79bc8a4593
add .equals/.hashCode to SpanTermQuery to allow comparison and collections to work logically. The other SpanQuery subclasses should probably have a similar adjustment and I will take care of those as I run into cases where it is necessary
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@170853 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 01:30:43 +00:00
Bernhard Messer
c5600176d2
optimized buffer handling and runtime optimization.
...
The initial buffer size is set to 10 characters, so it doesn't have to be increased that often.
If the buffer has to grow, just copy the identical pattern and not the whole string.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@170226 13f79535-47bb-0310-9956-ffa450edef68
2005-05-15 15:04:39 +00:00
Doug Cutting
01947641d5
Rename 'enum' to 'termEnum' for Java 1.5 compatibility.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@169861 13f79535-47bb-0310-9956-ffa450edef68
2005-05-12 18:09:18 +00:00
Doug Cutting
b68ae2ef26
Add ParallelReader.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@169859 13f79535-47bb-0310-9956-ffa450edef68
2005-05-12 17:59:41 +00:00
Daniel Naber
53b16d2054
javadoc: fix deprecated links
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@169683 13f79535-47bb-0310-9956-ffa450edef68
2005-05-11 19:40:56 +00:00
Daniel Naber
129227dce1
throw a more helpful exception if supposed directory is a file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@169136 13f79535-47bb-0310-9956-ffa450edef68
2005-05-08 14:51:29 +00:00
Daniel Naber
9f78244f9e
convenience constructors that load list of stop words from a file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168970 13f79535-47bb-0310-9956-ffa450edef68
2005-05-06 22:28:52 +00:00
Daniel Naber
c3f90ad76e
use non-deprecated API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168642 13f79535-47bb-0310-9956-ffa450edef68
2005-05-06 19:32:54 +00:00
Daniel Naber
529214394c
remove useless parameter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168640 13f79535-47bb-0310-9956-ffa450edef68
2005-05-06 19:29:40 +00:00
Daniel Naber
170bdc33a3
call static methods via class, not via object (avoids warning in Eclipse)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168454 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 22:46:09 +00:00
Daniel Naber
ffbdf0b882
test using a non-existing field as first sort key
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168453 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 22:41:44 +00:00
Daniel Naber
a20246c68c
don't declare Exceptions that are never thrown; remove an unused variable
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168450 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 22:37:09 +00:00
Daniel Naber
c97ba92ebd
refactoring so that filename extensions are in one place
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168449 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 22:20:49 +00:00
Daniel Naber
0209ce959b
don't print to stdout in test cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168338 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 15:22:03 +00:00
Daniel Naber
4b00637662
only delete our own files when re-creating an index ( #34695 )
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168213 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 23:34:52 +00:00
Daniel Naber
cfb14e1be8
improve text of exception
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@165658 13f79535-47bb-0310-9956-ffa450edef68
2005-05-02 18:43:48 +00:00
Daniel Naber
b8dfd507eb
whitespace cleanup only (no more tabs/spaces mix)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@165552 13f79535-47bb-0310-9956-ffa450edef68
2005-05-01 22:04:24 +00:00
Daniel Naber
9c3bd9ca86
import cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@165484 13f79535-47bb-0310-9956-ffa450edef68
2005-05-01 11:59:02 +00:00
Erik Hatcher
d9042b00d8
move PrecedenceQueryParser to contrib/misc until the kinks are worked out
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164964 13f79535-47bb-0310-9956-ffa450edef68
2005-04-27 09:32:33 +00:00
Erik Hatcher
3b44de80e6
Correct source of javadoc warnings
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164935 13f79535-47bb-0310-9956-ffa450edef68
2005-04-27 01:39:17 +00:00
Erik Hatcher
6952e96648
revamp toString so as to not deal with potential IOException from fetching a document
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164934 13f79535-47bb-0310-9956-ffa450edef68
2005-04-27 01:38:35 +00:00
Doug Cutting
a5db1c034a
Improvements to patch #31841 from Wolf Siberski. Deprecation is now consistent. Tests now pass.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164865 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 19:30:20 +00:00
Daniel Naber
335606ec82
make deprecated tests compile again
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164843 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 18:01:09 +00:00
Erik Hatcher
f7023a936d
Clear up Hit javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164728 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 03:23:44 +00:00
Erik Hatcher
cfd5d55b7e
Fix issue Otis identified with HitIterator, along with corresponding test case
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164726 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 03:19:07 +00:00
Erik Hatcher
2bb0c8f257
Fixed @see tags and added reference to HitIterator from Hits.iterator
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164704 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 01:29:02 +00:00
Erik Hatcher
6dbb01e8b5
add warning about Hits.iterator
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164699 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 00:51:58 +00:00
Erik Hatcher
ab83a46657
Add Hits.iterator and corresponding HitIterator and Hit classes. Contributed by Jeremy Rayner
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@164695 13f79535-47bb-0310-9956-ffa450edef68
2005-04-26 00:21:53 +00:00
Daniel Naber
e9f22b5bc5
small documentation improvement
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@162070 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 20:53:03 +00:00
Doug Cutting
0dcd089588
Use variables for gcc executables, so that folks may specify alternate
...
versions. Patch from Brion Vibber. Bug #34545 .
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@162068 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 20:49:45 +00:00
Daniel Naber
f8e8507a44
a test case to make sure the MultiSearcher ranking is really fixed (bug #31841 )
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@162063 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 20:34:09 +00:00
Otis Gospodnetic
e4bd715106
- Applied Chuck's and Wolf's patch for bug 31841
...
http://issues.apache.org/bugzilla/show_bug.cgi?id=31841
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@162008 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 03:28:32 +00:00
Erik Hatcher
bc1a7b0f6f
Grammar correction.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161999 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 01:10:54 +00:00
Erik Hatcher
1bda4aff94
add nested clauses for .equals test
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161998 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 01:05:52 +00:00
Erik Hatcher
db095e45e5
minor javadoc cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161997 13f79535-47bb-0310-9956-ffa450edef68
2005-04-20 01:04:49 +00:00
Erik Hatcher
14b21aae0d
revert change to BooleanQuery.equals and add a test case.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161075 13f79535-47bb-0310-9956-ffa450edef68
2005-04-12 17:22:32 +00:00
Erik Hatcher
e676822c77
#34408 : Add .equals/.hashCode to RangeQuery to facilitate use within hash maps and in unit test comparisons
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161045 13f79535-47bb-0310-9956-ffa450edef68
2005-04-12 12:34:56 +00:00
Otis Gospodnetic
13f423812c
- Unit test contributed by Cheolgoo Kang and cleaned up by Paul Elschot
...
c.f. http://issues.apache.org/bugzilla/show_bug.cgi?id=33459
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@160127 13f79535-47bb-0310-9956-ffa450edef68
2005-04-05 03:21:05 +00:00
Erik Hatcher
f673bff9ef
add .equals support for MultiTermQuery and subclasses. this facilitates unit testing comparison of Query instances
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@159688 13f79535-47bb-0310-9956-ffa450edef68
2005-04-01 13:51:04 +00:00
Daniel Naber
ccc027faba
typo fix in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@159229 13f79535-47bb-0310-9956-ffa450edef68
2005-03-28 11:14:33 +00:00
Doug Cutting
f654321707
Make lessThan() implementation non-final, fixing bug #34028 .
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158633 13f79535-47bb-0310-9956-ffa450edef68
2005-03-22 18:02:09 +00:00
Erik Hatcher
f14428eef4
Correct BooleanQuery.equals such that every clause is compared
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158016 13f79535-47bb-0310-9956-ffa450edef68
2005-03-18 03:29:16 +00:00
Daniel Naber
09b58de1db
fixing javadoc links
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157978 13f79535-47bb-0310-9956-ffa450edef68
2005-03-17 21:27:55 +00:00
Otis Gospodnetic
0f8b179e57
- Cosmetics (tabs, indentation)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157225 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:50:54 +00:00
Otis Gospodnetic
1a3ce57455
- Removed FIXMEs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157224 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:31:05 +00:00
Otis Gospodnetic
0d8a41342e
- Let callers get the Lucene version number, as specified in the Manifest
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157223 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:23:13 +00:00
Otis Gospodnetic
15e741ff29
- Added javadoc to setTermIndexInterval (from Doug's email)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157214 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:01:09 +00:00
Otis Gospodnetic
416ab4adf4
- Removed unused import (not referenced from javadoc either)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157211 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 02:43:52 +00:00
Otis Gospodnetic
0d17772c8e
- Fixed the compilation error
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157210 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 02:42:57 +00:00
Doug Cutting
85cc5c9fc3
Added IndexWriter.setTermIndexInterval().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156669 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 18:58:26 +00:00
Erik Hatcher
4a4221e0a9
remove pesky static parse method that stymies flexibility
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156600 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:21:22 +00:00
Erik Hatcher
835871eedc
fixed javadoc typo and added helpful diagnostic toString methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156599 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:02:46 +00:00
Erik Hatcher
270e1dc91c
Adjusted tests for discussed expectations.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156598 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:00:47 +00:00
Erik Hatcher
1644a28475
Minor tweaks to the new proposed query parser. There are still some
...
failing tests, as some were added to show expectations not yet met. The
main missing piece is getting NOT precedence accounted for.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156597 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 02:59:40 +00:00
Doug Cutting
4ddfbcffc6
Patch a bug where the .tii file was not closed.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156549 13f79535-47bb-0310-9956-ffa450edef68
2005-03-08 17:30:43 +00:00
Erik Hatcher
90ff23fb92
fix the +/-a queries - easier than I thought - just restored a line of code from QueryParser.jj
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156451 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 21:56:36 +00:00
Erik Hatcher
27614d6a39
Fix broken QueryParser.jj and generated code. Removed inadvertent debugging <echo> from build.xml.
...
Added (currently failing) test cases for new PrecedenceQueryParser as a target for enhancement.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156449 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 21:46:39 +00:00
Doug Cutting
ff6cb58371
Make previous change thread-safe.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156447 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:50:36 +00:00
Doug Cutting
be8ae58254
Read term index lazily at first random-access to terms.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156444 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:28:04 +00:00
Erik Hatcher
4ed95e7f75
JavaCC generate the changes Doug has made
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156443 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:18:58 +00:00
Doug Cutting
62855478e8
Amendment to patch #33472 . Extended to Erik's new query parser, and patched one place missed in the original patch.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156441 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 19:53:29 +00:00
Doug Cutting
4d1970ebab
Patch #33472 . Disable coord() in automatically generated queries.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156438 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 19:26:27 +00:00
Erik Hatcher
a606c0890c
Update generated files. Maybe <javacc> is more of a pain than its worth!
...
Added more tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156435 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 18:21:16 +00:00
Erik Hatcher
5f67460ad2
Add new PrecedenceQueryParser so others can try it out and discuss any issues with it. TestPrecedenceQueryParser is
...
a clone of TestQueryParser with two noted changes - one within testQPA and with the testPrecedence method. testPrecedence
was added to TestQueryParser to show its awkward behavior (and ensure it doesn't change).
Modified build to use Ant's <javacc> task, instead of launching directly with <java>, which has built-in dependency
checking.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156431 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 16:08:02 +00:00
Erik Hatcher
88a88a92f3
for some reason regenerating with JavaCC moved a method - perhaps due to a different version of JavaCC - commit using JavaCC 3.2
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156427 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 16:00:48 +00:00
Otis Gospodnetic
ed1d0834f2
- Paul's Javadoc improvements from bug 33678: http://issues.apache.org/bugzilla/show_bug.cgi?id=33678
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155607 13f79535-47bb-0310-9956-ffa450edef68
2005-02-27 01:29:53 +00:00
Doug Cutting
aaba39e3b7
Added accessor methods, as suggested by Kevin Burton.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155349 13f79535-47bb-0310-9956-ffa450edef68
2005-02-25 17:39:02 +00:00
Erik Hatcher
d0468669c2
fix broken links to source
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155011 13f79535-47bb-0310-9956-ffa450edef68
2005-02-23 14:14:12 +00:00
Daniel Naber
cf41b3d1cb
fix NullPointerException when parsing phrase query with the new MFQP
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154406 13f79535-47bb-0310-9956-ffa450edef68
2005-02-19 15:04:49 +00:00
Erik Hatcher
db2c7c98e9
Bugzilla #33642 fix javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154346 13f79535-47bb-0310-9956-ffa450edef68
2005-02-18 20:49:36 +00:00
Daniel Naber
25f82f4458
trivial whitespace fix only
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154079 13f79535-47bb-0310-9956-ffa450edef68
2005-02-16 20:15:48 +00:00
Daniel Naber
52537afdb6
throw IllegalArgumentException to avoid endless loop
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154076 13f79535-47bb-0310-9956-ffa450edef68
2005-02-16 20:07:38 +00:00
Erik Hatcher
e75ffc5b11
remove deprecation warning
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151471 13f79535-47bb-0310-9956-ffa450edef68
2005-02-05 03:03:22 +00:00
Doug Cutting
bfffc32a3d
Fix for bug #32847 . Use uncached access to norms when merging to
...
minimize RAM usage.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151390 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 19:09:53 +00:00
Bernhard Messer
a14e0acf09
move static main method to list and optionally extract the individual file from a compound index from CompoundFileReader to IndexReader. It is more cleaner to have the method in IndexReader because it is well documented and public available.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151381 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 17:45:16 +00:00
Daniel Naber
ecd4a7256d
fix for #33395 : The deprecated constructor of BooleanClause does not set new state (patch provided by Paul Elschot, slightly modified)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151252 13f79535-47bb-0310-9956-ffa450edef68
2005-02-03 23:35:26 +00:00
Daniel Naber
d627eced03
test case that makes sure sloppy phrase queries use the term distance to calculate the result ranking
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150740 13f79535-47bb-0310-9956-ffa450edef68
2005-01-28 22:22:04 +00:00
Christoph Goller
3ad078a757
Fixed small typo to enable compilation again.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150739 13f79535-47bb-0310-9956-ffa450edef68
2005-01-26 13:57:41 +00:00
Otis Gospodnetic
679e46a713
- Read-in query string as UTF-8
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150738 13f79535-47bb-0310-9956-ffa450edef68
2005-01-26 04:35:33 +00:00
Christoph Goller
217ac20c30
New BooleanScorer implemented by Paul Elschot
...
(Patch 31785) that implements skipTo and delivers
documents in correct order. Furthermore a small bug
in ConjunctionScorer skipTo (if called without a
preceeding next) is eliminated.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150736 13f79535-47bb-0310-9956-ffa450edef68
2005-01-24 19:21:01 +00:00
Daniel Naber
7ff11fc34d
fix for bug 33161 (UnsupportedOperationException for some combinations of BooleanQuery and MultiPhraseQuery)
...
PR: 33161
Submitted by: Rhett Sutphin
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150733 13f79535-47bb-0310-9956-ffa450edef68
2005-01-19 23:32:52 +00:00
Erik Hatcher
277a3aa744
StandardAnalyzer test contributed by Chris Lamprecht
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150730 13f79535-47bb-0310-9956-ffa450edef68
2005-01-18 13:27:23 +00:00
Daniel Naber
2c43e92e98
fixing some deprecated/see tags in the javadoc comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150729 13f79535-47bb-0310-9956-ffa450edef68
2005-01-04 19:25:01 +00:00
Daniel Naber
1129d547da
avoid deprecated method call
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150728 13f79535-47bb-0310-9956-ffa450edef68
2005-01-03 17:05:31 +00:00
Daniel Naber
55bfcc6d47
reduce date resolution from seconds to minutes, this should be enough for most cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150727 13f79535-47bb-0310-9956-ffa450edef68
2005-01-01 23:13:00 +00:00
Bernhard Messer
fd754080ce
add a public static void main method to list and optional extract the individual files from a compound. The original code was proposed by Garrett Rooney.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150723 13f79535-47bb-0310-9956-ffa450edef68
2004-12-30 12:55:10 +00:00
Bernhard Messer
cbe5047e62
use the new DateTools.timeToString instead of the deprecated DateTime class.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150722 13f79535-47bb-0310-9956-ffa450edef68
2004-12-30 12:06:09 +00:00
Bernhard Messer
eb7e42eb4a
adjust test cases to make use of the new IndexReader.getFieldNames method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150721 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:38:41 +00:00
Bernhard Messer
1e53679495
use the new IndexReader.getFieldNames instead of the deprecated ones.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150720 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:37:47 +00:00
Bernhard Messer
8f5e0f6406
new method: public abstract Collection getFieldNames(FieldOption fldOption) added to IndexReader. This is a replacement for all existing IndexReader.getFieldName methods. All the other methods are marked deprecated and should be removed with 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150719 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:35:45 +00:00
Bernhard Messer
ad114c6e7d
use the new non-deprecated IndexWriter.getMergeFactor() method instead of the static variable IndexWriter.mergeFactor.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150718 13f79535-47bb-0310-9956-ffa450edef68
2004-12-22 19:43:05 +00:00
Daniel Naber
11f9a45a03
fixing typo in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150717 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 16:25:40 +00:00
Bernhard Messer
2779fa5edc
make deprecated test work again with bug fix in Reader getFieldNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150715 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:59:33 +00:00
Bernhard Messer
785e50ba82
make tests work again with bug fix in Reader getFieldNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150714 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:58:49 +00:00
Bernhard Messer
7b008b210d
do not longer return an extra blank field in Reader getFieldNames
...
PR:19085
Obtained from: Mark Harwood
Submitted by: Bernhard
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150713 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:55:48 +00:00
Daniel Naber
cdd85a75ea
The terms of fuzzy and range queries are lowercased by default now. setLowercaseWildcardTerms deprecated, introducing setLowercaseExpandedTerms instead.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150709 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 23:02:53 +00:00
Daniel Naber
b74370baec
slightly improve the TooManyClauses exception documentation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150708 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 19:28:44 +00:00
Daniel Naber
db9e4e97db
document that TooManyClauses is thrown by several methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150707 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 19:00:01 +00:00
Daniel Naber
857624d038
print a message to infoStream if the number of maximum tokens per document (maxFieldLength) is reached
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150706 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 20:26:27 +00:00
Daniel Naber
a7495a6df8
upgrade hints in the deprecated tag
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150705 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 15:36:33 +00:00
Daniel Naber
4f3aad23f2
Deprecate the old constructors and the main parse(...) method. The new one now generates a query that works
...
as expected for both AND and OR mode. Also do better argument checking in the static methods and throw
IllegalArgumentException if something is wrong.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150704 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 15:27:49 +00:00
Daniel Naber
c62435297b
adding a simple indexing and searching example to the API documentation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150702 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 11:15:51 +00:00
Daniel Naber
68d8f3c27e
trivial typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150701 13f79535-47bb-0310-9956-ffa450edef68
2004-12-10 22:18:35 +00:00
Christoph Goller
84a908d84c
Test case and fix for bug #32467
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150700 13f79535-47bb-0310-9956-ffa450edef68
2004-12-10 19:36:40 +00:00
Daniel Naber
ac5e84d8f6
update to Apache License 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150699 13f79535-47bb-0310-9956-ffa450edef68
2004-12-08 18:49:00 +00:00
Bernhard Messer
c0b059bf97
add test-cases from lucene 1.4.3 so that we can test all deprecated and outdated methods and also. There will be no need to change this test cases. They can be deleted step by step when moving from 1.9 to 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150694 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 18:21:58 +00:00
Bernhard Messer
e791e88b67
change lockdir to lockDir so that it follows the existing casing
...
pattern.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150690 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 22:38:48 +00:00
Bernhard Messer
85849a7a12
change visibility of class members from public to package private.
...
PR:31746
Submitted by: Bernhard Messer
Reviewed by: Bernhard Messer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150689 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 21:42:02 +00:00
Daniel Naber
1ba2fb65c5
update to Apache License 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150688 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 21:36:28 +00:00
Bernhard Messer
adb32ee179
avoid NullpointerException if close() method is called twice. See Bugzilla: #32403
...
Submitted by: Wolf Siberski
Reviewed by: Bernhard Messer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150686 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 20:41:01 +00:00
Daniel Naber
2cc6c7f64a
clarify that DateField will not be removed soon, despite being deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150682 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 15:42:17 +00:00
Bernhard Messer
1803bd7939
catch IOException rather than all Exceptions in testBadParams(). Add another "bad document number" test without a field value. Remove unnecessary cast.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150681 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 13:40:47 +00:00
Bernhard Messer
16552ede59
avoid ArrayIndexOutOfBoundsException in method refill() when bufferLength gets a negativ value. It happens when TermVectorsReader.get(int docID) is used with a docID larger than number of documents stored in the index.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150680 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 13:33:55 +00:00
Daniel Naber
918572be86
improve javadoc by mentioning Filter
...
PR: 32365
Submitted by: Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150673 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 22:06:12 +00:00
Daniel Naber
1bc761f26a
don't append "*" to the term, it doesn't make sense and is confusing
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150672 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 19:41:16 +00:00
Daniel Naber
31335c60ae
small javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150671 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 19:34:11 +00:00
Christoph Goller
74f6ac4615
Old class name replaced with new class name in Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150670 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 17:40:48 +00:00
Daniel Naber
d040882872
adapt to new typesafe API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150669 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 23:14:31 +00:00
Daniel Naber
197ad763d1
get/setOperator becomes get/setDefaultOperator and its parameter is now typsafe
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150668 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 23:13:34 +00:00
Daniel Naber
742417162a
throw NullPointerException instead of IllegalArgumentException; small typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150667 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 22:36:10 +00:00
Erik Hatcher
d0623a8e13
Add first pass for NumberUtils, adapted from code contributed by Matt Quail.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150666 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 21:07:49 +00:00
Daniel Naber
6bf1504200
some small javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150665 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 20:56:06 +00:00
Daniel Naber
552c9465c8
remove javadoc for rewrite(), will be copied from superclass automatically
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150664 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 20:54:47 +00:00
Daniel Naber
c35d916355
adding license; typo fix
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150663 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:56:40 +00:00
Daniel Naber
c4fb0d010f
fixing typos in comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150662 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:54:32 +00:00
Daniel Naber
308811b558
adding license; use the non-deprecated Field constructors
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150661 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:48:55 +00:00
Christoph Goller
b674ad711f
Javadoc correction as suggested by Bug#32353
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150660 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:22:24 +00:00
Christoph Goller
6e71206441
small Javadoc correction
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150659 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:05:15 +00:00
Erik Hatcher
b01416fcb3
Added RangeFilter and tests contributed by Chris M Hostetter.
...
Deprecated DateFilter and DateField.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150658 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 14:17:18 +00:00
Bernhard Messer
debe012863
add short description for the new test and remove misleading comment.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150657 13f79535-47bb-0310-9956-ffa450edef68
2004-11-22 09:37:24 +00:00
Bernhard Messer
f2b8cfbde7
add a test for bug 31976
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150656 13f79535-47bb-0310-9956-ffa450edef68
2004-11-21 22:33:54 +00:00
Bernhard Messer
b77b25d52b
Fix for bug: 31976, avoid NullPointerException when adding a document with an single, empty field and term vectors enabled.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150655 13f79535-47bb-0310-9956-ffa450edef68
2004-11-21 22:32:49 +00:00
Daniel Naber
f9f3f74b68
open the searcher so that the searcher's close() call will close the implicitly opened reader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150653 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 20:58:45 +00:00
Daniel Naber
229e6e039f
adding a comment that opening an IndexReader can be slow
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150650 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:28:02 +00:00
Daniel Naber
eb5344256f
close the searcher at the end of the page
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150649 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:22:27 +00:00
Daniel Naber
724f27f4bc
use Exception.toString() instead of getMessage() for a slighlty more verbose message
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150648 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:15:28 +00:00
Bernhard Messer
d9f00f1d09
show a useful error message if the directory to index doesn't exist or isn't readable.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150647 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 18:54:13 +00:00
Bernhard Messer
34c106218e
make the error messages more verbose using the exceptions toString() method.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150646 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 18:37:53 +00:00
Bernhard Messer
fc6694ef9d
change from cal.setTimeInMillis(long l) to cal.setTime(Date d) because cal.setTimeInMillis(...) was protected in JDK's prior to 1.4
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150645 13f79535-47bb-0310-9956-ffa450edef68
2004-11-16 22:27:54 +00:00
Bernhard Messer
1515574bff
change from RuntimeException (Exception e) to RuntimeException (String s) to be backward compatible with jdk 1.3
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150644 13f79535-47bb-0310-9956-ffa450edef68
2004-11-16 21:57:47 +00:00
Daniel Naber
ffc746e3d0
throw IllegalArgumentException for nDocs <= 0 to avoid NullPointerException
...
PR: 32227
Submitted by: Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150641 13f79535-47bb-0310-9956-ffa450edef68
2004-11-14 13:26:28 +00:00
Daniel Naber
bcfcf9eeb7
test QueryParser's ability to be used with Analyzers that return more than one token per position
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150640 13f79535-47bb-0310-9956-ffa450edef68
2004-11-13 15:16:11 +00:00
Daniel Naber
f8d0d0b140
make QueryParser work with analyzers that return more than one token per position
...
PR: 23307
Submitted by: Pierrick Brihaye
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150639 13f79535-47bb-0310-9956-ffa450edef68
2004-11-13 15:11:26 +00:00
Daniel Naber
a637ff56b3
test slop
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150638 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 15:18:27 +00:00
Daniel Naber
ac7576a81c
small refactoring
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150637 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 13:59:23 +00:00
Daniel Naber
747a6cce17
fixing typo in variable name and incorrect comment
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150636 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 13:55:23 +00:00
Daniel Naber
49ab2ff423
test that IllegalArgumentException is thrown if terms belong to different fields
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150635 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 11:39:25 +00:00
Erik Hatcher
b708ac392e
move from FQCN to import
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150632 13f79535-47bb-0310-9956-ffa450edef68
2004-11-09 15:12:16 +00:00
Daniel Naber
8d45546b72
fix javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150631 13f79535-47bb-0310-9956-ffa450edef68
2004-11-08 00:10:39 +00:00
Daniel Naber
2c1dc30639
indent the same everywhere, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150630 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 23:41:50 +00:00
Daniel Naber
898aa6abe6
speed up Fuzzy queries 20%-50%, I only did some small whitespace and comment fixes compared to the original patch
...
PR: 31882
Submitted by: Jonathan Hager
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150628 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 23:27:24 +00:00
Daniel Naber
3c4f929368
typo fixes in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150622 13f79535-47bb-0310-9956-ffa450edef68
2004-10-27 21:59:02 +00:00
Otis Gospodnetic
cfc3a8109b
- Fixed compareTo(Object) javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150621 13f79535-47bb-0310-9956-ffa450edef68
2004-10-23 00:50:31 +00:00
Daniel Naber
5869962cf0
improve javadoc
...
PR:30685
Submitted by: Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150619 13f79535-47bb-0310-9956-ffa450edef68
2004-10-19 19:51:35 +00:00
Daniel Naber
8a37ed97d9
don't use the deprecated API in the documentation example
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150618 13f79535-47bb-0310-9956-ffa450edef68
2004-10-18 22:36:54 +00:00
Daniel Naber
1aa4ae4a31
fix comments, no functional change
...
PR: 31748
Submitted by: Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150616 13f79535-47bb-0310-9956-ffa450edef68
2004-10-17 11:47:05 +00:00
Daniel Naber
8aaf570ed6
improve doc for default constructor, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150615 13f79535-47bb-0310-9956-ffa450edef68
2004-10-17 11:19:39 +00:00
Daniel Naber
3a84008a63
security: the error message was not escaped, this could enable cross site scripting
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150614 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 16:21:58 +00:00
Daniel Naber
a819643d58
avoid accessing deprecated field
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150613 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 13:03:34 +00:00
Daniel Naber
7618ca9403
don't link the deprecated PhrasePrefixQuery in the documentation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150612 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 19:50:58 +00:00
Daniel Naber
9daff285c9
several small documentation fixes -- no functional change except a "Usage" message in the main() method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150611 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 19:47:43 +00:00
Christoph Goller
a5d04f404c
Improved Javadoc: Formula for score computation
...
corrected.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150607 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 18:42:20 +00:00
Daniel Naber
5befa0d3ac
make the test case timezone independent
...
Submitted by: Anatol Pomozov
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150606 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 18:08:51 +00:00
Doug Cutting
1a78116cc7
Add a command-line option which permits the norms from a single field
...
to be used for all fields. Norms are read into memory, using a byte
of memory per document per searched field. This can cause search of
large collections with a large number of fields to run out of memory.
If all of the fields contain only a single token, then the norms are
all identical, and a single norm vector may be shared.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150605 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:33:14 +00:00
Doug Cutting
b2416b3039
Check the type of the IndexInput rather than the Directory to detect
...
native implementation. This is a simpler and more correct test. It
also permits the Directory to return a mixture of native and
non-native IndexInput implementations.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150604 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:23:26 +00:00
Doug Cutting
feaea07b3c
Only mmap .frq files, to conserve address space.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150603 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:19:58 +00:00
Doug Cutting
55e076372a
Correctly translate errors from mmap() into exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150602 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:19:06 +00:00
Doug Cutting
c429a5f1e6
Reverse a mistaken optimization. With a larger collection and set of
...
queries I find that a table size of 2k works best.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150601 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:12:04 +00:00
Daniel Naber
46ceb15879
fix HTML (& must be escaped as & in URLs); escape query in the "more results" link; fix typos in comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150600 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 22:14:26 +00:00
Daniel Naber
ce7aaab8af
fix typo in target name
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150599 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 17:53:40 +00:00
Christoph Goller
25d89037c6
default prefix length set to 0 instead of 2 until our test
...
suggest a better value
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150598 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 09:42:02 +00:00
Christoph Goller
5d4c27b23d
Reinsert old API for getFieldQuery, getRangeQuery, and
...
getFuzzyQuery and deprecate it.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150597 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 09:36:12 +00:00