Doug Cutting
31ec31b325
Fixed a bug in floatToByte().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149938 13f79535-47bb-0310-9956-ffa450edef68
2003-01-24 18:33:27 +00:00
Otis Gospodnetic
51585c68da
- Cosmetics.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149936 13f79535-47bb-0310-9956-ffa450edef68
2003-01-23 02:03:55 +00:00
Otis Gospodnetic
c694d44442
- NPE fix.
...
PR: bug #16043
Submitted by: Peter Mularien
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149935 13f79535-47bb-0310-9956-ffa450edef68
2003-01-23 01:28:48 +00:00
Doug Cutting
d1fec6e830
Optimized last fix so that the BooleanQuery is only cloned when one of its clauses has rewritten.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149934 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 19:01:31 +00:00
Doug Cutting
637b10da6c
Fixed a bug when rewritten queries were included in a BooleanQuery.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149933 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 18:40:19 +00:00
Doug Cutting
4642f95eb9
Revised explanation format so that it better corresponds to a dot product of tf*idf weights.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149931 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 19:25:04 +00:00
Otis Gospodnetic
77eb6fb06b
- Fix to support pre-1.4 JDKs.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149930 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 15:41:52 +00:00
Doug Cutting
a793838548
Fixed a bug where boosting was lost.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149928 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 21:57:30 +00:00
Doug Cutting
a2042c190b
Fixed a bug with explain().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149927 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 19:20:30 +00:00
Otis Gospodnetic
5b910b44b3
Added convenience RAMDirectory constructors taking File and String
...
arguments, for easy FSDirectory to RAMDirectory conversion.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149925 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 03:41:05 +00:00
Otis Gospodnetic
a7486068de
- Removed erroneous semicolon.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149924 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 00:22:09 +00:00
Doug Cutting
bdc8da1823
Fixed minor problems with previous checkin.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149923 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 00:04:37 +00:00
Doug Cutting
169fac073f
Revised internal search APIs. Changes include:
...
a. Queries are no longer modified during a search. This makes
it possible, e.g., to reuse the same query instance with
multiple indexes from multiple threads.
b. Term-expanding queries (e.g. PrefixQuery, WildcardQuery,
etc.) now work correctly with MultiSearcher, fixing bugs 12619
and 12667.
c. Boosting BooleanQuery's now works, and is supported by the
query parser (problem reported by Lee Mallabone). Thus a query
like "(+foo +bar)^2 +baz" is now supported and equivalent to
"(+foo^2 +bar^2) +baz".
d. New method: Query.rewrite(IndexReader). This permits a
query to re-write itself as an alternate, more primitive query.
Most of the term-expanding query classes (PrefixQuery,
WildcardQuery, etc.) are now implemented using this method.
e. New method: Searchable.explain(Query q, int doc). This
returns an Explanation instance that describes how a particular
document is scored against a query. An explanation can be
displayed as either plain text, with the toString() method, or
as HTML, with the toHtml() method. Note that computing an
explanation is as expensive as executing the query over the
entire index. This is intended to be used in developing
Similarity implementations, and, for good performance, should
not be displayed with every hit.
f. Scorer and Weight are public, not package protected. It now
possible for someone to write a Scorer implementation that is
not in the org.apache.lucene.search package. This is still
fairly advanced programming, and I don't expect anyone to do
this anytime soon, but at least now it is possible.
Caution: These are extensive changes and they have not yet been
tested extensively. Bug reports are appreciated.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149922 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 23:50:34 +00:00
Otis Gospodnetic
233c5c329a
- Removed unused variables.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149921 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 01:51:18 +00:00
Otis Gospodnetic
c8a221d1e1
- Updated Javadocs.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149919 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 16:09:03 +00:00
Otis Gospodnetic
d9a164b6b2
- Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149918 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 04:49:20 +00:00
Otis Gospodnetic
956ef388fc
- Unit tests for org.apache.lucene.document.Document class.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149917 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 02:30:52 +00:00
Otis Gospodnetic
13bcec39d6
- Added getFields and getValues methods.
...
Contributed by Rasik Pandey on 2002-10-09.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149916 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 02:29:21 +00:00
Otis Gospodnetic
ca1240bec6
- Fix for bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12723
...
PR: 12723
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149915 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 18:06:19 +00:00
Otis Gospodnetic
117172e11d
- Applied patches from http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14900
...
All unit tests still pass.
PR: 14900
Obtained from:
Submitted by: Peter Mularien
Reviewed by: Otis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149910 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 17:13:40 +00:00
Otis Gospodnetic
2d2a191b87
- Reverted to revision 1.2 ... this matches the comments in the code anyway :).
...
Should fix bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14485
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149909 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 16:41:36 +00:00
Otis Gospodnetic
0b346b0639
- Import stmt, @version + CVS Id tag.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149908 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 16:38:39 +00:00
Otis Gospodnetic
bf5028d9ac
- Added author's email address upon his request.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149902 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 05:10:11 +00:00
Doug Cutting
3457e879bd
Minor cleanups: added constructors for TokenStream & TokenFilter, made some methods non-final.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149901 13f79535-47bb-0310-9956-ffa450edef68
2002-12-09 19:02:21 +00:00
Doug Cutting
0d9b89865c
Fixed to not create files in home directory.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149896 13f79535-47bb-0310-9956-ffa450edef68
2002-11-26 17:31:43 +00:00
Doug Cutting
57cdbe4187
Added subDoc() method, renamed searcherIndex() to subSearcher().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149895 13f79535-47bb-0310-9956-ffa450edef68
2002-11-25 20:50:15 +00:00
Otis Gospodnetic
686bdde10b
- Removed some jikes' warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149894 13f79535-47bb-0310-9956-ffa450edef68
2002-11-19 23:25:46 +00:00
Peter Carlson
0066cc0f7f
Fixed bug where Hits.id() returned a Float instead of an int
...
Bug found by Terry Steichen
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149892 13f79535-47bb-0310-9956-ffa450edef68
2002-11-15 16:07:12 +00:00
Otis Gospodnetic
c769f13a2c
- Corrected the exception message.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149891 13f79535-47bb-0310-9956-ffa450edef68
2002-11-10 23:35:55 +00:00
Doug Cutting
6772e7567d
Added a public, extensible scoring API.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149885 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 17:31:27 +00:00
Otis Gospodnetic
98330b5030
- Removed compiler warnings (jikes 1.17). Style stuff only.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149884 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:55:40 +00:00
Otis Gospodnetic
d0a577e1bd
- This is not a unit test class, so it should not be here.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149883 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:54:56 +00:00
Otis Gospodnetic
748fdb1b96
- BitVector unit tests.
...
Submitted by: Peter Mularien <pmularien@deploy.com>
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149882 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:17:16 +00:00
Otis Gospodnetic
7cfc8520ac
- Fixed javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149881 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:55:02 +00:00
Otis Gospodnetic
9f8e2c5e26
- Changed javadoc to reflect the purpose of the unit test better.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149868 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:02:43 +00:00
Otis Gospodnetic
d63506547f
- Removed, since nobody was using this manifest file.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149867 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 16:09:33 +00:00
Doug Cutting
933bac2435
Patched to fix a bug when empty indexes or segments exist.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149859 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 17:25:13 +00:00
Otis Gospodnetic
474d9de985
- Reverted back to the previous revision (1.1).
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149858 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 02:21:31 +00:00
Otis Gospodnetic
6618518998
- Fixed last night's mistakes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149856 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 12:35:43 +00:00
Otis Gospodnetic
618882b4d4
- Minor stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149854 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 06:10:23 +00:00
Otis Gospodnetic
0b2bd2cd3d
- Compilation error fix.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149853 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:51:04 +00:00
Otis Gospodnetic
4840a8422b
- Added javadoc skeleton, nuked trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149852 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:31:05 +00:00
Otis Gospodnetic
65b2aab4f0
- MultiSearcher unit tests. Initial checkin.
...
The test is failing, exposing a potential bug.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149851 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:14:44 +00:00
Otis Gospodnetic
7e8ab54e09
- Fixed the @author tag.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149849 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 04:17:14 +00:00
Otis Gospodnetic
846da57000
- Added FIXME/TODO tags about things to document.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149848 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 02:11:42 +00:00
Otis Gospodnetic
ca982c77db
- Removed the main method, which was causing compilation errors with JUnit 3.8.1.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149846 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 20:05:52 +00:00
Otis Gospodnetic
fce9b6fe3a
- Russian Analyzer unit tests and unit test data.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149841 13f79535-47bb-0310-9956-ffa450edef68
2002-09-16 03:19:19 +00:00
Otis Gospodnetic
e63750554f
- Russian Analyzer, by Boris Okner. Initial checkin.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149840 13f79535-47bb-0310-9956-ffa450edef68
2002-09-16 02:51:58 +00:00
Doug Cutting
f65bc68dfc
Fixed bug 12273
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149836 13f79535-47bb-0310-9956-ffa450edef68
2002-09-03 21:13:32 +00:00
Otis Gospodnetic
63f7272924
- Fixed some funky indentation that I found while testing the contributed
...
Portuguese stemmer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149835 13f79535-47bb-0310-9956-ffa450edef68
2002-08-18 17:33:16 +00:00
Doug Cutting
bbbc192097
Fixed a bug serializing BooleanQuery and added test code.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149834 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 23:44:00 +00:00
Doug Cutting
689293d13b
Fixed a bug in IndexReader.lastModified().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149833 13f79535-47bb-0310-9956-ffa450edef68
2002-08-08 17:56:19 +00:00
Doug Cutting
5dbea95485
Added getAnalyzer() accessor method.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149832 13f79535-47bb-0310-9956-ffa450edef68
2002-08-07 16:28:08 +00:00
Doug Cutting
06d359828b
Added QueryFilter class.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149831 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 18:05:56 +00:00
Doug Cutting
91512d5dde
Improved documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149830 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 17:39:03 +00:00
Doug Cutting
efb2e12705
Added support for Token.setPositionIncrement(int).
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149829 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 17:15:00 +00:00
Doug Cutting
5fbe9f8179
Improved javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149828 13f79535-47bb-0310-9956-ffa450edef68
2002-07-31 17:47:14 +00:00
Doug Cutting
6e202b2be1
msg.txt
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149827 13f79535-47bb-0310-9956-ffa450edef68
2002-07-29 19:11:15 +00:00
gschwarz
419359a057
Changed the stemming algorithm to ignore case while stripping. The algorithm is faster and produces more equal stems from nouns and verbs derived from the same word. That fixes the problem finding substantives when the searchterm is provided in lowercase. Now the stemming results are almost case insensitive. Changed the checking of legal terms to only reject terms that contain non letters, which solves problems with terms that contain irregular cased letters. Removal of pertical denotion now produces less overstemming errors. Code is rearranged a bit.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149824 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 23:16:09 +00:00
gschwarz
aedf9e1ccf
The class itself and tokenStream() are not longer final. tokenStream() now works without LowerCaseFilter.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149823 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 23:00:37 +00:00
Otis Gospodnetic
6b58d41083
- Minor modification, no functionality changes.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149822 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:41:39 +00:00
Otis Gospodnetic
15bbd8def8
- Classes that provide support for queries such as "microsoft app*".
...
PR:
Obtained from:
Submitted by: Anders Nielsen
Reviewed by: otis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149820 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:39:58 +00:00
Otis Gospodnetic
d06a16f630
- Fixed the typo in the setOperator argument name which was causing unit
...
tests to fail. Peter spotted it, thanks Peter.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149819 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:18:42 +00:00
Otis Gospodnetic
0221ec480b
- Added tests for QueryParser's setOperator functionality.
...
All tests pass at this point.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149818 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:17:41 +00:00
Doug Cutting
22f068248d
Renamed a new class and updated some javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149815 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 22:11:34 +00:00
Doug Cutting
28eb95821f
Added support for remote searching via RMI.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149814 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 21:54:38 +00:00
Doug Cutting
53f0f3b4fb
Made many methods and classes non-final, per requests. This includes
...
IndexWriter and IndexSearcher, among others.
Moved search implementation methods into a new public interface,
Searchable. This makes it easier to implement a remote searcher.
Fixed some javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149813 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 17:38:04 +00:00
Otis Gospodnetic
08c38ffbc4
- Cleaned up the indentation to make it more consistent.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149807 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:51:53 +00:00
Otis Gospodnetic
6f3df5f59f
- Added an explicit call to QueryParser to set the boolean operator to OR.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149806 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:22:36 +00:00
Otis Gospodnetic
4f9dc49cfb
- Renamed a few recently added variables and methods for consistency.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149805 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:21:57 +00:00
Otis Gospodnetic
ea4c15138e
- Added P�ter Hal�csy's changes that allow setting of default boolean
...
operator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149804 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:16:21 +00:00
Otis Gospodnetic
50d6da8ab9
- Fixed a link in toString(String) method's javadoc; added links to class
...
javadoc; reformatted a bit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149795 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 15:16:55 +00:00
Otis Gospodnetic
6f4c2690c9
- Improved HTML parser that allows one to get HTML document's meta tags' values.
...
PR:
Obtained from:
Submitted by: Mark Harwood
Reviewed by: otis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149792 13f79535-47bb-0310-9956-ffa450edef68
2002-06-29 22:08:26 +00:00
Otis Gospodnetic
92ade30794
- Changed the 'disableLocks' system property name to 'disableLuceneLocks'.
...
- Fixed my own misspelling from the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149788 13f79535-47bb-0310-9956-ffa450edef68
2002-06-26 17:30:11 +00:00
Otis Gospodnetic
ad73dd681f
- Made a small method javadoc change.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149787 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 16:18:32 +00:00
Otis Gospodnetic
43f5e32b7e
- Reduced the number of condition checks for disabling locks.
...
- Documented the use of 'disableLocks' system property in class Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149786 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 16:09:15 +00:00
Brian Goetz
8ab0396cfc
Support for new range query syntax. The delimiter is " TO ", but is optional
...
for backward compatibility with previous syntax. If the range arguments
match the format supported by DateFormat.getDateInstance(DateFormat.SHORT),
then they will be converted into the appropriate date strings a la DateField.
Added Field.Keyword "constructor" for Date-valued arguments.
Optimized DateField.timeToString function.
PR:
Obtained from:
Submitted by: Brian Goetz
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149785 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 00:05:31 +00:00
Otis Gospodnetic
4cee88c438
- Added the ability to disable creation of locks on the file system, in order
...
to allow Lucene to be used on read-only media.
To disable lock creation set 'disableLocks' system property to 'true'.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149782 13f79535-47bb-0310-9956-ffa450edef68
2002-06-21 14:57:46 +00:00
Peter Carlson
19a3915b3c
Added accessor method to get HitDoc global id from Hits.
...
This id needs to be used in sorting.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149781 13f79535-47bb-0310-9956-ffa450edef68
2002-06-20 14:32:08 +00:00
Otis Gospodnetic
4f2e3c4f3f
- Added Javadoc for the class and two methods explaining issue with dates
...
prior to 1.1.1970.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149774 13f79535-47bb-0310-9956-ffa450edef68
2002-06-09 20:47:22 +00:00
Otis Gospodnetic
bd8c341d87
- Fixed class Javadoc (spelling, missing words), reformatted a bit.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149770 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 17:12:59 +00:00
Otis Gospodnetic
8bcc042f5a
- Changed the grammar for EMAIL token in order to match user names and
...
host names with additional valid user name and host name characters, such
as '.", '-', and '_'.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149769 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 04:54:47 +00:00
Otis Gospodnetic
a6d7df46a4
- Added testClear() test. It doesn't really test much, but since I already
...
typed it in I'm leaving it.
- Reformatted/reindented the code and nuked trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149768 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 01:50:54 +00:00
Otis Gospodnetic
a7bd647dd6
- Fixed clear() method that wasn't setting the very last heap element to null,
...
as reported at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9454 .
PR: 9454
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149767 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 01:46:39 +00:00
Peter Carlson
3f512e96e5
Changed QueryParser.jj to have "?" be a special character which allowed it to be used as a wildcard term. Updated TestWildcard unit test also. (Ralf Hettesheimer via carlson)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149758 13f79535-47bb-0310-9956-ffa450edef68
2002-05-20 15:45:43 +00:00
Otis Gospodnetic
5f795440d4
- Cosmetics.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149754 13f79535-47bb-0310-9956-ffa450edef68
2002-05-15 15:51:04 +00:00
Peter Carlson
b70d10da84
Fixed the TestQuestionMark by changing the TermQuery to WildcarQuery for the first test. Now succeeds without failure.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149745 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 14:38:22 +00:00
Otis Gospodnetic
04292ff887
- Fixed a bug in the test itself, caught by Doug.
...
Duh, correct comment, but contradicting code.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149744 13f79535-47bb-0310-9956-ffa450edef68
2002-05-08 20:16:54 +00:00
Peter Carlson
7ac655d83a
Changed TestDateFilter from date field being a Text field to being a Keyword field. Found by Doug.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149743 13f79535-47bb-0310-9956-ffa450edef68
2002-05-08 19:48:04 +00:00
Otis Gospodnetic
7cb408e964
- Applied a patch supplied by David Smiley that ensures that searches that
...
use DateFilter don't throw an exception when no matches are found.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149741 13f79535-47bb-0310-9956-ffa450edef68
2002-05-07 21:26:34 +00:00
Brian Goetz
2a96b329a8
Add escape character to query parser (backslash); add unit test for escape character; wrap TokenMgrError with ParseException in QueryParser.parse
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149736 13f79535-47bb-0310-9956-ffa450edef68
2002-05-06 21:59:44 +00:00
Otis Gospodnetic
a90504d2b6
- A patch to FieldInfos.java that Doug Cutting suggested at:
...
http://marc.theaimsgroup.com/?l=lucene-user&m=100253044509125&w=2
This allows co-existence of indexed and non-indexed fields with the same name.
PR:
Obtained from:
Submitted by: Guido Casper
Reviewed by: otis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149730 13f79535-47bb-0310-9956-ffa450edef68
2002-04-30 15:08:10 +00:00
Otis Gospodnetic
8c70a95b15
- Added tests for DateFilter.After method.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149728 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 20:29:19 +00:00
Otis Gospodnetic
4207787649
- DateFilter JUnit tests. Initial checkin.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149727 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 20:15:25 +00:00
Otis Gospodnetic
1af480b290
- Added Apache license.
...
- Corrected Javadoc wording a bit.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149726 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 19:09:36 +00:00
Otis Gospodnetic
197858c0d4
- Applied a patch that fixes bug #7412 .
...
- Added Apache License.
PR:
Obtained from:
Submitted by: Rodrigo Reyes
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149725 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 19:08:32 +00:00
Otis Gospodnetic
a0c986fdf1
- Wildcard JUnit unit tests. Initial checkin.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149724 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 18:53:35 +00:00
Otis Gospodnetic
e5f6cb9bd3
- Fixed incorrect HREFs.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149723 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 04:52:03 +00:00
Otis Gospodnetic
2122be3e73
- Fixed a spelling error and re-formatted the Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149722 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 20:04:28 +00:00
Otis Gospodnetic
c4a52eee84
- A fix for bug # 7710:
...
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7710
PR:
Obtained from:
Submitted by: Lee Mallabone
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149721 13f79535-47bb-0310-9956-ffa450edef68
2002-04-10 04:05:38 +00:00
Otis Gospodnetic
95cf4fa216
- Javadoc fix.
...
PR:
Obtained from:
Submitted by: Kelvin Tan
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149720 13f79535-47bb-0310-9956-ffa450edef68
2002-04-10 02:57:08 +00:00
Otis Gospodnetic
b5e126c654
- Applied Mark Hayes' patch to avoid NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149719 13f79535-47bb-0310-9956-ffa450edef68
2002-04-02 05:15:43 +00:00
Otis Gospodnetic
b5e628af32
- Javadoc fix for bug 7461.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149717 13f79535-47bb-0310-9956-ffa450edef68
2002-03-25 21:41:58 +00:00
Otis Gospodnetic
23389df13c
- Changed 2 example queries in the javadoc to make them less confusing.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149716 13f79535-47bb-0310-9956-ffa450edef68
2002-03-22 03:22:33 +00:00
Otis Gospodnetic
55a0477891
- Minor javadoc changes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149715 13f79535-47bb-0310-9956-ffa450edef68
2002-03-20 05:26:38 +00:00
Otis Gospodnetic
02bc68cb60
- Applied a fix for bug 6914.
...
PR:
Obtained from:
Submitted by: Eugene Gluzberg
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149713 13f79535-47bb-0310-9956-ffa450edef68
2002-03-15 05:52:57 +00:00
Otis Gospodnetic
84bd5a1565
- Added exceptions to the Javadoc for parse methods.
...
- Added TokenMgrError to parse methods' throws clauses, since that is thrown when the input is bad.
PR:
Obtained from:
Submitted by: Daniel Calvo
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149699 13f79535-47bb-0310-9956-ffa450edef68
2002-02-22 21:06:16 +00:00
Otis Gospodnetic
e440646257
- A query parser that searches multiple fields at once.
...
Initial checkin.
PR:
Obtained from:
Submitted by: Kelvin Tan
Reviewed by: Otis Gospodnetic
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149698 13f79535-47bb-0310-9956-ffa450edef68
2002-02-22 20:59:11 +00:00
Otis Gospodnetic
cfd243c6d3
- Removed stop words added to the previous revision, so that they don't break
...
people's existing indices.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149697 13f79535-47bb-0310-9956-ffa450edef68
2002-02-22 01:15:51 +00:00
Otis Gospodnetic
5c75b8623f
- 'De-finalized' the class per Doug's suggestion to make it easy to use
...
different lists of stop words.
- Added a few more words to the stop word list (MS' contribution via Alan).
- Re-indented the whole class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149696 13f79535-47bb-0310-9956-ffa450edef68
2002-02-21 22:01:07 +00:00
Otis Gospodnetic
ef902b7ecd
- Changed the link to QueryParser from a HREF to a {@link ...}.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149695 13f79535-47bb-0310-9956-ffa450edef68
2002-02-21 21:43:34 +00:00
Otis Gospodnetic
dabd5e449f
- Made the code in the javadoc readable.
...
- Removed unnecessary import statement.
- Re-indented the whole class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149694 13f79535-47bb-0310-9956-ffa450edef68
2002-02-21 21:41:53 +00:00
Otis Gospodnetic
6f968662e9
- Improved javadoc to make it more readable and removed some trailing white
...
spaces.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149693 13f79535-47bb-0310-9956-ffa450edef68
2002-02-21 20:31:10 +00:00
Otis Gospodnetic
b433d6c174
- Improved javadoc to make it more readable.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149692 13f79535-47bb-0310-9956-ffa450edef68
2002-02-21 20:22:45 +00:00
Brian Goetz
7e7d8c6ac0
Add ~N syntax to phrase queries in query parser to allow for user-settable slop
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149691 13f79535-47bb-0310-9956-ffa450edef68
2002-02-19 00:44:00 +00:00
Otis Gospodnetic
1ec9086829
- Added public static boolean isLocked(String) method.
...
PR:
Obtained from:
Submitted by: Colin Britton
Reviewed by: otis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149690 13f79535-47bb-0310-9956-ffa450edef68
2002-02-15 18:59:42 +00:00
Scott Ganyo
64adb57449
field must be interned during serialization read process
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149689 13f79535-47bb-0310-9956-ffa450edef68
2002-02-15 13:13:19 +00:00
Otis Gospodnetic
33a4c8c325
- Changed the URL for example query parser test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149688 13f79535-47bb-0310-9956-ffa450edef68
2002-02-15 02:55:46 +00:00
Doug Cutting
2a801b7e7d
Fixed some javadoc links.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149684 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 20:48:18 +00:00
Doug Cutting
e00dabf7b1
Fixed some javadoc links.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149683 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 20:46:13 +00:00
Otis Gospodnetic
80f9f1db38
- Replaced references to the old package name com.lucene with org.apache.lucene
...
- Fixed a few Javadocs problems.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149681 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 01:46:31 +00:00
Otis Gospodnetic
3e7f46010e
- Fixed a bug with substCount variable which was not being reset.
...
- Re-formatted the whole class to match the rest of the code more closely
(still differs, but... :)).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149680 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 01:19:07 +00:00
Otis Gospodnetic
9bd57fb82a
- Patched Javadocs.
...
PR:
Obtained from:
Submitted by: Erik Hatcher
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149679 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 00:58:46 +00:00
Doug Cutting
55ce2ae185
Fix a locking bug when deleting from an unoptimized index.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149675 13f79535-47bb-0310-9956-ffa450edef68
2002-02-10 22:59:12 +00:00
Doug Cutting
6796f04a73
Fixed NullPointerException while performing phrase searches.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149671 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 22:52:03 +00:00
Doug Cutting
64943029fa
obtain write.lock while deleting documents
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149670 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 19:39:42 +00:00
Scott Ganyo
d2e34a5fb9
implement Serializable
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149666 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 18:00:18 +00:00
Doug Cutting
60817cb719
Fixed to never delete added indexes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149665 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 16:30:16 +00:00
Otis Gospodnetic
d5f1f175fc
- Fixed tests to use non-deprecated JUnit assert methods.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149662 13f79535-47bb-0310-9956-ffa450edef68
2002-01-28 20:25:21 +00:00
Otis Gospodnetic
0d109d7705
- Fixed references to variables in javadoc. Patch submitted by Daniel Rall.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149659 13f79535-47bb-0310-9956-ffa450edef68
2002-01-28 11:39:02 +00:00
Otis Gospodnetic
7f8618e5de
- Minor grammar fix in a javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149658 13f79535-47bb-0310-9956-ffa450edef68
2002-01-28 11:35:56 +00:00
Otis Gospodnetic
cf025d06cb
- Small javadoc change.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149657 13f79535-47bb-0310-9956-ffa450edef68
2002-01-28 11:34:45 +00:00
Doug Cutting
6c84ee2c62
Updated for new demo package name.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149655 13f79535-47bb-0310-9956-ffa450edef68
2002-01-27 23:20:30 +00:00
Andrew C. Oliver
e120b8bd51
PR:
...
Obtained from:
Reviewed by: Doug Cutting / Lucene Community
new demo build target
added getting started guide
modified tests
moved demo to demo subpackage
added war demo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149646 13f79535-47bb-0310-9956-ffa450edef68
2002-01-26 15:01:32 +00:00
Doug Cutting
d0473acefc
Renamed NullTokenizer and Analyzer to WhitespaceTokenizer and Analyzer.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149645 13f79535-47bb-0310-9956-ffa450edef68
2002-01-24 19:03:52 +00:00
Doug Cutting
2ae22a31e3
Renamed NullTokenizer and Analyzer to WhitespaceTokenizer and Analyzer.
...
Also re-structured the implementation of several tokenizers so that they
share code, basing them on the new class CharAnalyzer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149644 13f79535-47bb-0310-9956-ffa450edef68
2002-01-24 19:02:52 +00:00
Doug Cutting
65ead57f1c
Substantially improved the performance of DateFilter by adding the
...
ability to reuse TermDocs objects.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149642 13f79535-47bb-0310-9956-ffa450edef68
2002-01-21 17:12:12 +00:00
Brian Goetz
1fa4fa82d1
Fix query parser (finally) to be much more lenient about queries that have funny characters; added new test cases to test new rules; added NullTokenizer/NullAnalyzer which just pass through space-separated tokens unmodified (mostly for testing purposes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149641 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 02:49:22 +00:00
Brian Goetz
ae45d392f8
Migrate setBoost/getBoost into base QUery class; don't wrap queries with BooleanQuery in query parser unless necessary; more test cases for query parser
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149640 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 02:00:09 +00:00
Brian Goetz
9f805c7d1d
Enable boosting on range queries, phrpase queries (I think this used to work, but got broken when range queries were added); add tests cases for range queries
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149639 13f79535-47bb-0310-9956-ffa450edef68
2002-01-14 03:02:39 +00:00
Otis Gospodnetic
021e328676
- Applied a patch submitted by Paul Spencer.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149638 13f79535-47bb-0310-9956-ffa450edef68
2002-01-01 00:26:14 +00:00
Otis Gospodnetic
77139e26a1
- Modified unlock method to have it delete 'commit.lock' with as well.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149635 13f79535-47bb-0310-9956-ffa450edef68
2001-12-26 17:23:05 +00:00
Otis Gospodnetic
0c7b18a929
- Applied a patch that silences Jikes' pedantic mode warnings, submitted
...
by Maik Schreiber.
PR:
Obtained from:
Submitted by: Maik Schreiber
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149633 13f79535-47bb-0310-9956-ffa450edef68
2001-12-25 19:27:04 +00:00
Otis Gospodnetic
d17defd73b
- Added methods:
...
public static boolean indexExists(String directory);
public static boolean indexExists(File directory);
public static boolean indexExists(Directory directory);
public static boolean isLocked(Directory directory);
public static void unlock(Directory directory);
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149632 13f79535-47bb-0310-9956-ffa450edef68
2001-12-25 19:14:40 +00:00
gschwarz
89a554ffab
Fixed Bug 4555. Possible NullPointerException when a short term with
...
substitutions was being checked for a particle denotion. Length checking
corrected, and sequence of resubstitution and removing particle denotion
changed to prevent denoted term to pass through remove because of the
reduced length.
Corrected and improved documentation.
Fix in WordlistLoader, files are not read correct, loosing a line.
Fix in GermanStemFilter, typo in constructor with custom exclusion table as
parameter, parameter was ignored.
GermanStemFilter has two new Methods for setting stemmer and exclusion
list after creating the filter object.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149630 13f79535-47bb-0310-9956-ffa450edef68
2001-12-10 21:18:24 +00:00
Otis Gospodnetic
c05b8e334b
- Very minor documentation grammar fix.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149629 13f79535-47bb-0310-9956-ffa450edef68
2001-11-20 05:22:31 +00:00
Brian Goetz
732dd14cb0
Allow . characters in queries
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149627 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 19:00:22 +00:00
Doug Cutting
cd948a10d9
Fixed some typos.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149621 13f79535-47bb-0310-9956-ffa450edef68
2001-11-04 17:11:42 +00:00
Brian Goetz
e1561b70fa
Add test case for Analyzers
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149620 13f79535-47bb-0310-9956-ffa450edef68
2001-11-03 02:33:46 +00:00
Brian Goetz
f6f1683dd5
Turn PriorityQueueTest into a JUnit test
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149619 13f79535-47bb-0310-9956-ffa450edef68
2001-11-03 02:12:27 +00:00
Doug Cutting
4a8ecc08c0
Changed so that PrefixQuery is used in preference to WildcardQuery
...
when there's only an asterisk at the end of the term. Previously
PrefixQuery would never be used.
Also removed some unused token rules.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149618 13f79535-47bb-0310-9956-ffa450edef68
2001-11-01 18:21:02 +00:00
Brian Goetz
49bd4164b8
Fix tests so they compile; fix ant file so it compiles tests properly
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149617 13f79535-47bb-0310-9956-ffa450edef68
2001-11-01 01:13:00 +00:00
Brian Goetz
584d2b394b
Fix query parser so it accepts queries with unicode characters
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149616 13f79535-47bb-0310-9956-ffa450edef68
2001-11-01 01:12:37 +00:00
Doug Cutting
992d1ade00
Fixed a bug where RAMInputStream could not read across more than
...
across a single buffer boundary.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149615 13f79535-47bb-0310-9956-ffa450edef68
2001-10-31 00:12:30 +00:00
Doug Cutting
b91b113e86
Fixed a bug where adding an optimized index to an empty index failed.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149614 13f79535-47bb-0310-9956-ffa450edef68
2001-10-20 02:32:59 +00:00
Doug Cutting
1c31f33cce
Added source code into distribution.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149612 13f79535-47bb-0310-9956-ffa450edef68
2001-10-19 17:15:19 +00:00
Doug Cutting
2a5c45947d
Fixed potential race condition.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149611 13f79535-47bb-0310-9956-ffa450edef68
2001-10-11 22:44:23 +00:00
Doug Cutting
6369c5a884
Fixed so that getDirectory(xxx,true) correctly erases the directory
...
contents, even when the directory has already been accessed in this
JVM. This was broken by the thread-safety fix.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149610 13f79535-47bb-0310-9956-ffa450edef68
2001-10-11 17:21:10 +00:00
Scott Ganyo
4c3e4ce685
Fix issue where an inclusive range query would include the nearest term in the index above a non-existant specified upper term.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149609 13f79535-47bb-0310-9956-ffa450edef68
2001-10-11 15:19:37 +00:00
Scott Ganyo
e9161ac365
Fix NullPointerException in clone() method when the Term is null.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149608 13f79535-47bb-0310-9956-ffa450edef68
2001-10-11 15:14:14 +00:00
Doug Cutting
4e72b89a90
Removed some redundant code. This is already in BooleanScorer.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149607 13f79535-47bb-0310-9956-ffa450edef68
2001-10-10 17:55:04 +00:00
Doug Cutting
0722fd1407
JDK 1.1 compatibility fix: disabled lock files for JDK 1.1, since they rely on a feature added in JDK 1.2.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149605 13f79535-47bb-0310-9956-ffa450edef68
2001-10-10 16:13:41 +00:00
Doug Cutting
d3c9282362
Added demo files to distribution. Fixed calls to demo in overview.html.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149601 13f79535-47bb-0310-9956-ffa450edef68
2001-10-02 18:31:22 +00:00
Doug Cutting
80509b4eb0
moved api.html into javadoc as overview; fixed links to javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149599 13f79535-47bb-0310-9956-ffa450edef68
2001-10-02 15:54:16 +00:00
Doug Cutting
58bcd780a9
Added index lock files. Indexing and search are now not just thread
...
safe, but also "process safe": multiple processes may may now search
an index while it is being updated from another process.
Two lock files are used in an index. One is "commit.lock". This is
used to synchronize commits [IndexWriter.close()] with opens
[IndexReader.open()]. Since these actions are short-lived, attempts
to obtain this lock will block for up to ten seconds, which should be
plenty of time, before an exception is thrown.
The second lock file is "write.lock". This is used to enforce the
restriction that only one process should be adding documents to an
index at a time. This is created when an IndexWriter is constructed
and removed when it is closed. If index writing is aborted then this
file must be manually removed. Attempts to index from another process
will immediately throw an exception.
It should be impossible to corrupt an index through the Lucene API.
However if a Lucene process exits unexpectedly it can leave the index
locked. The remedy is simply to, at a time when it is certain that no
processes are accessing the index, remove all lock files.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149595 13f79535-47bb-0310-9956-ffa450edef68
2001-09-27 16:27:02 +00:00
Scott Ganyo
9bd3152b06
Fix compile error: Was referring to old com.lucene.* packages.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149594 13f79535-47bb-0310-9956-ffa450edef68
2001-09-26 14:38:34 +00:00
Scott Ganyo
891209bfd3
Added support for RangeQuery. The syntax is expressed as follows:
...
inclusive range = field:[lowerTerm-upperTerm]
exclusive range = field:{lowerTerm-upperTerm}
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149593 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:54:18 +00:00
Scott Ganyo
7a28132692
Added ability to search for documents containing an ordered range of terms.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149592 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:53:20 +00:00
Doug Cutting
6c282c6a4e
Removed makefiles. Ant has replaced 'make' as the primary build system.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149591 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:03:18 +00:00
Doug Cutting
adbb6adcec
added package-level javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149589 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 19:05:33 +00:00
Doug Cutting
cf3414a123
Incorporated Joanne Sproston's changes to extend lower-level HitCollector-based search API to MultiSearcher. I have not yet tested this.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149588 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 19:03:35 +00:00
Doug Cutting
4b0fe4cfa2
Fixed broken javadoc links.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149587 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 18:38:50 +00:00
Doug Cutting
53b8f808b4
Adding German analysis code contributed by Gerhard Schwarz
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149586 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 17:29:05 +00:00
Jason van Zyl
4fc06ae583
- import fixes in the test src tree
...
- the test target appears to depend on classes in the demo src
tree so i added the dep to the test target. test target
still isn't working but getting there.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149580 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:35:57 +00:00
Jason van Zyl
864293c622
- fixes required to make the demo build. i missed some import statements.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149579 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:21:38 +00:00
Jason van Zyl
bd3948c539
Initial revision
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149570 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:29:48 +00:00