Commit Graph

11546 Commits

Author SHA1 Message Date
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
Daniel Naber eff9c7c3cf don't use the deprecated API for BooleanQuery.add()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150463 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 21:59:31 +00:00
Daniel Naber d2705e8e8a Occur must default to SHOULD (TestWildcard breaks otherwise)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150462 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 21:54:58 +00:00
Daniel Naber f6c12e189a don't use the deprecated API for BooleanQuery.add()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150461 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 21:50:17 +00:00
Daniel Naber bd9dcf72e0 don't use the deprecated API for BooleanQuery.add()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150460 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 20:20:47 +00:00
Daniel Naber 3e831bfa21 document that methods have been deprecated
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150459 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 20:17:49 +00:00
Daniel Naber ccfc4ec8e1 whitespace changes only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150458 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 20:11:00 +00:00
Daniel Naber 6bc8918134 deprecate the add() method that takes two booleans, take an Occur cobject instead. Also deprecate the public fields in BooleanClause and add get/set methods instead.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150457 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 20:09:12 +00:00
Daniel Naber 4091488113 remove these files, they were only needed for Sun's JavaWebServer which doesn't exist anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150456 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 19:07:39 +00:00
Daniel Naber ed7723dca0 throw NullPointerException instead of IllegalArgumentException if appropriate
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150455 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 12:41:14 +00:00
Daniel Naber 918bd1af86 improve API documentation a bit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150454 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 23:34:17 +00:00
Daniel Naber c884004201 remove the information about Sun's JavaWebServer, as it seems to be outdated
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150453 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 23:26:17 +00:00
Daniel Naber 35dc428ed9 mini optimization in hasVectors: break if result is true
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150452 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 12:06:14 +00:00
Daniel Naber c379561d85 remove unused import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150451 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 12:04:26 +00:00
Daniel Naber 25fac5259f fix "@param" comment; remove IOException that was never thrown
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150450 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 12:02:59 +00:00
Daniel Naber 19e8c6d8c3 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150449 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 12:01:39 +00:00
Daniel Naber ac240c8f1a fix typo in comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150448 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 11:56:17 +00:00
Otis Gospodnetic 7123444b75 - Added 2 new parse methods that take arrays of query strings.
Submited by Andraz Skoric (andraz.skoric@medius.si) back in April 2004


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150447 13f79535-47bb-0310-9956-ffa450edef68
2004-08-23 23:07:41 +00:00
Daniel Naber 34bab2ca15 fix the @param tag that got broken with the previous commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150446 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:59:23 +00:00
Otis Gospodnetic a7a55017e3 - Indentation and compiler warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150445 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:58:11 +00:00
Erik Hatcher b6978c9213 corrected target name
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150444 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:53:34 +00:00
Otis Gospodnetic 83d745ab0c - Small fixes from Bernhard Messer (http://issues.apache.org/bugzilla/show_bug.cgi?id=30522)
PR: 30522
Obtained from:
Submitted by:	Bernhard Messer
Reviewed by:	Otis Gospodnetic


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150443 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:53:16 +00:00
Otis Gospodnetic bcaf26108e - Applied patch from http://issues.apache.org/bugzilla/show_bug.cgi?id=30360
PR: 30360
Submitted by:	Paul Elschot
Reviewed by:	Otis Gospodnetic


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150442 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:38:46 +00:00
Otis Gospodnetic 814761c635 - Small javadoc fix reported by Ernesto De Santis
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150441 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 20:22:33 +00:00
Erik Hatcher d0333a5634 fixed misspellings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150440 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 13:36:53 +00:00
Christoph Goller 99b1b2260d disk usage changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150439 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 13:01:49 +00:00
Christoph Goller bbf935c6b4 fix for BUG 30668 and name of separate norms file
changed from .f to .s


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150438 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 08:56:08 +00:00
Daniel Naber a34be5b16e document the analyzer move to sandbox
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150437 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 21:17:20 +00:00
Daniel Naber 08220cfbe3 move the word list loader from analysis.de to analysis, as it is not specific to German at all
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150436 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 20:41:02 +00:00
Daniel Naber 7ec48d172c Russian and German analyzers have been moved to sandbox: delete the test cases here, too
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150435 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 20:32:36 +00:00
Daniel Naber caaad35b57 Russian and German analyzers have been moved to sandbox
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150434 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 20:31:49 +00:00
Daniel Naber b9c9f81ed2 use standard OR operator (||) instead of binary OR (|) for cleaner code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150433 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 11:41:22 +00:00
Otis Gospodnetic fe4ccc7e54 - Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150432 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 20:49:30 +00:00