Commit Graph

880 Commits

Author SHA1 Message Date
Erik Hatcher 14b21aae0d revert change to BooleanQuery.equals and add a test case.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161075 13f79535-47bb-0310-9956-ffa450edef68
2005-04-12 17:22:32 +00:00
Erik Hatcher e676822c77 #34408: Add .equals/.hashCode to RangeQuery to facilitate use within hash maps and in unit test comparisons
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@161045 13f79535-47bb-0310-9956-ffa450edef68
2005-04-12 12:34:56 +00:00
Otis Gospodnetic 13f423812c - Unit test contributed by Cheolgoo Kang and cleaned up by Paul Elschot
c.f. http://issues.apache.org/bugzilla/show_bug.cgi?id=33459


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@160127 13f79535-47bb-0310-9956-ffa450edef68
2005-04-05 03:21:05 +00:00
Erik Hatcher f673bff9ef add .equals support for MultiTermQuery and subclasses. this facilitates unit testing comparison of Query instances
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@159688 13f79535-47bb-0310-9956-ffa450edef68
2005-04-01 13:51:04 +00:00
Daniel Naber ccc027faba typo fix in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@159229 13f79535-47bb-0310-9956-ffa450edef68
2005-03-28 11:14:33 +00:00
Doug Cutting f654321707 Make lessThan() implementation non-final, fixing bug #34028.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158633 13f79535-47bb-0310-9956-ffa450edef68
2005-03-22 18:02:09 +00:00
Erik Hatcher f14428eef4 Correct BooleanQuery.equals such that every clause is compared
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158016 13f79535-47bb-0310-9956-ffa450edef68
2005-03-18 03:29:16 +00:00
Daniel Naber 09b58de1db fixing javadoc links
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157978 13f79535-47bb-0310-9956-ffa450edef68
2005-03-17 21:27:55 +00:00
Otis Gospodnetic 0f8b179e57 - Cosmetics (tabs, indentation)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157225 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:50:54 +00:00
Otis Gospodnetic 1a3ce57455 - Removed FIXMEs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157224 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:31:05 +00:00
Otis Gospodnetic 0d8a41342e - Let callers get the Lucene version number, as specified in the Manifest
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157223 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:23:13 +00:00
Otis Gospodnetic 15e741ff29 - Added javadoc to setTermIndexInterval (from Doug's email)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157214 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 03:01:09 +00:00
Otis Gospodnetic 416ab4adf4 - Removed unused import (not referenced from javadoc either)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157211 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 02:43:52 +00:00
Otis Gospodnetic 0d17772c8e - Fixed the compilation error
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157210 13f79535-47bb-0310-9956-ffa450edef68
2005-03-12 02:42:57 +00:00
Doug Cutting 85cc5c9fc3 Added IndexWriter.setTermIndexInterval().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156669 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 18:58:26 +00:00
Erik Hatcher 4a4221e0a9 remove pesky static parse method that stymies flexibility
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156600 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:21:22 +00:00
Erik Hatcher 835871eedc fixed javadoc typo and added helpful diagnostic toString methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156599 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:02:46 +00:00
Erik Hatcher 270e1dc91c Adjusted tests for discussed expectations.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156598 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 03:00:47 +00:00
Erik Hatcher 1644a28475 Minor tweaks to the new proposed query parser. There are still some
failing tests, as some were added to show expectations not yet met.  The
main missing piece is getting NOT precedence accounted for.



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156597 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 02:59:40 +00:00
Doug Cutting 4ddfbcffc6 Patch a bug where the .tii file was not closed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156549 13f79535-47bb-0310-9956-ffa450edef68
2005-03-08 17:30:43 +00:00
Erik Hatcher 90ff23fb92 fix the +/-a queries - easier than I thought - just restored a line of code from QueryParser.jj
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156451 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 21:56:36 +00:00
Erik Hatcher 27614d6a39 Fix broken QueryParser.jj and generated code. Removed inadvertent debugging <echo> from build.xml.
Added (currently failing) test cases for new PrecedenceQueryParser as a target for enhancement.



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156449 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 21:46:39 +00:00
Doug Cutting ff6cb58371 Make previous change thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156447 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:50:36 +00:00
Doug Cutting be8ae58254 Read term index lazily at first random-access to terms.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156444 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:28:04 +00:00
Erik Hatcher 4ed95e7f75 JavaCC generate the changes Doug has made
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156443 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 20:18:58 +00:00
Doug Cutting 62855478e8 Amendment to patch #33472. Extended to Erik's new query parser, and patched one place missed in the original patch.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156441 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 19:53:29 +00:00
Doug Cutting 4d1970ebab Patch #33472. Disable coord() in automatically generated queries.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156438 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 19:26:27 +00:00
Erik Hatcher a606c0890c Update generated files. Maybe <javacc> is more of a pain than its worth!
Added more tests.



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156435 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 18:21:16 +00:00
Erik Hatcher 5f67460ad2 Add new PrecedenceQueryParser so others can try it out and discuss any issues with it. TestPrecedenceQueryParser is
a clone of TestQueryParser with two noted changes - one within testQPA and with the testPrecedence method.  testPrecedence
was added to TestQueryParser to show its awkward behavior (and ensure it doesn't change).

Modified build to use Ant's <javacc> task, instead of launching directly with <java>, which has built-in dependency
checking. 



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156431 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 16:08:02 +00:00
Erik Hatcher 88a88a92f3 for some reason regenerating with JavaCC moved a method - perhaps due to a different version of JavaCC - commit using JavaCC 3.2
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156427 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 16:00:48 +00:00
Otis Gospodnetic ed1d0834f2 - Paul's Javadoc improvements from bug 33678: http://issues.apache.org/bugzilla/show_bug.cgi?id=33678
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155607 13f79535-47bb-0310-9956-ffa450edef68
2005-02-27 01:29:53 +00:00
Doug Cutting aaba39e3b7 Added accessor methods, as suggested by Kevin Burton.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155349 13f79535-47bb-0310-9956-ffa450edef68
2005-02-25 17:39:02 +00:00
Erik Hatcher d0468669c2 fix broken links to source
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155011 13f79535-47bb-0310-9956-ffa450edef68
2005-02-23 14:14:12 +00:00
Daniel Naber cf41b3d1cb fix NullPointerException when parsing phrase query with the new MFQP
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154406 13f79535-47bb-0310-9956-ffa450edef68
2005-02-19 15:04:49 +00:00
Erik Hatcher db2c7c98e9 Bugzilla #33642 fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154346 13f79535-47bb-0310-9956-ffa450edef68
2005-02-18 20:49:36 +00:00
Daniel Naber 25f82f4458 trivial whitespace fix only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154079 13f79535-47bb-0310-9956-ffa450edef68
2005-02-16 20:15:48 +00:00
Daniel Naber 52537afdb6 throw IllegalArgumentException to avoid endless loop
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@154076 13f79535-47bb-0310-9956-ffa450edef68
2005-02-16 20:07:38 +00:00
Erik Hatcher e75ffc5b11 remove deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151471 13f79535-47bb-0310-9956-ffa450edef68
2005-02-05 03:03:22 +00:00
Doug Cutting bfffc32a3d Fix for bug #32847. Use uncached access to norms when merging to
minimize RAM usage.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151390 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 19:09:53 +00:00
Bernhard Messer a14e0acf09 move static main method to list and optionally extract the individual file from a compound index from CompoundFileReader to IndexReader. It is more cleaner to have the method in IndexReader because it is well documented and public available.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151381 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 17:45:16 +00:00
Daniel Naber ecd4a7256d fix for #33395: The deprecated constructor of BooleanClause does not set new state (patch provided by Paul Elschot, slightly modified)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151252 13f79535-47bb-0310-9956-ffa450edef68
2005-02-03 23:35:26 +00:00
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
Christoph Goller b674ad711f Javadoc correction as suggested by Bug#32353
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150660 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:22:24 +00:00
Christoph Goller 6e71206441 small Javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150659 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:05:15 +00:00
Erik Hatcher b01416fcb3 Added RangeFilter and tests contributed by Chris M Hostetter.
Deprecated DateFilter and DateField.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150658 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 14:17:18 +00:00
Bernhard Messer debe012863 add short description for the new test and remove misleading comment.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150657 13f79535-47bb-0310-9956-ffa450edef68
2004-11-22 09:37:24 +00:00
Bernhard Messer f2b8cfbde7 add a test for bug 31976
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150656 13f79535-47bb-0310-9956-ffa450edef68
2004-11-21 22:33:54 +00:00
Bernhard Messer b77b25d52b Fix for bug: 31976, avoid NullPointerException when adding a document with an single, empty field and term vectors enabled.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150655 13f79535-47bb-0310-9956-ffa450edef68
2004-11-21 22:32:49 +00:00
Daniel Naber f9f3f74b68 open the searcher so that the searcher's close() call will close the implicitly opened reader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150653 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 20:58:45 +00:00
Daniel Naber 229e6e039f adding a comment that opening an IndexReader can be slow
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150650 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:28:02 +00:00
Daniel Naber eb5344256f close the searcher at the end of the page
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150649 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:22:27 +00:00
Daniel Naber 724f27f4bc use Exception.toString() instead of getMessage() for a slighlty more verbose message
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150648 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 19:15:28 +00:00
Bernhard Messer d9f00f1d09 show a useful error message if the directory to index doesn't exist or isn't readable.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150647 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 18:54:13 +00:00
Bernhard Messer 34c106218e make the error messages more verbose using the exceptions toString() method.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150646 13f79535-47bb-0310-9956-ffa450edef68
2004-11-18 18:37:53 +00:00
Bernhard Messer fc6694ef9d change from cal.setTimeInMillis(long l) to cal.setTime(Date d) because cal.setTimeInMillis(...) was protected in JDK's prior to 1.4
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150645 13f79535-47bb-0310-9956-ffa450edef68
2004-11-16 22:27:54 +00:00
Bernhard Messer 1515574bff change from RuntimeException (Exception e) to RuntimeException (String s) to be backward compatible with jdk 1.3
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150644 13f79535-47bb-0310-9956-ffa450edef68
2004-11-16 21:57:47 +00:00
Daniel Naber ffc746e3d0 throw IllegalArgumentException for nDocs <= 0 to avoid NullPointerException
PR: 32227
Submitted by: Paul Elschot


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150641 13f79535-47bb-0310-9956-ffa450edef68
2004-11-14 13:26:28 +00:00
Daniel Naber bcfcf9eeb7 test QueryParser's ability to be used with Analyzers that return more than one token per position
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150640 13f79535-47bb-0310-9956-ffa450edef68
2004-11-13 15:16:11 +00:00
Daniel Naber f8d0d0b140 make QueryParser work with analyzers that return more than one token per position
PR: 23307
Submitted by: Pierrick Brihaye


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150639 13f79535-47bb-0310-9956-ffa450edef68
2004-11-13 15:11:26 +00:00
Daniel Naber a637ff56b3 test slop
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150638 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 15:18:27 +00:00
Daniel Naber ac7576a81c small refactoring
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150637 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 13:59:23 +00:00
Daniel Naber 747a6cce17 fixing typo in variable name and incorrect comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150636 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 13:55:23 +00:00
Daniel Naber 49ab2ff423 test that IllegalArgumentException is thrown if terms belong to different fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150635 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 11:39:25 +00:00
Erik Hatcher b708ac392e move from FQCN to import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150632 13f79535-47bb-0310-9956-ffa450edef68
2004-11-09 15:12:16 +00:00
Daniel Naber 8d45546b72 fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150631 13f79535-47bb-0310-9956-ffa450edef68
2004-11-08 00:10:39 +00:00
Daniel Naber 2c1dc30639 indent the same everywhere, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150630 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 23:41:50 +00:00
Daniel Naber 898aa6abe6 speed up Fuzzy queries 20%-50%, I only did some small whitespace and comment fixes compared to the original patch
PR: 31882
Submitted by: Jonathan Hager


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150628 13f79535-47bb-0310-9956-ffa450edef68
2004-11-07 23:27:24 +00:00
Daniel Naber 3c4f929368 typo fixes in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150622 13f79535-47bb-0310-9956-ffa450edef68
2004-10-27 21:59:02 +00:00
Otis Gospodnetic cfc3a8109b - Fixed compareTo(Object) javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150621 13f79535-47bb-0310-9956-ffa450edef68
2004-10-23 00:50:31 +00:00
Daniel Naber 5869962cf0 improve javadoc
PR:30685
Submitted by: Paul Elschot


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150619 13f79535-47bb-0310-9956-ffa450edef68
2004-10-19 19:51:35 +00:00
Daniel Naber 8a37ed97d9 don't use the deprecated API in the documentation example
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150618 13f79535-47bb-0310-9956-ffa450edef68
2004-10-18 22:36:54 +00:00
Daniel Naber 1aa4ae4a31 fix comments, no functional change
PR: 31748
Submitted by: Paul Elschot


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150616 13f79535-47bb-0310-9956-ffa450edef68
2004-10-17 11:47:05 +00:00
Daniel Naber 8aaf570ed6 improve doc for default constructor, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150615 13f79535-47bb-0310-9956-ffa450edef68
2004-10-17 11:19:39 +00:00
Daniel Naber 3a84008a63 security: the error message was not escaped, this could enable cross site scripting
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150614 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 16:21:58 +00:00
Daniel Naber a819643d58 avoid accessing deprecated field
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150613 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 13:03:34 +00:00
Daniel Naber 7618ca9403 don't link the deprecated PhrasePrefixQuery in the documentation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150612 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 19:50:58 +00:00
Daniel Naber 9daff285c9 several small documentation fixes -- no functional change except a "Usage" message in the main() method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150611 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 19:47:43 +00:00
Christoph Goller a5d04f404c Improved Javadoc: Formula for score computation
corrected.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150607 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 18:42:20 +00:00
Daniel Naber 5befa0d3ac make the test case timezone independent
Submitted by: Anatol Pomozov


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150606 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 18:08:51 +00:00
Doug Cutting 1a78116cc7 Add a command-line option which permits the norms from a single field
to be used for all fields.  Norms are read into memory, using a byte
of memory per document per searched field.  This can cause search of
large collections with a large number of fields to run out of memory.
If all of the fields contain only a single token, then the norms are
all identical, and a single norm vector may be shared.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150605 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:33:14 +00:00
Doug Cutting b2416b3039 Check the type of the IndexInput rather than the Directory to detect
native implementation.  This is a simpler and more correct test.  It
also permits the Directory to return a mixture of native and
non-native IndexInput implementations.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150604 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:23:26 +00:00
Doug Cutting feaea07b3c Only mmap .frq files, to conserve address space.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150603 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:19:58 +00:00
Doug Cutting 55e076372a Correctly translate errors from mmap() into exceptions.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150602 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:19:06 +00:00
Doug Cutting c429a5f1e6 Reverse a mistaken optimization. With a larger collection and set of
queries I find that a table size of 2k works best.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150601 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 17:12:04 +00:00
Daniel Naber 46ceb15879 fix HTML (& must be escaped as &amp; in URLs); escape query in the "more results" link; fix typos in comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150600 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 22:14:26 +00:00
Daniel Naber ce7aaab8af fix typo in target name
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150599 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 17:53:40 +00:00
Christoph Goller 25d89037c6 default prefix length set to 0 instead of 2 until our test
suggest a better value


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150598 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 09:42:02 +00:00
Christoph Goller 5d4c27b23d Reinsert old API for getFieldQuery, getRangeQuery, and
getFuzzyQuery and deprecate it.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150597 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 09:36:12 +00:00
Daniel Naber e5cd911a29 deprecate the public fields, add get/set methods instead
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150595 13f79535-47bb-0310-9956-ffa450edef68
2004-10-11 21:24:39 +00:00
Daniel Naber 257adde8c7 trying to make the testcase timezone independent
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150594 13f79535-47bb-0310-9956-ffa450edef68
2004-10-11 20:32:44 +00:00
Doug Cutting b6d184b28f Restore an import required by GCJ's compiler.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150593 13f79535-47bb-0310-9956-ffa450edef68
2004-10-11 17:07:39 +00:00
Daniel Naber 2950ecc4f7 remove useless placeholder comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150591 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 18:58:48 +00:00
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