Daniel Naber
45ac0c2628
add public methods to query the minimum similarity and the prefix length
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150513 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 19:44:01 +00:00
Christoph Goller
74cadb2dcf
*** empty log message ***
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150512 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 16:41:26 +00:00
Christoph Goller
99d5aeee4a
Throw ParseException instead of IllegalArgumentException
...
in case of illegal value for FuzzyQuery minimum similarity
parameter.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150511 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 13:37:26 +00:00
Christoph Goller
a6fad246dd
Applied patch #29370 supplied by Drew Farris and
...
Bernhard Messer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150510 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 12:50:23 +00:00
Christoph Goller
fd4cd859c5
PhraseQuery and PhrasePrefixQuery are extended. It's now
...
possible to specify the relative position of a term within
a phrase. This allows gaps and multiple terms at the same
position.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150509 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 09:38:50 +00:00
Daniel Naber
61e338ae88
document Christoph's improvements to FuzzyQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150508 13f79535-47bb-0310-9956-ffa450edef68
2004-09-14 22:19:53 +00:00
Christoph Goller
862b9ea4a7
QueryParser can now handle minimumSimilarity parameter
...
of FuzzyQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150507 13f79535-47bb-0310-9956-ffa450edef68
2004-09-14 13:46:25 +00:00
Christoph Goller
7e0155537a
QueryParser can now handle minimumSimilarity parameter
...
of FuzzyQuery; FuzzyQuery extended to allow for non-fuzzy
prefixes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150506 13f79535-47bb-0310-9956-ffa450edef68
2004-09-14 13:45:15 +00:00
Daniel Naber
82fc8e874f
adding a link to PDFTextStream, as requested by Chas Emerick
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150505 13f79535-47bb-0310-9956-ffa450edef68
2004-09-13 22:42:16 +00:00
Daniel Naber
ffac3bd41a
adding Lucene version, as far as people could remember :-)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150504 13f79535-47bb-0310-9956-ffa450edef68
2004-09-13 21:12:35 +00:00
Daniel Naber
3eeda4437d
Implement readResolve, needed for serializable "enumerations"
...
PR:31174
Submitted by:Todd VanderVeen
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150503 13f79535-47bb-0310-9956-ffa450edef68
2004-09-12 13:16:02 +00:00
Daniel Naber
515cf2153a
slightly improve the benchmark template: add Lucene version, query speed
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150502 13f79535-47bb-0310-9956-ffa450edef68
2004-09-12 11:36:59 +00:00
Daniel Naber
54bfbc30de
use the same amount of whitespace everywhere, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150501 13f79535-47bb-0310-9956-ffa450edef68
2004-09-08 20:43:43 +00:00
Daniel Naber
d31c31a84f
add an assertEquals, as the variable was not used before
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150500 13f79535-47bb-0310-9956-ffa450edef68
2004-09-08 18:10:09 +00:00
Christoph Goller
f4d99f0a7e
Getters for analyzer and field added.
...
Some unnecessary variables deleted.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150499 13f79535-47bb-0310-9956-ffa450edef68
2004-09-08 15:06:42 +00:00
Christoph Goller
dfeed0220e
Fix ArrayIndexOutOfBoundsExceptions
...
This patch is common to several patches
for QueryParser see e.g. Bug 9110 and it cannot have any
negative side effects.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150498 13f79535-47bb-0310-9956-ffa450edef68
2004-09-08 13:31:55 +00:00
Daniel Naber
89d41cd8f1
remove the last calls of the deprecated Field API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150497 13f79535-47bb-0310-9956-ffa450edef68
2004-09-07 18:26:36 +00:00
Daniel Naber
3305cee1b6
Remove all "final" declarations from FSDirectory. Doug agreed and nobody objected, so I commit it.
...
Submitted by: Mike Hearn
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150496 13f79535-47bb-0310-9956-ffa450edef68
2004-09-07 18:06:16 +00:00
Daniel Naber
c3918f9fa0
replace two tabs by spaces
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150495 13f79535-47bb-0310-9956-ffa450edef68
2004-09-07 17:55:59 +00:00
Daniel Naber
9b0315169b
don't call the deprecated Field API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150494 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 22:29:22 +00:00
Daniel Naber
1d70de80d9
Undo my fix for bug 30985, as it fixes only part of the problem. Instead add a comment about this "bug" to the API documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150493 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 22:09:13 +00:00
Daniel Naber
e49eb20a32
don't call the deprecated Field API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150492 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 22:01:49 +00:00
Daniel Naber
16239c65ca
parse hexadecimal character references
...
PR: 30617
Submitted by: Dave Sparks
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150491 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 21:33:37 +00:00
Christoph Goller
60cee18ffa
Patch (BUG# 31061) submitted by Paul Elschot reviewed by
...
Christoph Goller and applied
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150490 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 12:07:04 +00:00
Daniel Naber
4288bbe643
adding a getSort() method, as suggested by bug 30242, but unlike in the bug report it's called getSort(), not getSortFields(), as the set method is also called setSort(...)
...
PR: 30242
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150489 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 22:53:37 +00:00
Daniel Naber
ce2cd2f194
don't mix spaces and tabs (but use spaces only), no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150488 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 22:49:26 +00:00
Daniel Naber
a012f7cbfc
start using the new Field API in the test cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150487 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 22:27:42 +00:00
Daniel Naber
891a32f0b1
document the addition of the DateTools class
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150486 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 22:09:26 +00:00
Daniel Naber
d3134cf171
use the new DateTools class to limit the date resolution and save the date in a readable format
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150485 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:47:57 +00:00
Daniel Naber
bdcaaa7e62
test cases for the DateTools class
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150484 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:28:42 +00:00
Daniel Naber
c7fbb991c3
Add a new class that supports converting dates to readable strings, with limited resolution. Other public methods let people limit the resolution of their dates.
...
DateField is not deprecated because it still has the advantage of slightly shorter fields in some cases.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150483 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:27:29 +00:00
Daniel Naber
98ce298586
replace tabs by spaces
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150482 13f79535-47bb-0310-9956-ffa450edef68
2004-09-03 21:16:28 +00:00
Daniel Naber
f085bc15f5
Fix toString() to print the escaped version of a query. Adapt some test cases, also comment in some test cases again, but there's still a TODO which someone should have a look at.
...
PR: 30985
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150481 13f79535-47bb-0310-9956-ffa450edef68
2004-09-03 21:12:22 +00:00
Daniel Naber
c02126a21c
Don't just silently delete the "index" directory if it exists but throw an error. Be a bit more verbose.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150480 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 21:45:23 +00:00
Daniel Naber
bb8468bec6
use a FileReader and delete the comment that asks why it doesn't work - because it does now. also mention which encoding is expected.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150479 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 21:33:57 +00:00
Daniel Naber
dcc9f58e24
start using the non-deprecated API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150478 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 21:23:14 +00:00
Christoph Goller
1bd047313c
fix for Bug 30844
...
(supplied patch applied)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150477 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 13:07:12 +00:00
Daniel Naber
0c188666e5
start using the non-deprecated API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150476 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 22:27:44 +00:00
Daniel Naber
82241b8a20
deprecate the static methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150475 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 22:11:07 +00:00
Daniel Naber
2316ebdf3b
replace tabs by spaces, no functional change
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150474 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 20:34:44 +00:00
Daniel Naber
f6f772958d
tiny documentation improvement
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150473 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 20:33:33 +00:00
Daniel Naber
ac4238947f
adding a constructor that takes a Reader; some small doc improvements, some whitespace fixes. I will soon deprecate the static methods.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150472 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 20:31:48 +00:00
Daniel Naber
794ba80e15
stop using the deprecated Field constructor
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150471 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 20:04:12 +00:00
Daniel Naber
8f99bfef89
add test for runtime exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150470 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 21:03:40 +00:00
Daniel Naber
713c199bbd
stop using the deprecated Field constructor; small doc cleanup to avoid warnings
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150469 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 20:56:04 +00:00
Daniel Naber
a0ad582c29
stop using the deprecated Field constructor
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150468 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 20:52:15 +00:00
Daniel Naber
0acf48a99e
don't use the deprecated API for Booleanquery.add() anymore
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150467 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 20:49:34 +00:00
Daniel Naber
4135d1f851
throw NullPointerException instead of IllegalArgumentException if appropriate
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150466 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 20:48:22 +00:00
Daniel Naber
c8c9d14004
deprecate the constructor that uses three resp. four booleans, use two resp. three enumerations instead
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150465 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 20:45:02 +00:00
Daniel Naber
32bb01d597
according to Bernhard, the inner class must implement Serializable
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150464 13f79535-47bb-0310-9956-ffa450edef68
2004-08-29 14:09:56 +00:00