Uwe Schindler
21fba4ee7b
Fix equals() and hashCode() of FuzzyQuery (boost etc. missing, so use super methods)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791264 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 16:15:00 +00:00
Uwe Schindler
fc44f0dc3c
LUCENE-1713, LUCENE-1673: For completeness, add some getter methods to TermRangeFilter, to be similar like TermRangeQuery and NumericRangeFilter.
...
This also unifies the hashCode and equals methods in this family of queries. It also fixes a bug in hashCode and equals of NumericRangeQuery, missing the constantScoreRewrite property.
TermRangeTermEnum was changed to have a consistent ctor with TermRangeQuery.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791263 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 16:01:52 +00:00
Mark Robert Miller
9789089343
reader should be closed after use
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791246 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 14:01:14 +00:00
Uwe Schindler
b0873e4476
LUCENE-1713: Rename RangeQuery -> TermRangeQuery (part 2)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791176 13f79535-47bb-0310-9956-ffa450edef68
2009-07-04 20:15:20 +00:00
Uwe Schindler
fed4bba63d
LUCENE-1713: Rename RangeQuery -> TermRangeQuery (part 1)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791175 13f79535-47bb-0310-9956-ffa450edef68
2009-07-04 20:14:12 +00:00
Uwe Schindler
3442865534
Set this file to the same eol-style like the other (no tests fail, but this file is of same type/encoding, see mail on java-dev/java-commit)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790800 13f79535-47bb-0310-9956-ffa450edef68
2009-07-03 06:27:28 +00:00
Uwe Schindler
250e619595
Reverted Mike's prop changes in r787424 (see mail on java-dev/java-commit)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790796 13f79535-47bb-0310-9956-ffa450edef68
2009-07-03 06:04:59 +00:00
Mark Robert Miller
14f2a82e28
fix header formatting for changes-to-html
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790628 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 15:38:07 +00:00
Mark Robert Miller
86c3b356be
missing Apache license header
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790581 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 13:25:08 +00:00
Simon Willnauer
410afb98bf
LUCENE-1719: Add javadoc notes about ICUCollationKeyFilter's advantages over CollationKeyFilter (Steven Row via Simon Willnauer)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790262 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 16:50:47 +00:00
Simon Willnauer
5265dc1bb2
LUCENE-1722: SmartChineseAnalyzer JavaDoc improvements - Replacing Chinese JavaDoc with English version. Robert Muir via Simon Willnauer
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@790102 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 10:32:23 +00:00
Uwe Schindler
5fd0be7226
Revert revision 788295 (reenable support for null as both ends in NumericRangeQuery) and add support for this in FieldCacheRangeFilter, too. See discussion in SOLR-940.
...
The strange handling of null terms (which lead me to the change) in RangeQuery will be fixed together with LUCENE-1713.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@789692 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 12:27:50 +00:00
Uwe Schindler
9995a84698
Sorry, used TABS instead spaces in CHANGES.txt update. Fixed.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@789683 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 11:21:35 +00:00
Uwe Schindler
f3896a58df
LUCENE-1461: Add support for numeric types to FieldCacheRangeFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@789682 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 11:17:14 +00:00
Michael McCandless
8304b88578
LUCENE-1724: replace java 1.5 only code
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@789673 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 10:50:19 +00:00
Michael McCandless
cefa4d0bf0
LUCENE-1705: clear flushed doc count in deleteAll
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@789651 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 10:19:11 +00:00
Michael McCandless
ef59ce971c
LUCENE-1630: additional test case
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788954 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 11:14:42 +00:00
Michael McCandless
8a641eb4f7
LUCENE-1630: fix NPEs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788802 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 18:14:48 +00:00
Michael McCandless
890d53acfb
LUCENE-1625: return more status details in CheckIndex, broken out by component into separate status classes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788800 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 18:10:02 +00:00
Michael McCandless
2735779bf6
LUCENE-1677: remove src/gcj
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788790 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 17:52:04 +00:00
Michael McCandless
64a55ede8b
LUCENE-1705: add deleteAll to IndexWriter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788785 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 17:45:14 +00:00
Michael McCandless
c7f865a4c7
LCUENE-1716: allow control over storage of norms (body norms), info stream and whether docs properties should be indexed as fields
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788777 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 17:26:54 +00:00
Uwe Schindler
d820e34a26
Fix the special corner case, that an exclusive range starting/ending with MAX_VALUE/MIN_VALUE overflows the bounds. Return a empty TermEnum in this case (which causes an EMPTY_DOCIDSET returned from getDocIdSet) (see LUCENE-1461 discussions)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788728 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 15:02:49 +00:00
Michael McCandless
2e7267478d
LUCENE-1630: call the right createWeight method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788509 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 20:57:11 +00:00
Michael McCandless
70040e19ec
LUCENE-1707: refCount doesn't need to be volatile
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788493 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 19:54:49 +00:00
Michael McCandless
ec88b1578d
LUCENE-1630: make Query.createQueryWeight optional, with default impl to wrap existing createWeight
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788347 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 13:13:05 +00:00
Michael McCandless
9e49053ec1
LUCENE-1715: null out a few things on closing SegmentReader; remove finalizers from Lucene's core
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788319 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 10:55:36 +00:00
Uwe Schindler
1e61831f8a
Enforce at least one bound != null for NumericRangeQuery to be consistent with other range query types
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788295 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 08:51:12 +00:00
Uwe Schindler
5f61172464
Javadoc update:
...
The example impl in Collector missed the new method acceptsDocsOutOfOrder, added and reformatted
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788203 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 22:57:46 +00:00
Uwe Schindler
8173b9f253
It is better to fail early here. If you incorrectly override e.g. getDocIDSet instead of getDocIdSet(), you will never find the error, only get NPEs at unrelated positions. Throwing the UOE shows exactly where to look for the error.
...
For a similar case see the new DocIdSetIterator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788193 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 22:04:31 +00:00
Grant Ingersoll
db261436cf
LUCENE-1706: Lucene powered search for the site
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788070 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 16:20:00 +00:00
Uwe Schindler
42dcc00374
Build an index.html on the top-level Javadocs folder (e.g. hudson will use it as entry point)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788039 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 14:34:09 +00:00
Michael McCandless
d9f11b9be4
LUCENE-1466: add unit test for CharFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787946 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 08:54:52 +00:00
Michael McCandless
7792aebe92
LUCENE-1466: add test case for MappingCharFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787875 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 00:11:50 +00:00
Michael McCandless
629c7ed4c7
LUCENE-1703: add IndexWriter.waitForMerges
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787834 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 21:08:16 +00:00
Michael McCandless
2d93f7e288
LUCENE-1708: optimize deletes X matching reader when merging stored fields & vectors
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787827 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 20:32:36 +00:00
Michael McCandless
434da77559
LUCENE-1646: when throwing ParseException from QueryParser, include root cause
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787805 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 19:55:28 +00:00
Michael McCandless
87de0c9688
LUCENE-1466: added chainable CharFilter stage before Tokenizer to allow mapping of characters before tokenization
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787795 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 19:15:31 +00:00
Uwe Schindler
75a11ef754
LUCENE-1701: Add some missing javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787786 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 18:46:55 +00:00
Michael McCandless
f03d77b558
LUCENE-1630: switch from Weight (interface) to QueryWeight (abstract class); mate in/out-of docID order scoring between Collector & Scorer
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787772 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 18:11:42 +00:00
Uwe Schindler
87483858d7
Fix LockFactory test to respect temp directory
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787757 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 17:41:41 +00:00
Michael McCandless
5f72065d0f
LUCENE-1714: fix WriteLineDocTask to also replace \r, \n (in addition to \t) with space so those chars don't create mal-formed lines
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787750 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 16:46:17 +00:00
Michael McCandless
24d827fd70
LUCENE-1715: remove finalize from IndexWriter, DirectoryReader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787744 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 16:31:53 +00:00
Uwe Schindler
edfce675a5
LUCENE-1701, LUCENE-1687: Add NumericField , make plain text numeric parsers public in FieldCache, move trie parsers to FieldCache, merge ExtendedFieldCache and FieldCache
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787723 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 15:42:12 +00:00
Michael McCandless
73b462a823
add javadocs NOTE stating that the core collectors pre-allocate the full array[numHits] up front
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787628 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 10:48:55 +00:00
Yonik Seeley
8171a06632
LUCENE-1699: make Field.tokenStream usable with other stored field mechanisms
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787437 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:06:46 +00:00
Michael McCandless
ec8088654d
bulk fix svn:eol-style to native for text files
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787424 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 22:18:56 +00:00
Michael McCandless
d556b9b485
set eol-style to native for Collector.java
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@787411 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 21:34:12 +00:00
Uwe Schindler
579a0704cd
use floatToRawIntBits and doubleToRawLongBits for encoding float values as normalization is not needed and much faster
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@786770 13f79535-47bb-0310-9956-ffa450edef68
2009-06-20 08:50:33 +00:00
Erik Hatcher
65131ca7b9
LUCENE-1405: Added support for Ant resource collections in contrib/ant <index> task.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@786610 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 18:24:19 +00:00