Yonik Seeley
3118a1cdb9
make FIeldSortedHitQueue public: LUCENE-432
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@374436 13f79535-47bb-0310-9956-ffa450edef68
2006-02-02 16:55:26 +00:00
Daniel Naber
0f19da3c90
fix parsing of dates in range queries that use local date format: include the last day if query is inclusive
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@373355 13f79535-47bb-0310-9956-ffa450edef68
2006-01-29 20:51:43 +00:00
Erik Hatcher
abed4e6990
LUCENE-490: Fix to allow QueryParser.jj to work with JavaCC 4.0 submitted by Steven Rowe
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@372383 13f79535-47bb-0310-9956-ffa450edef68
2006-01-26 00:43:01 +00:00
Daniel Naber
e37a04646a
make setMaxBufferedDocs(1) behave correctly
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@372350 13f79535-47bb-0310-9956-ffa450edef68
2006-01-25 22:49:45 +00:00
Daniel Naber
f2d4c33dc3
document thrown exception in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@371271 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 11:55:21 +00:00
Daniel Naber
5a8e468d3c
document the slightly confusing situation of parsing dates in range queries
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@369559 13f79535-47bb-0310-9956-ffa450edef68
2006-01-16 20:09:48 +00:00
Yonik Seeley
bc4581f6d9
set default phraseSlop on MultiPhraseQuery in getFieldQuery: LUCENE-483
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@367110 13f79535-47bb-0310-9956-ffa450edef68
2006-01-08 22:35:52 +00:00
Yonik Seeley
2d85b34db8
add boost to hashCode: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@365976 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 20:22:49 +00:00
Doug Cutting
3a4d2491fa
Add TopDocCollector and TopFieldDocCollector. These simplify the implementation of hit collectors that collect top-scoring or -sorting documents.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@365447 13f79535-47bb-0310-9956-ffa450edef68
2006-01-02 22:00:07 +00:00
Erik Hatcher
396229f18d
Remove (Span)RegexQuery from core. Add completely refactored version to contrib/regex allowing pluggable regex implementations. contrib/regex is still a work in progress, and documentation is forthcoming
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359526 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 13:57:40 +00:00
Yonik Seeley
10ae54c724
add test for hashCode/equals
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359080 13f79535-47bb-0310-9956-ffa450edef68
2005-12-26 17:22:43 +00:00
Yonik Seeley
3852c6263e
fix equals() typo
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359079 13f79535-47bb-0310-9956-ffa450edef68
2005-12-26 17:20:02 +00:00
Yonik Seeley
b374f5ffa2
implement, correct, improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359078 13f79535-47bb-0310-9956-ffa450edef68
2005-12-26 17:12:16 +00:00
Yonik Seeley
9513c471f6
improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358696 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 04:03:06 +00:00
Yonik Seeley
9b4b499548
improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358695 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 03:51:03 +00:00
Yonik Seeley
27f2d29a10
improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358694 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 03:43:38 +00:00
Yonik Seeley
75c81da538
improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358693 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 03:37:50 +00:00
Yonik Seeley
99c9289a89
improve hashcodes: LUCENE-460
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358689 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 03:14:58 +00:00
Yonik Seeley
9a9da2f770
grab commit lock when getting current version: LUCENE-481
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358685 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 02:38:23 +00:00
Otis Gospodnetic
8125927112
- Initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358165 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 01:01:46 +00:00
Yonik Seeley
c86207379d
fix score to include boost and query normalization: LUCENE-450
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358089 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 20:14:30 +00:00
Yonik Seeley
a08af8e73d
Change DisjunctionMaxScorer to use heap (Chuck Williams)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@356452 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 02:19:46 +00:00
Daniel Naber
f3dcf0683c
document that extractTerms() can throw an exception if it's called on a non-rewritten query
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@355997 13f79535-47bb-0310-9956-ffa450edef68
2005-12-11 19:18:50 +00:00
Doug Cutting
e6400c63f0
Fix LUCENE-479: After MultiReader.undeleteAll(), numDocs was incorrect. Contributed by Robert Kirchgessner.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@355181 13f79535-47bb-0310-9956-ffa450edef68
2005-12-08 19:53:06 +00:00
Erik Hatcher
cf4c00556c
Likewise rename the delete methods for IndexModifier, deprecating the old (though not strictly necessary since IndexModifier was added after 1.4.3)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@354934 13f79535-47bb-0310-9956-ffa450edef68
2005-12-08 02:14:25 +00:00
Erik Hatcher
331748b8c3
LUCENE-289 - added IndexReader.deleteDocument/.deleteDocuments and deprecated .delete(int)/.delete(Term).
...
CHANGES.txt already mentions deprecated methods sufficiently, so nothing further to note for this change.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@354917 13f79535-47bb-0310-9956-ffa450edef68
2005-12-08 00:22:00 +00:00
Yonik Seeley
ad9e9bceb4
remove score normalization from expert level search: LUCENE-469
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@354819 13f79535-47bb-0310-9956-ffa450edef68
2005-12-07 17:48:37 +00:00
Yonik Seeley
3e1787d7db
StopFilter ignore case: LUCENE-248
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@354253 13f79535-47bb-0310-9956-ffa450edef68
2005-12-06 01:36:53 +00:00
Bernhard Messer
6cabdf3726
LUCENE-475 - patch from Volodymyr Bychkoviak to reduce memory usage
...
when loading an index into RAMDirectory.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351779 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 17:37:50 +00:00
Bernhard Messer
abb213261d
add JUnit class to test the different RAMDirectory constructors.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351778 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 17:32:15 +00:00
Bernhard Messer
17100557f1
remove local variable never used to avoid compiler warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351777 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 17:26:23 +00:00
Bernhard Messer
72a781706f
delete DocTest which is not a JUnit test and not in use.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351775 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 17:20:35 +00:00
Bernhard Messer
3c62597540
delete TermInfosTest which is not a JUnit test at all.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351773 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 17:10:35 +00:00
Erik Hatcher
29aafdf3c5
Renamed test files to match the conventional pattern used, allowing these tests to run from 'ant test'
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351548 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 01:21:20 +00:00
Erik Hatcher
18b9843fad
LUCENE-288 - Patch from Andi Vajda applied to work around a GCJ issue ( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15411 )
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351489 13f79535-47bb-0310-9956-ffa450edef68
2005-12-01 21:50:45 +00:00
Bernhard Messer
530484379e
avoid ArrayIndexOutOfBoundsException when startet without index parameter and print usage instead.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@351472 13f79535-47bb-0310-9956-ffa450edef68
2005-12-01 21:15:53 +00:00
Yonik Seeley
3ba5a1d9e5
Change Similarity to use SmallFloat for norm encoding
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@349074 13f79535-47bb-0310-9956-ffa450edef68
2005-11-26 04:17:08 +00:00
Yonik Seeley
208760307f
Change Similarity to use SmallFloat for norm encoding
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@349073 13f79535-47bb-0310-9956-ffa450edef68
2005-11-26 04:14:35 +00:00
Erik Hatcher
729175f73a
Modified RegexTermEnum to have more generic logic, Character.isLetterOrDigit(), to determine the prefix for term enumeration.
...
Also added commented out test demonstrating where prefix logic fails currently. Perhaps, like FuzzyQuery, we should push the
prefix calculation back to the user of the query for now?
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@348692 13f79535-47bb-0310-9956-ffa450edef68
2005-11-24 09:09:48 +00:00
Erik Hatcher
cf1d106504
LUCENE-470 - Added some more regex tests, contributed by Paul Elschot
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@348689 13f79535-47bb-0310-9956-ffa450edef68
2005-11-24 08:52:02 +00:00
Erik Hatcher
13ea2b0c3f
remove mention of non-public DocumentWriter class from Analyzer javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@348207 13f79535-47bb-0310-9956-ffa450edef68
2005-11-22 18:35:05 +00:00
Erik Hatcher
e797a8e965
Fix TestSegmentReader, which broke due to previous changes to DocHelper. getPositionIncrementGap tests no longer use DocHelper, to avoid testing conflicts.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@348137 13f79535-47bb-0310-9956-ffa450edef68
2005-11-22 09:35:58 +00:00
Erik Hatcher
c958e10770
added getPositionIncrementGap(String fieldName) to Analyzer
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@348060 13f79535-47bb-0310-9956-ffa450edef68
2005-11-22 01:46:24 +00:00
Daniel Naber
e4d079faa3
test case for LengthFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@347996 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 21:51:46 +00:00
Daniel Naber
c78c2c8936
avoid using deprecated QueryParser method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@347995 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 21:46:26 +00:00
Daniel Naber
dea69e3360
tiny whitespace and javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@347992 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 21:41:43 +00:00
Daniel Naber
bfde3257dc
moving the non-language specific analyzers to core, this is where most users will probably expect them
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@347991 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 21:35:24 +00:00
Yonik Seeley
f0b3f57b96
fix deprecated referebces: LUCENE-468
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345920 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 16:00:32 +00:00
Yonik Seeley
6798e96355
SmallFloat: generalized and faster versions of floatToByte/byteToFloat
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345681 13f79535-47bb-0310-9956-ffa450edef68
2005-11-19 20:22:36 +00:00
Erik Hatcher
a5cd1e7e1b
add getTerm to SpanRegexQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345677 13f79535-47bb-0310-9956-ffa450edef68
2005-11-19 20:01:18 +00:00
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