Commit Graph

739 Commits

Author SHA1 Message Date
Daniel Naber cc7490d251 some javadoc comment improvements
PR: 31350
Submitted by: Paul Elschot


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150590 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 18:43:18 +00:00
Daniel Naber 38fb6ab76d fix for a typo in a javadoc comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150589 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 18:37:47 +00:00
Daniel Naber 31fdebb91c remove code that was commented out, fix whitespace, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150588 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 16:07:19 +00:00
Daniel Naber 1bb4a0a252 use the non-deprecated API, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150587 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 16:05:36 +00:00
Daniel Naber d644998f55 use the non-deprecated API, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150586 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:58:32 +00:00
Daniel Naber 8bf11bc856 cleanup: don't declare exceptions that can never be thrown
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150585 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:44:45 +00:00
Daniel Naber a25fdef56d call static methods via class, not via object (better style, no functional change)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150584 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:44:09 +00:00
Daniel Naber ef02d9af38 copied from TestPhrasePrefixQuery, added a test for toString() and added a test where the first term is expanded
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150583 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:33:56 +00:00
Daniel Naber 59f20d1ada Deprecate PhrasePrefixQuery and copy it to MultiPhraseQuery; also fix toString() in MultiPhraseQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150582 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:27:15 +00:00
Doug Cutting e56faa3097 Optimize term dictionary lookup to allocate fewer terms.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150581 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 15:58:49 +00:00
Daniel Naber 1f11f2e937 print usage information if user requests it with -h or -help
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150580 13f79535-47bb-0310-9956-ffa450edef68
2004-10-07 18:19:16 +00:00
Daniel Naber 135f24a875 don't declare an Exception that can never be thrown
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150579 13f79535-47bb-0310-9956-ffa450edef68
2004-10-07 18:10:52 +00:00
Daniel Naber 5738ff629e small typo fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150578 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:15:02 +00:00
Daniel Naber 32879aea8d import cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150577 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:02:26 +00:00
Daniel Naber c37a40f444 don't declare an Exception that can never be thrown
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150576 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:01:55 +00:00
Daniel Naber aca15c3e1d call static methods via class, not via object (better style, no functional change)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150575 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:01:12 +00:00
Daniel Naber 251d0f5a54 make toString() output slightly more logical (compressed only refers to stored fields)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150574 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 20:03:25 +00:00
Daniel Naber 01e3ab0d13 small fixes for javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150573 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 19:55:42 +00:00
Christoph Goller a433e2c1de FuzzyQuery is now using a default prefix length of 2 in
order to become usable for big indices. Furthermore, it
no longer throws TooManyClausesException.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150572 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 16:19:52 +00:00
Christoph Goller bcafc0d719 readResolve has to be accessible from all subclasses.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150570 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 11:26:43 +00:00
Christoph Goller 4953fa5c71 Remove synchronization from TermVectors
(Patch #30736)


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150569 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 10:40:23 +00:00
Christoph Goller 3e955f8c77 Introduce a serializable Parameter Class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150568 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 09:19:04 +00:00
Christoph Goller bbf79a5ad0 Remove some deprecated warnings from core.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150567 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 09:05:56 +00:00
Christoph Goller f1667be0fc Grant's nw termvector patch (Bug #18927) applied with
some modifications.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150566 13f79535-47bb-0310-9956-ffa450edef68
2004-10-05 17:30:48 +00:00
Doug Cutting c6d6a390df Fix so that tests run with alternate Directory implementations.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150565 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:46:23 +00:00
Doug Cutting d82e2362f4 Improved version by Paul Elschot that can handle files longer than 2^31.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150563 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:44:11 +00:00
Doug Cutting 07c48aa589 Disable optimized implementation with compound format.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150562 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:05:05 +00:00
Daniel Naber 360d91dde7 Adding a small comment that says people should use only one IndexSearches for all searches.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150554 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 20:53:07 +00:00
Christoph Goller d187ef261c Use byte instead of short as bit-mask.
No functional change.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150548 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 13:36:57 +00:00
Christoph Goller 3edae1d01c Allow stored fields to be compressed (see Bug#31149)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150546 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 12:40:28 +00:00
Doug Cutting 260dcbe4ef Note the GCJ bug that this is a workaround for.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150542 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 16:29:48 +00:00
Christoph Goller 370639d43e Patch for Bug# 31240. This patch hopefully removes a
memory leak in the sort code.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150541 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 15:09:02 +00:00
Christoph Goller 8b1fd56ae0 Wrong cast corrected.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150540 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 15:06:56 +00:00
Doug Cutting 197e907924 Fixed so that file is no longer kept open.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150539 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 21:55:59 +00:00
Doug Cutting 8a241604da Add an nio mmap based Directory implementation.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150538 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 21:40:11 +00:00
Doug Cutting b32c045d35 Updated FSDirectory and RAMDirectory to no longer use deprecated methods.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150537 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 20:45:26 +00:00
Doug Cutting 79892c1f40 Replace OutputStream with IndexOutput and BufferedIndexOutput to permit unbuffered Directory implementations.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150536 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 18:15:52 +00:00
Doug Cutting 1b8843fa04 Oops. Fixed a bug I introduced in my last change. Thanks to
Cristoph for catching this!  I overgeneralized.  Sorted results are
not always the highest scoring.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150535 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 16:54:44 +00:00
Doug Cutting 5a3cfc5372 Compile most of Lucene's core code with a single call to gcj. This
permits more cross-class inlining.  In particular, the final method
PriorityQueue.size() can inline, which speeds things 7.5% in my
benchmarks.  Note that 'final' declarations *do* sometimes make things
faster in GCJ.  So let's not remove them all!


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150534 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:59:10 +00:00
Doug Cutting a71929fe4e Remvoe dead code that GCJ doesn't like.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150533 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:43:47 +00:00
Doug Cutting a69db22983 Add an import so that GCJ can compile this.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150532 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:42:44 +00:00
Doug Cutting 69d4dc5d06 Add GCJ native code for SegmentTermDocs.read(int[],int[]) to accellerate TermScorer. TermScorer and BooleanScorer are now usually a bit faster under GCJ than under Sun's JVM.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150531 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 18:32:27 +00:00
Doug Cutting 8ca05a3deb Inline decodeNorm() in TermQuery to make searches faster in Java implementations, like GCJ, where simple methods are not inlined.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150530 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 18:18:27 +00:00
Doug Cutting e1e3d71cc8 Optimize TermQuery within BooleanQuery, a common case.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150529 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 17:56:00 +00:00
Doug Cutting b85006589c Do not construct a ScoreDoc for every non-zero hit, but only for those
in the current top scoring set.  This makes a substantial performance
improvement for queries that match lots of documents.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150528 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 17:03:00 +00:00
Daniel Naber 0a5fab187b Add this file again, but deprecate it. It had been removed already, but re-adding it has the advantage that people will get deprecation warnings instead of compile errors if they use this class. Just like for all the other API changes we have done.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150527 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 19:27:01 +00:00
Doug Cutting ae6229c8cb Add native GCJ Directory implementation.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150525 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 18:14:25 +00:00
Daniel Naber 65ce0a021b order was undefined in case of duplicate sort keys, this could lead to incorrect results (documents appearing twice in the result set, other documents missing) if there were more than 100 matches.
PR:31241


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150523 13f79535-47bb-0310-9956-ffa450edef68
2004-09-18 18:21:17 +00:00
Daniel Naber ba6bb29e3b use the same amount of whitespace everywhere, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150522 13f79535-47bb-0310-9956-ffa450edef68
2004-09-17 19:24:14 +00:00
Daniel Naber e6b01e4617 fix toString output; make the comments real javadoc comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150521 13f79535-47bb-0310-9956-ffa450edef68
2004-09-17 19:21:14 +00:00
Daniel Naber 6333405ab9 remove unused import statement
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150520 13f79535-47bb-0310-9956-ffa450edef68
2004-09-17 19:16:01 +00:00
Daniel Naber 4c5f926cbd fix link in doc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150519 13f79535-47bb-0310-9956-ffa450edef68
2004-09-17 19:15:28 +00:00
Doug Cutting 99fdf6af1f Permit unbuffered index input.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150517 13f79535-47bb-0310-9956-ffa450edef68
2004-09-16 21:13:37 +00:00
Doug Cutting faebce61db Add options so that this is also useful for search benchmarking.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150516 13f79535-47bb-0310-9956-ffa450edef68
2004-09-16 20:57:05 +00:00
Daniel Naber e0c8c5a469 avoid warnings with "ant javadocs"
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150515 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 21:09:00 +00:00
Daniel Naber 6c8289a87c test if fuzzy query throws ParseException, test getter methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150514 13f79535-47bb-0310-9956-ffa450edef68
2004-09-15 19:45:02 +00:00
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 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
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 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 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 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
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 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
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
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 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
Daniel Naber 0520779622 make constants final
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150431 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 11:47:26 +00:00
Daniel Naber 473ed1013c fix a link in the API doc and avoid an Eclipse warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150430 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 11:37:36 +00:00
Daniel Naber 80ef6bd1a3 remove unused import statement
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150429 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 11:26:05 +00:00
Daniel Naber fe169b138e improve the comment about the unused variable
Submitted by: Boris Okner


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150428 13f79535-47bb-0310-9956-ffa450edef68
2004-08-14 14:14:45 +00:00
Daniel Naber 3515b30029 Remove an unused private method. Comment out unused variables. Add a comment to two places where a variable is never used but the code is correct anyway.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150427 13f79535-47bb-0310-9956-ffa450edef68
2004-08-14 11:14:37 +00:00
Daniel Naber 4b1c3b73a7 avoid warnings about ambiguous "@see" tags in Eclipse
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150426 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 20:02:30 +00:00
Daniel Naber 213904a810 fix the documentation for addFile()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150425 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 19:54:36 +00:00
Daniel Naber e37ecd1c2f remove two variables that were never used
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150423 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 18:38:44 +00:00
Daniel Naber cd2ca90309 You can now set the required fuzziness of FuzzyQuery. Note that QueryParser does not support this (yet?).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150422 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 18:35:02 +00:00
Daniel Naber c65cb9a931 remove an unused variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150421 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 18:26:43 +00:00
Daniel Naber d42dd740d6 improve the API doc for getUseCompoundFile()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150420 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 18:59:08 +00:00
Christoph Goller 76e2362954 building of compound file taken out of commit lock
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150419 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 17:38:35 +00:00
Daniel Naber a715799797 remove a private method that's never used
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150418 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 07:19:18 +00:00
Daniel Naber f3edf7417a make the test case also work in Eclipse, not only in the ant task
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150417 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 07:18:04 +00:00
Daniel Naber 453a317e1e toString() now doesn't return "Keyword" etc anymore but prints "indexed, tokenized" etc. Information about termVectors is now also included.
PR:28336


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150416 13f79535-47bb-0310-9956-ffa450edef68
2004-08-10 21:34:57 +00:00
Daniel Naber bf85d16d96 removed "TODO", as the bug is fixed now
PR: 29931
Submitted by:	Bernhard Messer


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150415 13f79535-47bb-0310-9956-ffa450edef68
2004-08-10 19:06:22 +00:00
Daniel Naber b968175664 make the test case also work in Eclipse, not only in the ant task
Submitted by:	Bernhard Messer


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150414 13f79535-47bb-0310-9956-ffa450edef68
2004-08-10 19:04:38 +00:00
Daniel Naber b1a8660d17 Bernhard's fix for '��' not being replaced at the end of a word + plus a small code simplification by me
PR: 29931
Submitted by:	Bernhard Messer


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150413 13f79535-47bb-0310-9956-ffa450edef68
2004-08-10 19:02:47 +00:00
Daniel Naber 67b295c3a8 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150412 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 19:43:58 +00:00
Daniel Naber 5568be02cf remove an unused variable and clean up imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150411 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 19:40:42 +00:00
Daniel Naber 41cf1702b3 remove unused variables
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150410 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 19:36:59 +00:00
Daniel Naber 043baabb62 remove an unused variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150409 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 14:08:18 +00:00
Christoph Goller dc74bab798 create compound file in merge after all merged segments
have been deleted in order to safe disk space.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150408 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 13:05:33 +00:00
Daniel Naber f24f300492 test case for the German stemmer which also shows its limitations
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150407 13f79535-47bb-0310-9956-ffa450edef68
2004-08-08 10:55:27 +00:00