Yonik Seeley
b7f89acd31
remove Java5 dependency
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345449 13f79535-47bb-0310-9956-ffa450edef68
2005-11-18 05:23:51 +00:00
Yonik Seeley
0c5febcb15
comment out log messages on success path
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345093 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 19:38:31 +00:00
Yonik Seeley
3c10854e00
new DisjunctionMaxQuery/DisjunctionMaxScorer from Chuck Williams: LUCENE-323
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345089 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 18:47:37 +00:00
Yonik Seeley
c40c7cd114
BooleanQuery/BooleanScorer minNrShouldMatch implementation: LUCENE-395
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345056 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 16:39:59 +00:00
Yonik Seeley
292c9dfa72
added ASF copyright
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@344415 13f79535-47bb-0310-9956-ffa450edef68
2005-11-15 19:29:48 +00:00
Yonik Seeley
fd41195ef3
ConstantScoreRangeQuery addition: LUCENE-383
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@344312 13f79535-47bb-0310-9956-ffa450edef68
2005-11-15 05:28:52 +00:00
Daniel Naber
7017c1b701
throw IllegalArgumentExeception if value doesn't make sense
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332762 13f79535-47bb-0310-9956-ffa450edef68
2005-11-12 11:57:35 +00:00
Erik Hatcher
11866ad09d
Correct TestRegexQuery to test RegexQuery rather than SpanRegexQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332748 13f79535-47bb-0310-9956-ffa450edef68
2005-11-12 09:09:49 +00:00
Erik Hatcher
6befc45334
Add RegexQuery and SpanRegexQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332747 13f79535-47bb-0310-9956-ffa450edef68
2005-11-12 09:03:26 +00:00
Erik Hatcher
f00afeee7a
LUCENE-461 - Fix for "StandardTokenizer splitting all of Korean words into separate characters", contributed by Cheolgoo Kang
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332745 13f79535-47bb-0310-9956-ffa450edef68
2005-11-12 08:33:21 +00:00
Yonik Seeley
34c98cc0bf
fix FieldSortedHitQueue.maxscore: LUCENE-462
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332651 13f79535-47bb-0310-9956-ffa450edef68
2005-11-11 21:19:02 +00:00
Daniel Naber
d37e5cc906
fixing tiny typo in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332631 13f79535-47bb-0310-9956-ffa450edef68
2005-11-11 18:32:22 +00:00
Yonik Seeley
48b55ab1e0
break sorting ties by index order: LUCENE-456
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332431 13f79535-47bb-0310-9956-ffa450edef68
2005-11-11 03:13:10 +00:00
Daniel Naber
5bba415099
a few more tests, fix javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332362 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 19:49:52 +00:00
Yonik Seeley
e9d4568cf5
added random disableCoord to random boolean query
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332344 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 18:14:10 +00:00
Yonik Seeley
3dbba4dabe
fix comparison of null strings in FieldDocSortedHitQueue: LUCENE-453
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332229 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 05:57:32 +00:00
Yonik Seeley
6adbae3dc2
use instanceof instead of catching exception: LUCENE-392
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332214 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 03:24:03 +00:00
Yonik Seeley
7208772e69
test TopDocs score normalization when sorting
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332135 13f79535-47bb-0310-9956-ffa450edef68
2005-11-09 20:28:44 +00:00
Otis Gospodnetic
495e885eee
- Applied Yonik's patch from http://issues.apache.org/jira/browse/LUCENE-441
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331964 13f79535-47bb-0310-9956-ffa450edef68
2005-11-09 06:44:10 +00:00
Daniel Naber
2ce046a7a6
Make QueryParser work with analyzers that return tokens with a position
...
increment > 1. Thanks to Ahmed El-dawy for the fix.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331923 13f79535-47bb-0310-9956-ffa450edef68
2005-11-08 23:05:44 +00:00
Yonik Seeley
fd81a02f17
add getFilter(), LUCENE-440
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331113 13f79535-47bb-0310-9956-ffa450edef68
2005-11-06 15:55:45 +00:00
Yonik Seeley
9cee714143
reset useScorer14 in finally in case of test failure
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331111 13f79535-47bb-0310-9956-ffa450edef68
2005-11-06 15:32:28 +00:00
Yonik Seeley
bfe4a24053
remove floatToIntBits on slop in hashCode
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@330933 13f79535-47bb-0310-9956-ffa450edef68
2005-11-04 22:10:54 +00:00
Yonik Seeley
104aa2999e
random boolean query testing
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@330900 13f79535-47bb-0310-9956-ffa450edef68
2005-11-04 21:15:02 +00:00
Yonik Seeley
9698aac274
test for presence/absence of physical norms file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@330177 13f79535-47bb-0310-9956-ffa450edef68
2005-11-02 03:22:01 +00:00
Bernhard Messer
3ece4bf4f6
adjust testcase due to bugfix in WildcardQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329860 13f79535-47bb-0310-9956-ffa450edef68
2005-10-31 17:06:29 +00:00
Bernhard Messer
34e42624f6
fix to prevent that queries like 'ca??' match a term like 'cat'.
...
Terms with the correct length should be returned only. See Bug#LUCENE-306
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329859 13f79535-47bb-0310-9956-ffa450edef68
2005-10-31 17:05:36 +00:00
Yonik Seeley
965d85f59a
omitNorms tests, make some tests more generic
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329526 13f79535-47bb-0310-9956-ffa450edef68
2005-10-30 05:42:09 +00:00
Yonik Seeley
25d317acaf
remove synchronized from fakeNorms (private & set omitNorms flag on field
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329524 13f79535-47bb-0310-9956-ffa450edef68
2005-10-30 05:38:46 +00:00
Yonik Seeley
07d7d0701f
remove synchronized from fakeNorms (private & always called within sync context)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329523 13f79535-47bb-0310-9956-ffa450edef68
2005-10-30 05:37:11 +00:00
Erik Hatcher
9713d6c30e
additional span tests that have been lingering in my working copy for ages
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329384 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 09:48:22 +00:00
Erik Hatcher
c522c62b36
toString for FuzzyQuery puts boost at the end, which looks more sensible
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329383 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 09:46:00 +00:00
Erik Hatcher
4fc1272877
Utilize ToStringUtils.boost() to remove duplication across .toString implementations and added boost comparison in .equals methods where it was missing
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329381 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 09:26:21 +00:00
Erik Hatcher
9087671cef
Utility class to remove duplication in Query.toString implementations
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329380 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 09:22:47 +00:00
Yonik Seeley
ae11eb845b
make field norms optional : LUCENE-448
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329366 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 03:52:48 +00:00
Yonik Seeley
1bc04d2c65
speedup by deferring docMap and postings until needed - LUCENE-454
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329068 13f79535-47bb-0310-9956-ffa450edef68
2005-10-28 03:44:00 +00:00
Daniel Naber
7fa0cf9587
Improve the expression that's suggested in a comment on how to
...
use "*" and "?" as first characters on wildcard queries. Thanks to
Peter Norrhall.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@328754 13f79535-47bb-0310-9956-ffa450edef68
2005-10-26 22:31:55 +00:00
Yonik Seeley
1d0b4a23d5
add hashCode and equals to filters LUCENE-439
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@328729 13f79535-47bb-0310-9956-ffa450edef68
2005-10-26 21:05:35 +00:00
Daniel Naber
0c26106b36
fix several threading issues
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@328151 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 20:54:45 +00:00
Daniel Naber
8559a28c6e
use non-deprecated constant
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@328122 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 18:29:57 +00:00
Bernhard Messer
99dc3b9ecf
extend test to show FieldsReader Bug#LUCENE-455
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@326610 13f79535-47bb-0310-9956-ffa450edef68
2005-10-19 16:56:11 +00:00
Bernhard Messer
c3cf0e5875
check for storeOffsetWithTermVector and storePositionWithTermVector. See Bug#LUCENE-455
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@326609 13f79535-47bb-0310-9956-ffa450edef68
2005-10-19 16:54:46 +00:00
Erik Hatcher
a53a123525
LUCENE-452 - add .equals/.hashCode
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@314869 13f79535-47bb-0310-9956-ffa450edef68
2005-10-12 12:56:04 +00:00
Daniel Naber
2237664f9c
better exception if temp directory is not readable, by Jeff Turner (bug LUCENE-449)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@312719 13f79535-47bb-0310-9956-ffa450edef68
2005-10-10 19:33:22 +00:00
Daniel Naber
fb0fb2693b
deprecate methods that use int flags, adding alternative methods that
...
use enumeration type instead
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@295117 13f79535-47bb-0310-9956-ffa450edef68
2005-10-05 21:01:28 +00:00
Daniel Naber
10fb3c64a5
small javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@295101 13f79535-47bb-0310-9956-ffa450edef68
2005-10-05 20:14:56 +00:00
Otis Gospodnetic
0eb4c32432
- Added Unicode range to fix tokenization of Korean - http://issues.apache.org/jira/browse/LUCENE-444
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@294982 13f79535-47bb-0310-9956-ffa450edef68
2005-10-05 03:53:19 +00:00
Daniel Naber
ae706faf12
don't let MultiFieldQueryParser create empty clauses for stopwords
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@294924 13f79535-47bb-0310-9956-ffa450edef68
2005-10-04 21:30:37 +00:00
Otis Gospodnetic
45a706eb30
- Cosmetics (indentation)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@291494 13f79535-47bb-0310-9956-ffa450edef68
2005-09-25 23:55:54 +00:00
Erik Hatcher
2007804589
correct copy-paste typo causing TestBasics to loop infinitely
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@290597 13f79535-47bb-0310-9956-ffa450edef68
2005-09-21 01:10:27 +00:00
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