Commit Graph

778 Commits

Author SHA1 Message Date
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