Daniel Naber
d627eced03
test case that makes sure sloppy phrase queries use the term distance to calculate the result ranking
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150740 13f79535-47bb-0310-9956-ffa450edef68
2005-01-28 22:22:04 +00:00
Christoph Goller
3ad078a757
Fixed small typo to enable compilation again.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150739 13f79535-47bb-0310-9956-ffa450edef68
2005-01-26 13:57:41 +00:00
Otis Gospodnetic
679e46a713
- Read-in query string as UTF-8
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150738 13f79535-47bb-0310-9956-ffa450edef68
2005-01-26 04:35:33 +00:00
Christoph Goller
217ac20c30
New BooleanScorer implemented by Paul Elschot
...
(Patch 31785) that implements skipTo and delivers
documents in correct order. Furthermore a small bug
in ConjunctionScorer skipTo (if called without a
preceeding next) is eliminated.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150736 13f79535-47bb-0310-9956-ffa450edef68
2005-01-24 19:21:01 +00:00
Daniel Naber
7ff11fc34d
fix for bug 33161 (UnsupportedOperationException for some combinations of BooleanQuery and MultiPhraseQuery)
...
PR: 33161
Submitted by: Rhett Sutphin
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150733 13f79535-47bb-0310-9956-ffa450edef68
2005-01-19 23:32:52 +00:00
Erik Hatcher
277a3aa744
StandardAnalyzer test contributed by Chris Lamprecht
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150730 13f79535-47bb-0310-9956-ffa450edef68
2005-01-18 13:27:23 +00:00
Daniel Naber
2c43e92e98
fixing some deprecated/see tags in the javadoc comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150729 13f79535-47bb-0310-9956-ffa450edef68
2005-01-04 19:25:01 +00:00
Daniel Naber
1129d547da
avoid deprecated method call
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150728 13f79535-47bb-0310-9956-ffa450edef68
2005-01-03 17:05:31 +00:00
Daniel Naber
55bfcc6d47
reduce date resolution from seconds to minutes, this should be enough for most cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150727 13f79535-47bb-0310-9956-ffa450edef68
2005-01-01 23:13:00 +00:00
Bernhard Messer
fd754080ce
add a public static void main method to list and optional extract the individual files from a compound. The original code was proposed by Garrett Rooney.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150723 13f79535-47bb-0310-9956-ffa450edef68
2004-12-30 12:55:10 +00:00
Bernhard Messer
cbe5047e62
use the new DateTools.timeToString instead of the deprecated DateTime class.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150722 13f79535-47bb-0310-9956-ffa450edef68
2004-12-30 12:06:09 +00:00
Bernhard Messer
eb7e42eb4a
adjust test cases to make use of the new IndexReader.getFieldNames method
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150721 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:38:41 +00:00
Bernhard Messer
1e53679495
use the new IndexReader.getFieldNames instead of the deprecated ones.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150720 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:37:47 +00:00
Bernhard Messer
8f5e0f6406
new method: public abstract Collection getFieldNames(FieldOption fldOption) added to IndexReader. This is a replacement for all existing IndexReader.getFieldName methods. All the other methods are marked deprecated and should be removed with 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150719 13f79535-47bb-0310-9956-ffa450edef68
2004-12-29 21:35:45 +00:00
Bernhard Messer
ad114c6e7d
use the new non-deprecated IndexWriter.getMergeFactor() method instead of the static variable IndexWriter.mergeFactor.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150718 13f79535-47bb-0310-9956-ffa450edef68
2004-12-22 19:43:05 +00:00
Daniel Naber
11f9a45a03
fixing typo in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150717 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 16:25:40 +00:00
Bernhard Messer
2779fa5edc
make deprecated test work again with bug fix in Reader getFieldNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150715 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:59:33 +00:00
Bernhard Messer
785e50ba82
make tests work again with bug fix in Reader getFieldNames
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150714 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:58:49 +00:00
Bernhard Messer
7b008b210d
do not longer return an extra blank field in Reader getFieldNames
...
PR:19085
Obtained from: Mark Harwood
Submitted by: Bernhard
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150713 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 14:55:48 +00:00
Daniel Naber
cdd85a75ea
The terms of fuzzy and range queries are lowercased by default now. setLowercaseWildcardTerms deprecated, introducing setLowercaseExpandedTerms instead.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150709 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 23:02:53 +00:00
Daniel Naber
b74370baec
slightly improve the TooManyClauses exception documentation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150708 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 19:28:44 +00:00
Daniel Naber
db9e4e97db
document that TooManyClauses is thrown by several methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150707 13f79535-47bb-0310-9956-ffa450edef68
2004-12-14 19:00:01 +00:00
Daniel Naber
857624d038
print a message to infoStream if the number of maximum tokens per document (maxFieldLength) is reached
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150706 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 20:26:27 +00:00
Daniel Naber
a7495a6df8
upgrade hints in the deprecated tag
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150705 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 15:36:33 +00:00
Daniel Naber
4f3aad23f2
Deprecate the old constructors and the main parse(...) method. The new one now generates a query that works
...
as expected for both AND and OR mode. Also do better argument checking in the static methods and throw
IllegalArgumentException if something is wrong.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150704 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 15:27:49 +00:00
Daniel Naber
c62435297b
adding a simple indexing and searching example to the API documentation
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150702 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 11:15:51 +00:00
Daniel Naber
68d8f3c27e
trivial typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150701 13f79535-47bb-0310-9956-ffa450edef68
2004-12-10 22:18:35 +00:00
Christoph Goller
84a908d84c
Test case and fix for bug #32467
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150700 13f79535-47bb-0310-9956-ffa450edef68
2004-12-10 19:36:40 +00:00
Daniel Naber
ac5e84d8f6
update to Apache License 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150699 13f79535-47bb-0310-9956-ffa450edef68
2004-12-08 18:49:00 +00:00
Bernhard Messer
c0b059bf97
add test-cases from lucene 1.4.3 so that we can test all deprecated and outdated methods and also. There will be no need to change this test cases. They can be deleted step by step when moving from 1.9 to 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150694 13f79535-47bb-0310-9956-ffa450edef68
2004-12-05 18:21:58 +00:00
Bernhard Messer
e791e88b67
change lockdir to lockDir so that it follows the existing casing
...
pattern.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150690 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 22:38:48 +00:00
Bernhard Messer
85849a7a12
change visibility of class members from public to package private.
...
PR:31746
Submitted by: Bernhard Messer
Reviewed by: Bernhard Messer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150689 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 21:42:02 +00:00
Daniel Naber
1ba2fb65c5
update to Apache License 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150688 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 21:36:28 +00:00
Bernhard Messer
adb32ee179
avoid NullpointerException if close() method is called twice. See Bugzilla: #32403
...
Submitted by: Wolf Siberski
Reviewed by: Bernhard Messer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150686 13f79535-47bb-0310-9956-ffa450edef68
2004-11-29 20:41:01 +00:00
Daniel Naber
2cc6c7f64a
clarify that DateField will not be removed soon, despite being deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150682 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 15:42:17 +00:00
Bernhard Messer
1803bd7939
catch IOException rather than all Exceptions in testBadParams(). Add another "bad document number" test without a field value. Remove unnecessary cast.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150681 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 13:40:47 +00:00
Bernhard Messer
16552ede59
avoid ArrayIndexOutOfBoundsException in method refill() when bufferLength gets a negativ value. It happens when TermVectorsReader.get(int docID) is used with a docID larger than number of documents stored in the index.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150680 13f79535-47bb-0310-9956-ffa450edef68
2004-11-28 13:33:55 +00:00
Daniel Naber
918572be86
improve javadoc by mentioning Filter
...
PR: 32365
Submitted by: Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150673 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 22:06:12 +00:00
Daniel Naber
1bc761f26a
don't append "*" to the term, it doesn't make sense and is confusing
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150672 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 19:41:16 +00:00
Daniel Naber
31335c60ae
small javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150671 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 19:34:11 +00:00
Christoph Goller
74f6ac4615
Old class name replaced with new class name in Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150670 13f79535-47bb-0310-9956-ffa450edef68
2004-11-24 17:40:48 +00:00
Daniel Naber
d040882872
adapt to new typesafe API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150669 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 23:14:31 +00:00
Daniel Naber
197ad763d1
get/setOperator becomes get/setDefaultOperator and its parameter is now typsafe
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150668 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 23:13:34 +00:00
Daniel Naber
742417162a
throw NullPointerException instead of IllegalArgumentException; small typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150667 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 22:36:10 +00:00
Erik Hatcher
d0623a8e13
Add first pass for NumberUtils, adapted from code contributed by Matt Quail.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150666 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 21:07:49 +00:00
Daniel Naber
6bf1504200
some small javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150665 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 20:56:06 +00:00
Daniel Naber
552c9465c8
remove javadoc for rewrite(), will be copied from superclass automatically
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150664 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 20:54:47 +00:00
Daniel Naber
c35d916355
adding license; typo fix
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150663 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:56:40 +00:00
Daniel Naber
c4fb0d010f
fixing typos in comments
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150662 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:54:32 +00:00
Daniel Naber
308811b558
adding license; use the non-deprecated Field constructors
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150661 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:48:55 +00:00