Commit Graph

2282 Commits

Author SHA1 Message Date
Daniel Naber 4e5151110b catch security exception so this class can be used from an applet;
tiny improvement to the exception output (no toString())

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231078 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 18:41:47 +00:00
Daniel Naber 2b9294887f avoid code duplication, patch by Stephane Bailliez (#36078)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@231075 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 18:15:30 +00:00
Erik Hatcher c95a5c5390 Fix issue with lock file when org.apache.lucene.lockDir and java.io.tmpdir are not set
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@230939 13f79535-47bb-0310-9956-ffa450edef68
2005-08-09 00:58:01 +00:00
Daniel Naber 65cbe799af re-indent, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@224373 13f79535-47bb-0310-9956-ffa450edef68
2005-07-22 17:41:46 +00:00
Erik Hatcher 7dd3e02a1a #35823 - Paul Elschots fix for BooleanScorer2 causing ArrayIndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220228 13f79535-47bb-0310-9956-ffa450edef68
2005-07-22 01:48:32 +00:00
Daniel Naber 3227a9dfb8 whitespace cleanup only (re-indent) + adding myself as author
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220171 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 19:12:35 +00:00
Daniel Naber c9e584847b stop using the deprecated parse() method
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@220165 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 18:44:19 +00:00
Daniel Naber eaa580b853 fix parsing of sloppy phrase queries and wildcard queries
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219965 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 19:11:43 +00:00
Daniel Naber 025022251d adding toString() implementation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219555 13f79535-47bb-0310-9956-ffa450edef68
2005-07-18 19:28:57 +00:00
Erik Hatcher f50db81cd1 correct build file to reflect move of PrecedenceQueryParser to contrib/miscellaneous
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219547 13f79535-47bb-0310-9956-ffa450edef68
2005-07-18 18:20:30 +00:00
Daniel Naber 615f2c4db3 document fix for #35626
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219389 13f79535-47bb-0310-9956-ffa450edef68
2005-07-17 10:57:57 +00:00
Daniel Naber f242e1b564 Fix for NPE (bug #35626). Fix by Hans Hjelm, test case by Scotty Allen.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219387 13f79535-47bb-0310-9956-ffa450edef68
2005-07-17 10:47:14 +00:00
Daniel Naber d6ee6c0845 maxClauseCount: deprecate public field, no more setting via system property
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219250 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 21:03:33 +00:00
Daniel Naber 71067fa4ff don't close the input stream as HTMLParser spawns a thread internally
and closing the stream leads to errors (this reverts one of my previous
changes)


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219245 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 20:45:14 +00:00
Daniel Naber d51c0dee07 higher resolution is required here so changes to files are detected
even if file dates differ by less than a minute


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219241 13f79535-47bb-0310-9956-ffa450edef68
2005-07-15 20:22:35 +00:00
Daniel Naber 28e1679191 adding a constructor that takes stopwords as a Set
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@219090 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 20:36:28 +00:00
Daniel Naber 2b9e6b6252 update for Lucene 1.9
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216241 13f79535-47bb-0310-9956-ffa450edef68
2005-07-13 21:08:05 +00:00
Daniel Naber 9ea49db638 don't allow setting of defaut values via system properties anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216236 13f79535-47bb-0310-9956-ffa450edef68
2005-07-13 20:55:53 +00:00
Daniel Naber 685b655822 make QueryParser.Operator public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216230 13f79535-47bb-0310-9956-ffa450edef68
2005-07-13 20:34:02 +00:00
Daniel Naber e3cf2c61b9 toString() implementation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@216011 13f79535-47bb-0310-9956-ffa450edef68
2005-07-12 19:49:26 +00:00
Erik Hatcher 77290bc286 Deprecate static parse method, to be removed in 2.0. It causes more trouble than it is worth
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@209185 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 02:31:08 +00:00
Erik Hatcher 6e9c0b6f45 remove unused file
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@209184 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 02:29:34 +00:00
Erik Hatcher 9d70229506 #34331 - Add Paul Elschot's Surround query language parser
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@209183 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 02:29:03 +00:00
Erik Hatcher a8ea081a4d build adjustments to allow contrib sub-projects to use JavaCC
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@209182 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 02:22:45 +00:00
Daniel Naber 5433a9d324 import statement cleanup; fix javadoc comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208905 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 10:40:01 +00:00
Daniel Naber 899c7a2bfb simplify usage of the main method: directory doesn't need to be specified explicitly anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208904 13f79535-47bb-0310-9956-ffa450edef68
2005-07-03 10:33:33 +00:00
Daniel Naber d9c75bfad0 more test cases to increase code coverage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208851 13f79535-47bb-0310-9956-ffa450edef68
2005-07-02 17:39:57 +00:00
Daniel Naber f2ac110482 clean up exception handling: there's no need to manually catch exceptions in test
cases (unless you expect the exception to be thrown)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208846 13f79535-47bb-0310-9956-ffa450edef68
2005-07-02 16:40:44 +00:00
Daniel Naber e41ced8f49 clean up exception handling: there's no need to manually catch exceptions in test
cases (unless you expect the exception to be thrown)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208807 13f79535-47bb-0310-9956-ffa450edef68
2005-07-01 22:13:53 +00:00
Daniel Naber 9c520544f9 new small test case to increase code coverage of the tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208806 13f79535-47bb-0310-9956-ffa450edef68
2005-07-01 22:07:14 +00:00
Mark Harwood 0062898ada Updated version of MemoryIndex - reliant on new Term.createTerm() method in Trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208688 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 21:40:05 +00:00
Mark Harwood fa211e79d6 added createTerm method to create Terms without incurring fieldName.intern() overhead
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208682 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 20:57:18 +00:00
Mark Harwood 7894a0c0c0 Added (simple) SpanQuery support - matches any terms declared in Spans - proper impl should check for distances
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208673 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 20:09:58 +00:00
Daniel Naber c223db7a29 small update, adding links
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@208666 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 19:26:13 +00:00
Daniel Naber 5bf11bffaf remove unused code
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202435 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 21:39:03 +00:00
Daniel Naber 096a69aec4 small cleanup, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202432 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 21:31:22 +00:00
Daniel Naber 7d60bb8214 don't print to stdout in test cases
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202414 13f79535-47bb-0310-9956-ffa450edef68
2005-06-29 19:12:55 +00:00
Daniel Naber 04b155a227 avoid NullPointerException when an analyzer returns null for some term
(bug #33848), patch inspired by John Wang

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202284 13f79535-47bb-0310-9956-ffa450edef68
2005-06-28 21:43:47 +00:00
Daniel Naber efc2367ac6 small code simplification suggested by John Wang; added deprecated tag to javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202282 13f79535-47bb-0310-9956-ffa450edef68
2005-06-28 21:18:51 +00:00
Daniel Naber 52cda0c4ef Most of Wolf Siberski's patch to fix #35241/#31841: MulitSearcher failed on WildcardQuery etc.
-this has not been committed: removal of mergeBooleanQueries(); change to BooleanQuery.equals()
-added: a test case that is commented out which shows strange queries like "multi* multi* foo" don't work properly


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@201453 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 20:43:47 +00:00
Daniel Naber 00b3e9d8a4 new method to get stop words from reader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@192991 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 20:05:13 +00:00
Daniel Naber ca5b0a3ca0 small javadoc improvements
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@192989 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 19:59:03 +00:00
Otis Gospodnetic 94d7f6e9f5 - Applied patch from src/java/org/apache/lucene/analysis/WordlistLoader.java
(reading word list from a Reader)


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@191754 13f79535-47bb-0310-9956-ffa450edef68
2005-06-22 02:31:33 +00:00
Daniel Naber 416190e29d small typo fix in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@191358 13f79535-47bb-0310-9956-ffa450edef68
2005-06-19 18:25:22 +00:00
Bernhard Messer d0324fb44e remove duplicate entry in change log.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189914 13f79535-47bb-0310-9956-ffa450edef68
2005-06-10 07:30:15 +00:00
Bernhard Messer f1a81edf7d document new index create behavior, that files will not be deleted when a new index is created in the same directory.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189798 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 19:17:23 +00:00
Bernhard Messer b51159aeda use filenames and extensions from org.apache.lucene.index.IndexFileNames
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189794 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 19:00:36 +00:00
Bernhard Messer ba8ed654fd use new filename filter in org.apache.lucene.index.IndexFileNameFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189793 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:59:10 +00:00
Bernhard Messer 20acd17c8d move extension members to new class org.apache.lucene.index.IndexFileNames
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189792 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:58:30 +00:00
Bernhard Messer 7f82450470 useful constants representing filenames and extensions used by lucene
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@189791 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 18:57:20 +00:00