Michael McCandless
240897988d
LUCENE-1470: switch TestTrieRangeQuery to LuceneTestCase as well
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@723313 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 13:17:23 +00:00
Michael McCandless
05bff1833f
LUCENE-1470: add proper dependency to contrib/build.xml so contrib tests can subclass LuceneTestCase; fixed small bug TestTrieUtils test case
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@723287 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 11:06:59 +00:00
Michael McCandless
1fb2d4f280
LUCENE-1457: fix possible overflow bugs during binary search
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@723149 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 23:46:19 +00:00
Michael McCandless
481f8080ab
LUCENE-1470: add TrieRangeQuery, a much more efficient implementation of RangeQuery at the expense of added space consumed in the index
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@723031 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 19:38:31 +00:00
Mark Robert Miller
139f71599e
LUCENE-1246: check for null sub queries so that BooleanQuery.toString does not throw NullPointerException.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@722897 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 14:15:22 +00:00
Michael McCandless
cfef10bb9d
LUCENE-1474: clear pendingDelCount after flushing deletes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@722645 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 22:33:35 +00:00
Michael McCandless
eb881d5f3b
LUCENE-1433: improvements to changes.html generation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@722329 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 01:58:00 +00:00
Michael McCandless
e3d5b53e53
LUCENE-1461: more careful checking of lower/upper bound to the FieldCacheRangeFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@722203 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 19:52:54 +00:00
Michael McCandless
278dc0fc04
LUCENE-1296: add protected method CachingWrapperFilter.docIdSetToCache
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@722174 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 18:50:45 +00:00
Michael McCandless
371a33eda8
LUCENE-1464: in FSDir, don't mkdir until first createOutput is called
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@721670 13f79535-47bb-0310-9956-ffa450edef68
2008-11-29 12:16:54 +00:00
Michael McCandless
93f7ed2d58
switch default back-compat tests to use branches/lucene_2_4_back_compat_tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@721667 13f79535-47bb-0310-9956-ffa450edef68
2008-11-29 12:03:26 +00:00
Michael McCandless
f562594180
LUCENE-1461: added FieldCacheRangeFilter, which speeds up creation of RangeFilter by using the FieldCache
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@721663 13f79535-47bb-0310-9956-ffa450edef68
2008-11-29 11:50:28 +00:00
Michael McCandless
755e7aec14
LUCENE-1453: add entry to CHANGES.txt
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@720783 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 10:07:14 +00:00
Mark Robert Miller
ea3824bf34
LUCENE-1465: NearSpansOrdered returns payloads from first possible match
...
rather than the correct, shortest match; Payloads could be returned even
if the max slop was exceeded; The wrong payload could be returned in
certain situations.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@720669 13f79535-47bb-0310-9956-ffa450edef68
2008-11-25 23:38:56 +00:00
Michael Busch
eb88fc88fd
LUCENE-1467: Add nextDoc() and next(int) methods to OpenBitSetIterator.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@720609 13f79535-47bb-0310-9956-ffa450edef68
2008-11-25 21:39:47 +00:00
Michael McCandless
129a630839
LUCENE-1459: fix CachingWrapperFilter to do the right thing if the wrong type of bitset is in its cache
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@719716 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 21:17:06 +00:00
Michael Busch
898cfe87cd
LUCENE-1422: New TokenStream API that uses a new class called AttributeSource instead of the now deprecated Token class. All attributes that the Token class had have been moved into separate classes: TermAttribute, OffsetAttribute, PositionIncrementAttribute, PayloadAttribute, TypeAttribute and FlagsAttribute.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@718798 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 23:41:49 +00:00
Michael McCandless
72e94add53
LUCENE-1453: make sure reopen of IndexReaders that own the directory don't close the directory too soon
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@718540 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 09:57:51 +00:00
Michael McCandless
0beb6bd966
LUCENE-1456: remove buggy but unused dead code in FieldInfo
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@718537 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 09:53:13 +00:00
Michael McCandless
5c9e275c3b
fix typo
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@718222 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 11:46:28 +00:00
Michael McCandless
a18441f0de
LUCENE-1447: improve SegmentTermPositions.getPayload() IOException message
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@714231 13f79535-47bb-0310-9956-ffa450edef68
2008-11-15 10:51:01 +00:00
Yonik Seeley
0979fdc423
LUCENE-1451: Add public constructors to FSDirectory and subclasses
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@714110 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 19:22:22 +00:00
Michael McCandless
e213a4e828
LUCENE-1452: fixes cases during merge and lazy field access where binary field is truncated to 0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713962 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 10:02:44 +00:00
Michael Busch
72ce255671
LUCENE-1446: Allow Overriding svn executable to specify path.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713765 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 18:11:59 +00:00
Michael McCandless
8f0d81c89f
LUCENE-38: make sure empty term, if present in index, is included on open ended lower range query
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713696 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 10:08:10 +00:00
Michael McCandless
854cae6c35
LUCENE-1424: correctly handle null lower or upper term in RangeQuery.getEnum
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713687 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 09:31:20 +00:00
Otis Gospodnetic
076fb9b323
LUCENE-711 - initialize List with correct size
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713634 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 04:23:05 +00:00
Mark Robert Miller
c2f7d554a3
LUCENE-1389: SimpleSpanFragmenter can create very short fragments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713569 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 00:01:43 +00:00
Michael McCandless
4646692022
LUCENE-1450: make sure RangeQuery/Filter check all terms in the index when using a Collator
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713332 13f79535-47bb-0310-9956-ffa450edef68
2008-11-12 09:43:39 +00:00
Michael Busch
9d8c882385
LUCENE-1424: Changed QueryParser#newRangeQuery() to return a ConstantScoreRangeQuery to make backwards-compatibility tests pass again; this does not change any behavior since ConstantScoreRangeQuery subclasses RangeQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713225 13f79535-47bb-0310-9956-ffa450edef68
2008-11-12 00:01:52 +00:00
Michael McCandless
4596360907
LUCENE-1449: if deletion policy deletes head commit point and then IW is closed w/ no further changes, write a new segments_N
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@713206 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 22:42:14 +00:00
Yonik Seeley
8e8e8ddec4
set svn:eol-style to native on java files
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712922 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 02:35:46 +00:00
Michael Busch
b69ab2b50a
LUCENE-1446: Add compatibility tag to common-build.xml and run backwards-compatibility tests in the nightly build.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712920 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 02:31:50 +00:00
Yonik Seeley
b179b038a1
LUCENE-1443: Performance improvement for OpenBitSetDISI.inPlaceAnd()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712908 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 01:54:49 +00:00
Michael McCandless
abe6ea0828
LUCENE-1424: enable MultiTermQuery to do constant scoring; refactor Range, Wildcard, Prefix to expose this
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712890 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 00:40:00 +00:00
Michael Busch
66c16c196d
LUCENE-1440: Add new targets to build.xml that allow downloading and executing the junit testcases from an older release for backwards-compatibility testing.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712416 13f79535-47bb-0310-9956-ffa450edef68
2008-11-08 18:30:37 +00:00
Mark Harwood
de7ab5b898
Added new web application demo for contrib's XmlQueryParser.
...
This change involves:
* Adding Tomcat's Servlet jar into the lib directory and appropriate entry in NOTICE.txt following the lead from Solr's packaging
* Adding new "demo" directory to XmlQueryParser src directory
* Changing XMLQueryParser's build file to create a demo War file
* Changing the main build to include the demo War file (and any other future contrib/*/war files) in the binary distributions
The packaged source distribution has NOT been changed currently to add a lib directory with the servlet.jar so building from a cut-down src distro as opposed to the full subversion /trunk directory will not currently build the war file (the xml query parser build file detects the absence of servlet.jar). Not sure if this is a problem currently.
TODO:
Now that the servlet jar is available in Subversion I would recommend that the other existing WAR file,"luceneweb.war", is changed to move much of the java code which is currently embedded in JSP files into servlet .java files. This would ensure that the build system will check that the code in this application compiles cleanly with the latest Lucene APIs - otherwise any issue will only become apparent when a user tries to run a JSP.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712318 13f79535-47bb-0310-9956-ffa450edef68
2008-11-08 00:20:32 +00:00
Michael McCandless
9136b7a0e0
LUCENE-1442: fix double-counting of offsets of multiple instances of NOT_ANALYZED field under the same field name
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712233 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 19:37:39 +00:00
Michael McCandless
391119f207
LUCENE-1441: fix KeywordTokenizer to set start/end offset on its token
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712232 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 19:36:35 +00:00
Michael McCandless
24d76157a0
LUCENE-1420: let Similarity.computeNorm compute the norm; add option to discount overlap tokens when computing lengthNorm
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@710117 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 18:03:58 +00:00
Michael McCandless
4990152243
LUCENE-1427: speed up QueryWrapperFilter by not computing scores nor an intermediate OpenBitSet
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@709459 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 16:18:13 +00:00
Michael McCandless
0ee1707d9f
LUCENE-1430: don't throw false AlreadyClosedException when IndexReader.open hits IOException on first try opening index
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@709456 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 16:09:12 +00:00
Michael McCandless
d6f39b29b7
update javadocs to clarify how IndexWriter handles hitting an OOME
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@709198 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 16:33:40 +00:00
Michael McCandless
cdeff84532
add missing index version number to CheckIndex
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@708971 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 18:30:50 +00:00
Michael McCandless
58966ab728
LUCENE-1429: don't throw IllegalStateEx during close() after hitting OOME when autoCommit=true
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@708549 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 12:08:19 +00:00
Michael McCandless
fa79b04042
LUCENE-1426: next steps towards flexible indexing: use the same API when writing a new segment
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@707836 13f79535-47bb-0310-9956-ffa450edef68
2008-10-25 10:40:00 +00:00
Michael McCandless
f2c988ae2b
don't include contrib/memory class files in highlighter's jar
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@707834 13f79535-47bb-0310-9956-ffa450edef68
2008-10-25 10:19:30 +00:00
Michael McCandless
29124f644a
minor javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@707833 13f79535-47bb-0310-9956-ffa450edef68
2008-10-25 10:15:14 +00:00
Grant Ingersoll
8dfe073760
LUCENE-1406. Added Arabic stemming and normalization. Also added new method to WordListLoader to allow for comments in word lists.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@706342 13f79535-47bb-0310-9956-ffa450edef68
2008-10-20 17:19:29 +00:00
Michael McCandless
0b90b5e23d
LUCENE-1382: add opaque userData String passed to IndexWriter.commit, recorded into the segments file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@706240 13f79535-47bb-0310-9956-ffa450edef68
2008-10-20 11:33:13 +00:00