Commit Graph

426 Commits

Author SHA1 Message Date
Otis Gospodnetic 6fe013aa7d - Added a comment and cleaned up.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150099 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:31:38 +00:00
Otis Gospodnetic 6600da8d84 - Indentation cleanup.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150098 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:29:47 +00:00
Otis Gospodnetic b84e20281e - Made String COMPOUND_EXTENSIONS[] static and moved the definition higher
in the code.
- Cleaned up a bit.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150097 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:27:28 +00:00
Otis Gospodnetic 485e3c336f - Changed code to use IndexWriter.WRITE_LOCK_NAME.
- Cleaned up indentation a bit.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150096 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:25:54 +00:00
Otis Gospodnetic 9e968c9127 - Added WRITE_LOCK_NAME and COMMIT_LOCK_NAME, so that their names are not
hard-coded in half a dozen places in the code.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150095 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:22:27 +00:00
Otis Gospodnetic 59779c7455 - Added ASL and removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150094 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 14:18:04 +00:00
Christoph Goller 17af7399fd termDocs.close() moved.
Before that termDocs was used though it had already been closed!


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150090 13f79535-47bb-0310-9956-ffa450edef68
2003-10-11 13:45:51 +00:00
Erik Hatcher b118a27a86 Fix e-mail tokenization - thanks Christoph!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150088 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 12:24:11 +00:00
Erik Hatcher b67b9df567 #7782 - an ancient. this seems like the right thing to do, all relevant tests still pass
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150087 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 01:22:21 +00:00
Erik Hatcher ded5fcb7ac aesthetics cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150086 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 00:13:24 +00:00
Erik Hatcher 0e60607de8 minor javadoc fixup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150085 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 00:11:54 +00:00
Erik Hatcher 2216c0dee3 minor javadoc fixup and add question comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150084 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 00:08:52 +00:00
Erik Hatcher 9808a54319 geez, try to add docs and screw it up!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150082 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 15:40:40 +00:00
Erik Hatcher 22575e8942 Change locale handling to be in line with the other tweakable parameters
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150080 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 15:13:57 +00:00
Otis Gospodnetic eeb4099cfa - Fixed a bug when dealing with large indices
- Added Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150078 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 10:24:46 +00:00
Erik Hatcher c3bae8805b Add locale option to QueryParser, allowing date range to be dealt with a bit more flexibly.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150077 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 03:12:42 +00:00
Erik Hatcher 399ec233ff unwrap @links
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150076 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 03:05:28 +00:00
Erik Hatcher c644322f13 Add some javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150075 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 03:03:39 +00:00
Erik Hatcher 679aa50919 oops, forgot to check in JavaCC generated files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150073 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 16:39:26 +00:00
Erik Hatcher 186a1113cc #23466 - StandardTokenzier with CJK support(sigram)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150072 13f79535-47bb-0310-9956-ffa450edef68
2003-09-30 16:31:49 +00:00
Erik Hatcher 13b2aa2136 Add tests for new ParseException capability for subclasses, demonstrating a way to reject fuzzy and wildcard queries; general spacing cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150071 13f79535-47bb-0310-9956-ffa450edef68
2003-09-30 04:41:02 +00:00
Erik Hatcher 15bcd46829 Add throws clause to query factory methods, allowing subclasses to use for rejecting, etc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150070 13f79535-47bb-0310-9956-ffa450edef68
2003-09-30 04:38:36 +00:00
Erik Hatcher 99ffd3cf27 #23505 - Hani's patch to fix RussianAnalyzer test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150069 13f79535-47bb-0310-9956-ffa450edef68
2003-09-30 03:09:15 +00:00
Dmitry Serebrennikov e2559e4003 Implementation of compound files. This reduces the number of files
used by Lucene to 1 per index segment (2 when deleted documents exist).
Test cases modified and added to go with this code.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150067 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 22:01:51 +00:00
Dmitry Serebrennikov 4e84ddc3f5 Added a method used in test cases to determine if a file descriptor is
closed. Added troubleshooting code (commented out) to help diagnose
problems around openning and closing files.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150066 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 21:50:11 +00:00
Dmitry Serebrennikov 250f13e99c Make RAMDirectory's touchFile method wait long enough for the system clock
to register a new timestamp. This makes locking logic more robust.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150065 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 21:45:58 +00:00
Dmitry Serebrennikov 28ef35ee3e Submitted by: Christoph Goller via Otis
Test case to go with the IndexReader change.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150064 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 21:42:53 +00:00
Dmitry Serebrennikov 93b5e6c230 Submitted by: Christoph Goller via Dmitry
Slightly modified patch from Christoph to prohibit modifications of an
index by readers that have a stale view of it.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150063 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 21:41:51 +00:00
Erik Hatcher dd29f75e77 Added per-field analysis capabilities
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150061 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 18:54:55 +00:00
Erik Hatcher 2350513c89 add basic assertion of position increments test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150057 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 13:45:33 +00:00
Erik Hatcher bbc24bfca5 clarify comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150056 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 13:42:55 +00:00
Erik Hatcher 8958352e85 more phrase query tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150055 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 13:41:59 +00:00
Erik Hatcher be4dd1b301 Add test case for PrefixQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150054 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 22:02:52 +00:00
Erik Hatcher c31601d073 streamlining test case a bit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150053 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 21:12:41 +00:00
Erik Hatcher 1e5eccf552 test case cleanup - no need to catch unexpected exceptions in test cases, let it fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150052 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 20:29:34 +00:00
Erik Hatcher 8ad878e900 detabify for readability
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150050 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 17:42:40 +00:00
Erik Hatcher 9d46cda9e5 fix javadoc warning. exclamation point caused warning - maybe another fix to this, but this will will work for now
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150049 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 14:06:47 +00:00
Erik Hatcher 90534ff460 fix typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150048 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 14:03:54 +00:00
Erik Hatcher e68cad284e fix url to JavaCC
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150047 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 14:02:06 +00:00
Erik Hatcher 899c3b1ec3 add back javadoc needed import.... darn IDEA!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150041 13f79535-47bb-0310-9956-ffa450edef68
2003-09-18 09:26:06 +00:00
Erik Hatcher ed585a814d Fix typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150039 13f79535-47bb-0310-9956-ffa450edef68
2003-09-17 08:38:04 +00:00
Erik Hatcher f504aba39b oops... IDEA lied to me - adding back import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150038 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 21:00:26 +00:00
Erik Hatcher f4107e810e butter fingers... renaming test case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150037 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 20:56:12 +00:00
Erik Hatcher a2f5f1c11d Implementation of a caching filter wrapper, complete with a test - stil some @todos to consider
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150036 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 20:52:38 +00:00
Erik Hatcher 063c173eba implements Searchable is redundant, as Searcher implements it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150035 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 20:06:32 +00:00
Erik Hatcher fecc0d27af remove unused import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150034 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 20:03:41 +00:00
Otis Gospodnetic 2357f0c106 - Fixed bug 20290
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20290
- Added @version.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150033 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 12:52:10 +00:00
Otis Gospodnetic 2310d71e07 - Added @version.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150032 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 12:50:31 +00:00
Otis Gospodnetic 355e66eb34 - Added testQueryFilter test for bug 20290
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20290
- Made search(Query) private.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150031 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 12:49:30 +00:00
Erik Hatcher bdcea5f2ed Test for PhraseQuery to show that order does not matter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150030 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 11:49:58 +00:00
Erik Hatcher 103a6e1334 Added ASL
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150029 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 11:44:18 +00:00
Otis Gospodnetic e73f0e28c3 - Fixed docCount() with a patch provided by Christoph Goller.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150028 13f79535-47bb-0310-9956-ffa450edef68
2003-09-15 12:40:23 +00:00
Otis Gospodnetic 7466b3b55a - Added testDeleteReaderWriterConflict() and testDeleteReaderReaderConflict()
methods, provided by Christoph Goller.
- Moved the license ahead of imports, to match other sources.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150027 13f79535-47bb-0310-9956-ffa450edef68
2003-09-15 12:37:49 +00:00
Otis Gospodnetic 045c15c808 - Applied a patch from Christoph Goller.
- Unified a mix of 2 and 4-space indentations.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150026 13f79535-47bb-0310-9956-ffa450edef68
2003-09-15 12:33:07 +00:00
Erik Hatcher 165ee0d2c0 correct spelling mistake, removed unused import, fixed two javadoc @param mismatches
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150024 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 23:44:48 +00:00
Erik Hatcher e676d0f3d4 Elements of Java Style #1: Adhere to the style of the original. I wholeheartedly agree. Reverting my previous infraction of this rule
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150023 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 23:40:29 +00:00
Erik Hatcher 0b53524a11 Reformatted. Do we have any style guides special to Lucene different than Jakarta standards?
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150022 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 10:46:25 +00:00
Erik Hatcher 8b2bd68e84 Reformatted and added inclusive notes to contructors/factories
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150021 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 10:44:24 +00:00
Otis Gospodnetic 2e082f2f00 - Added insert(Object) method to PriorityQueue class.
Submitted by: Christoph Goller
Reviewed by: Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150020 13f79535-47bb-0310-9956-ffa450edef68
2003-09-11 12:15:30 +00:00
Otis Gospodnetic 6ecbab80ed - Small distance matrix initialization change.
Submitted by: Christoph Goller
Reviewed by: Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150018 13f79535-47bb-0310-9956-ffa450edef68
2003-09-11 10:02:26 +00:00
Erik Hatcher 2af2d85877 PR 19468, but not exactly as it was done in the provided patches. JavaCC is no longer required to build Lucene, but can be run optionally
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150017 13f79535-47bb-0310-9956-ffa450edef68
2003-09-11 01:51:33 +00:00
Erik Hatcher 798fc0f0ef reformat spacing
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150016 13f79535-47bb-0310-9956-ffa450edef68
2003-09-11 01:25:47 +00:00
Otis Gospodnetic 577bfab58f - A patch that eliminates the confusing and slightly different behaviour of
TermEnum when dealing with an enumeration of all terms versus an enumeration
  starting from a specific term.
  This patch also fixes incorrect term document frequences when the same term
  is present in multiple segments.
Submitted by: Christoph Goller
Reviewed by: Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150014 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 14:27:37 +00:00
Otis Gospodnetic ad3cd36736 - Initial checkin.
Converted to JUnit-based unit test from Christoph Goller's test class.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150013 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 14:23:58 +00:00
Otis Gospodnetic 3527232b78 - Initial checkin.
Converted to JUnit-based unit test from Christoph Goller's test class.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150012 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 12:58:37 +00:00
Otis Gospodnetic 8c69111508 - Fixed a bug in case of non-inclusive RangeQuery.
Submitted by Christoph Goller.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150011 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 12:24:05 +00:00
Otis Gospodnetic 4433f0343a - Initial checkin.
Submitted by Christoph Goller.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150010 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 12:22:26 +00:00
Otis Gospodnetic d59ac9481e - Minor javadoc improvement, but primarily reindented weird indentation and
replaces tabs with four spaces.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150009 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 10:04:47 +00:00
Scott Ganyo b22cd77890 added ability to wait on any Lock. changed write.lock wait to 1 sec from none.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150005 13f79535-47bb-0310-9956-ffa450edef68
2003-08-12 15:05:03 +00:00
Erik Hatcher 7eb95be705 Low-level InputStream test w/mock
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150003 13f79535-47bb-0310-9956-ffa450edef68
2003-08-12 10:41:56 +00:00
Erik Hatcher a89de10f25 #22344 - changed enum to enumerator
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150001 13f79535-47bb-0310-9956-ffa450edef68
2003-08-12 09:22:23 +00:00
Doug Cutting 47dfbc2b6a Added method IndexWriter.addDocument(Document, Analyzer).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149999 13f79535-47bb-0310-9956-ffa450edef68
2003-07-11 22:13:13 +00:00
Otis Gospodnetic b2c7697eb2 - Documented HitCollector a bit better.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149995 13f79535-47bb-0310-9956-ffa450edef68
2003-06-05 05:44:41 +00:00
Doug Cutting b39cecc585 Added a limit to the number of clauses which may be added to a
BooleanQuery.  The default limit is 1024 clauses.  This should stop
most OutOfMemoryExceptions by prefix, wildcard and fuzzy queries which
run amok.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149992 13f79535-47bb-0310-9956-ffa450edef68
2003-05-29 21:52:15 +00:00
Doug Cutting 1b36a9ddcc Fix so that lock files created in /tmp are removed when a directory is
re-created.  This way attempts to create a new index after a crashed
indexing run no longer have to manually remove lock files from /tmp.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149991 13f79535-47bb-0310-9956-ffa450edef68
2003-05-29 20:18:18 +00:00
Otis Gospodnetic 956b3c988a - Javadoc improvement.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149990 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:24:26 +00:00
Otis Gospodnetic 3b711ddb22 - Fix that allows people using JDK 1.3 to compile this class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149984 13f79535-47bb-0310-9956-ffa450edef68
2003-05-04 21:13:49 +00:00
Doug Cutting 1c8db6cfd0 Put lock files in /tmp instead of with the index.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149983 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 19:50:18 +00:00
Otis Gospodnetic 7d50426c4c - Added tests for getFieldNames(boolean) method in IndexReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149982 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 01:12:10 +00:00
Otis Gospodnetic 49db32469f - Added method getFieldNames(boolean).
Submitted by:	Julien Nioche
Reviewed by:	Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149981 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 01:09:15 +00:00
Otis Gospodnetic f980ec23e5 - Fixed a bug that allowed queries to retrieve extra matches.
- Fixed indentation that was all messed up, and some spelling mistakes.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149980 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 00:40:41 +00:00
Otis Gospodnetic f2099419e3 - Modified RangeQuery's toString() method to return a String that matches the syntax used in QueryParser.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149979 13f79535-47bb-0310-9956-ffa450edef68
2003-04-29 01:34:00 +00:00
Otis Gospodnetic d40c5493a6 - Cosmetics and Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149974 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 04:22:38 +00:00
Otis Gospodnetic 0f61096562 - Enhanced Javadocs: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18833
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149971 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 02:27:36 +00:00
Doug Cutting 33c22d2f5a Fix imports so that javadoc runs without complaint.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149967 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 18:28:13 +00:00
Otis Gospodnetic 395b5c52d9 - Fix to support JDK 1.2 and 1.3.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149965 13f79535-47bb-0310-9956-ffa450edef68
2003-03-19 03:20:53 +00:00
Otis Gospodnetic ef7ff202fe - Added a missing RuntimeException throw.
- s/\t/  /g


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149959 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 20:58:25 +00:00
Otis Gospodnetic 24fa693cff - Added code to throw RuntimeException when output stream cannot be closed.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149958 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 20:46:50 +00:00
Otis Gospodnetic 470b5720e4 - Added tests for the new QueryParser changes.
Contributed by: Tatu Saloranta.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149956 13f79535-47bb-0310-9956-ffa450edef68
2003-03-02 02:47:01 +00:00
Otis Gospodnetic a3e2205e77 - Made a few private method protected, gave authors credit, moved all
instance/class variables to the top, corrected grammar, made code style
  more uniform.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149955 13f79535-47bb-0310-9956-ffa450edef68
2003-03-02 02:41:44 +00:00
Otis Gospodnetic 05a2ea983c - Added set/getLowercaseWildcardTerms methods and a few ger*Query methods
that make it easier to extend QueryParser.
Contributed by: Tatu Saloranta


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149954 13f79535-47bb-0310-9956-ffa450edef68
2003-03-02 01:36:38 +00:00
Otis Gospodnetic 88408e014b - Added a manual renaming of files in case the java.io.File's renameTo(File)
call fails.  It has been reported that this happens on Windows JVMs.
Contributed by: Matt Tucker


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149951 13f79535-47bb-0310-9956-ffa450edef68
2003-03-01 17:38:24 +00:00
Otis Gospodnetic b328dc9403 - Refactored and added 2 more tests.
Contributed by: Tatu Saloranta


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149950 13f79535-47bb-0310-9956-ffa450edef68
2003-03-01 17:32:21 +00:00
Otis Gospodnetic b72da81260 - Indentation (4 -> 2, to fit the rest).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149949 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 08:51:33 +00:00
Otis Gospodnetic 9699a29da4 - Made byte[] bits array private.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149948 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 07:02:10 +00:00
Otis Gospodnetic 241b2d6a85 - Modified to use localized date strings.
Submitted by: Christoph Kiehl
Reviewed by: Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149946 13f79535-47bb-0310-9956-ffa450edef68
2003-02-15 20:16:07 +00:00
Doug Cutting 7248b18b1d Fixed a bug with prohibited clauses.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149945 13f79535-47bb-0310-9956-ffa450edef68
2003-02-07 18:45:16 +00:00
Otis Gospodnetic 552bfaf4b1 - Cleaned up unused or duplicate imports.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149943 13f79535-47bb-0310-9956-ffa450edef68
2003-01-29 17:43:13 +00:00
Otis Gospodnetic 201b56a2c4 - Removed unused or duplicate imports.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149942 13f79535-47bb-0310-9956-ffa450edef68
2003-01-29 17:18:55 +00:00
Otis Gospodnetic b13e0488cb - Small efficiency improvement.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149939 13f79535-47bb-0310-9956-ffa450edef68
2003-01-26 03:34:28 +00:00
Doug Cutting 31ec31b325 Fixed a bug in floatToByte().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149938 13f79535-47bb-0310-9956-ffa450edef68
2003-01-24 18:33:27 +00:00
Otis Gospodnetic 51585c68da - Cosmetics.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149936 13f79535-47bb-0310-9956-ffa450edef68
2003-01-23 02:03:55 +00:00
Otis Gospodnetic c694d44442 - NPE fix.
PR: bug #16043
Submitted by: Peter Mularien


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149935 13f79535-47bb-0310-9956-ffa450edef68
2003-01-23 01:28:48 +00:00
Doug Cutting d1fec6e830 Optimized last fix so that the BooleanQuery is only cloned when one of its clauses has rewritten.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149934 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 19:01:31 +00:00
Doug Cutting 637b10da6c Fixed a bug when rewritten queries were included in a BooleanQuery.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149933 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 18:40:19 +00:00
Doug Cutting 4642f95eb9 Revised explanation format so that it better corresponds to a dot product of tf*idf weights.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149931 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 19:25:04 +00:00
Otis Gospodnetic 77eb6fb06b - Fix to support pre-1.4 JDKs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149930 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 15:41:52 +00:00
Doug Cutting a793838548 Fixed a bug where boosting was lost.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149928 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 21:57:30 +00:00
Doug Cutting a2042c190b Fixed a bug with explain().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149927 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 19:20:30 +00:00
Otis Gospodnetic 5b910b44b3 Added convenience RAMDirectory constructors taking File and String
arguments, for easy FSDirectory to RAMDirectory conversion.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149925 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 03:41:05 +00:00
Otis Gospodnetic a7486068de - Removed erroneous semicolon.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149924 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 00:22:09 +00:00
Doug Cutting bdc8da1823 Fixed minor problems with previous checkin.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149923 13f79535-47bb-0310-9956-ffa450edef68
2003-01-14 00:04:37 +00:00
Doug Cutting 169fac073f Revised internal search APIs. Changes include:
a. Queries are no longer modified during a search.  This makes
  it possible, e.g., to reuse the same query instance with
  multiple indexes from multiple threads.

  b. Term-expanding queries (e.g. PrefixQuery, WildcardQuery,
  etc.)  now work correctly with MultiSearcher, fixing bugs 12619
  and 12667.

  c. Boosting BooleanQuery's now works, and is supported by the
  query parser (problem reported by Lee Mallabone).  Thus a query
  like "(+foo +bar)^2 +baz" is now supported and equivalent to
  "(+foo^2 +bar^2) +baz".

  d. New method: Query.rewrite(IndexReader).  This permits a
  query to re-write itself as an alternate, more primitive query.
  Most of the term-expanding query classes (PrefixQuery,
  WildcardQuery, etc.) are now implemented using this method.

  e. New method: Searchable.explain(Query q, int doc).  This
  returns an Explanation instance that describes how a particular
  document is scored against a query.  An explanation can be
  displayed as either plain text, with the toString() method, or
  as HTML, with the toHtml() method.  Note that computing an
  explanation is as expensive as executing the query over the
  entire index.  This is intended to be used in developing
  Similarity implementations, and, for good performance, should
  not be displayed with every hit.

  f. Scorer and Weight are public, not package protected.  It now
  possible for someone to write a Scorer implementation that is
  not in the org.apache.lucene.search package.  This is still
  fairly advanced programming, and I don't expect anyone to do
  this anytime soon, but at least now it is possible.

Caution: These are extensive changes and they have not yet been
tested extensively.  Bug reports are appreciated.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149922 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 23:50:34 +00:00
Otis Gospodnetic 233c5c329a - Removed unused variables.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149921 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 01:51:18 +00:00
Otis Gospodnetic c8a221d1e1 - Updated Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149919 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 16:09:03 +00:00
Otis Gospodnetic d9a164b6b2 - Formatting.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149918 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 04:49:20 +00:00
Otis Gospodnetic 956ef388fc - Unit tests for org.apache.lucene.document.Document class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149917 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 02:30:52 +00:00
Otis Gospodnetic 13bcec39d6 - Added getFields and getValues methods.
Contributed by Rasik Pandey on 2002-10-09.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149916 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 02:29:21 +00:00
Otis Gospodnetic ca1240bec6 - Fix for bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12723
PR: 12723
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149915 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 18:06:19 +00:00
Otis Gospodnetic 117172e11d - Applied patches from http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14900
All unit tests still pass.
PR:            14900
Obtained from:
Submitted by:  Peter Mularien
Reviewed by:   Otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149910 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 17:13:40 +00:00
Otis Gospodnetic 2d2a191b87 - Reverted to revision 1.2 ... this matches the comments in the code anyway :).
Should fix bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14485


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149909 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 16:41:36 +00:00
Otis Gospodnetic 0b346b0639 - Import stmt, @version + CVS Id tag.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149908 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 16:38:39 +00:00
Otis Gospodnetic bf5028d9ac - Added author's email address upon his request.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149902 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 05:10:11 +00:00
Doug Cutting 3457e879bd Minor cleanups: added constructors for TokenStream & TokenFilter, made some methods non-final.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149901 13f79535-47bb-0310-9956-ffa450edef68
2002-12-09 19:02:21 +00:00
Doug Cutting 0d9b89865c Fixed to not create files in home directory.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149896 13f79535-47bb-0310-9956-ffa450edef68
2002-11-26 17:31:43 +00:00
Doug Cutting 57cdbe4187 Added subDoc() method, renamed searcherIndex() to subSearcher().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149895 13f79535-47bb-0310-9956-ffa450edef68
2002-11-25 20:50:15 +00:00
Otis Gospodnetic 686bdde10b - Removed some jikes' warnings.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149894 13f79535-47bb-0310-9956-ffa450edef68
2002-11-19 23:25:46 +00:00
Peter Carlson 0066cc0f7f Fixed bug where Hits.id() returned a Float instead of an int
Bug found by Terry Steichen


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149892 13f79535-47bb-0310-9956-ffa450edef68
2002-11-15 16:07:12 +00:00
Otis Gospodnetic c769f13a2c - Corrected the exception message.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149891 13f79535-47bb-0310-9956-ffa450edef68
2002-11-10 23:35:55 +00:00
Doug Cutting 6772e7567d Added a public, extensible scoring API.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149885 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 17:31:27 +00:00
Otis Gospodnetic 98330b5030 - Removed compiler warnings (jikes 1.17). Style stuff only.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149884 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:55:40 +00:00
Otis Gospodnetic d0a577e1bd - This is not a unit test class, so it should not be here.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149883 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:54:56 +00:00
Otis Gospodnetic 748fdb1b96 - BitVector unit tests.
Submitted by:	Peter Mularien <pmularien@deploy.com>


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149882 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 05:17:16 +00:00
Otis Gospodnetic 7cfc8520ac - Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149881 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:55:02 +00:00
Otis Gospodnetic 9f8e2c5e26 - Changed javadoc to reflect the purpose of the unit test better.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149868 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:02:43 +00:00
Otis Gospodnetic d63506547f - Removed, since nobody was using this manifest file.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149867 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 16:09:33 +00:00
Doug Cutting 933bac2435 Patched to fix a bug when empty indexes or segments exist.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149859 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 17:25:13 +00:00
Otis Gospodnetic 474d9de985 - Reverted back to the previous revision (1.1).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149858 13f79535-47bb-0310-9956-ffa450edef68
2002-09-20 02:21:31 +00:00
Otis Gospodnetic 6618518998 - Fixed last night's mistakes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149856 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 12:35:43 +00:00
Otis Gospodnetic 618882b4d4 - Minor stuff.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149854 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 06:10:23 +00:00
Otis Gospodnetic 0b2bd2cd3d - Compilation error fix.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149853 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:51:04 +00:00
Otis Gospodnetic 4840a8422b - Added javadoc skeleton, nuked trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149852 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:31:05 +00:00
Otis Gospodnetic 65b2aab4f0 - MultiSearcher unit tests. Initial checkin.
The test is failing, exposing a potential bug.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149851 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 05:14:44 +00:00
Otis Gospodnetic 7e8ab54e09 - Fixed the @author tag.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149849 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 04:17:14 +00:00
Otis Gospodnetic 846da57000 - Added FIXME/TODO tags about things to document.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149848 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 02:11:42 +00:00
Otis Gospodnetic ca982c77db - Removed the main method, which was causing compilation errors with JUnit 3.8.1.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149846 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 20:05:52 +00:00
Otis Gospodnetic fce9b6fe3a - Russian Analyzer unit tests and unit test data.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149841 13f79535-47bb-0310-9956-ffa450edef68
2002-09-16 03:19:19 +00:00
Otis Gospodnetic e63750554f - Russian Analyzer, by Boris Okner. Initial checkin.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149840 13f79535-47bb-0310-9956-ffa450edef68
2002-09-16 02:51:58 +00:00
Doug Cutting f65bc68dfc Fixed bug 12273
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149836 13f79535-47bb-0310-9956-ffa450edef68
2002-09-03 21:13:32 +00:00
Otis Gospodnetic 63f7272924 - Fixed some funky indentation that I found while testing the contributed
Portuguese stemmer.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149835 13f79535-47bb-0310-9956-ffa450edef68
2002-08-18 17:33:16 +00:00
Doug Cutting bbbc192097 Fixed a bug serializing BooleanQuery and added test code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149834 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 23:44:00 +00:00
Doug Cutting 689293d13b Fixed a bug in IndexReader.lastModified().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149833 13f79535-47bb-0310-9956-ffa450edef68
2002-08-08 17:56:19 +00:00
Doug Cutting 5dbea95485 Added getAnalyzer() accessor method.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149832 13f79535-47bb-0310-9956-ffa450edef68
2002-08-07 16:28:08 +00:00
Doug Cutting 06d359828b Added QueryFilter class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149831 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 18:05:56 +00:00
Doug Cutting 91512d5dde Improved documentation.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149830 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 17:39:03 +00:00
Doug Cutting efb2e12705 Added support for Token.setPositionIncrement(int).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149829 13f79535-47bb-0310-9956-ffa450edef68
2002-08-05 17:15:00 +00:00
Doug Cutting 5fbe9f8179 Improved javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149828 13f79535-47bb-0310-9956-ffa450edef68
2002-07-31 17:47:14 +00:00
Doug Cutting 6e202b2be1 msg.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149827 13f79535-47bb-0310-9956-ffa450edef68
2002-07-29 19:11:15 +00:00
gschwarz 419359a057 Changed the stemming algorithm to ignore case while stripping. The algorithm is faster and produces more equal stems from nouns and verbs derived from the same word. That fixes the problem finding substantives when the searchterm is provided in lowercase. Now the stemming results are almost case insensitive. Changed the checking of legal terms to only reject terms that contain non letters, which solves problems with terms that contain irregular cased letters. Removal of pertical denotion now produces less overstemming errors. Code is rearranged a bit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149824 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 23:16:09 +00:00
gschwarz aedf9e1ccf The class itself and tokenStream() are not longer final. tokenStream() now works without LowerCaseFilter.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149823 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 23:00:37 +00:00
Otis Gospodnetic 6b58d41083 - Minor modification, no functionality changes.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149822 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:41:39 +00:00
Otis Gospodnetic 15bbd8def8 - Classes that provide support for queries such as "microsoft app*".
PR:
Obtained from:
Submitted by:	Anders Nielsen
Reviewed by:	otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149820 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:39:58 +00:00
Otis Gospodnetic d06a16f630 - Fixed the typo in the setOperator argument name which was causing unit
tests to fail.  Peter spotted it, thanks Peter.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149819 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:18:42 +00:00
Otis Gospodnetic 0221ec480b - Added tests for QueryParser's setOperator functionality.
All tests pass at this point.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149818 13f79535-47bb-0310-9956-ffa450edef68
2002-07-18 14:17:41 +00:00
Doug Cutting 22f068248d Renamed a new class and updated some javadoc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149815 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 22:11:34 +00:00
Doug Cutting 28eb95821f Added support for remote searching via RMI.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149814 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 21:54:38 +00:00
Doug Cutting 53f0f3b4fb Made many methods and classes non-final, per requests. This includes
IndexWriter and IndexSearcher, among others.

Moved search implementation methods into a new public interface,
Searchable.  This makes it easier to implement a remote searcher.

Fixed some javadoc comments.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149813 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 17:38:04 +00:00
Otis Gospodnetic 08c38ffbc4 - Cleaned up the indentation to make it more consistent.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149807 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:51:53 +00:00
Otis Gospodnetic 6f3df5f59f - Added an explicit call to QueryParser to set the boolean operator to OR.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149806 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:22:36 +00:00
Otis Gospodnetic 4f9dc49cfb - Renamed a few recently added variables and methods for consistency.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149805 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:21:57 +00:00
Otis Gospodnetic ea4c15138e - Added P�ter Hal�csy's changes that allow setting of default boolean
operator.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149804 13f79535-47bb-0310-9956-ffa450edef68
2002-07-14 17:16:21 +00:00
Otis Gospodnetic 50d6da8ab9 - Fixed a link in toString(String) method's javadoc; added links to class
javadoc; reformatted a bit.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149795 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 15:16:55 +00:00
Otis Gospodnetic 6f4c2690c9 - Improved HTML parser that allows one to get HTML document's meta tags' values.
PR:
Obtained from:
Submitted by:	Mark Harwood
Reviewed by:	otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149792 13f79535-47bb-0310-9956-ffa450edef68
2002-06-29 22:08:26 +00:00
Otis Gospodnetic 92ade30794 - Changed the 'disableLocks' system property name to 'disableLuceneLocks'.
- Fixed my own misspelling from the previous commit.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149788 13f79535-47bb-0310-9956-ffa450edef68
2002-06-26 17:30:11 +00:00
Otis Gospodnetic ad73dd681f - Made a small method javadoc change.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149787 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 16:18:32 +00:00
Otis Gospodnetic 43f5e32b7e - Reduced the number of condition checks for disabling locks.
- Documented the use of 'disableLocks' system property in class Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149786 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 16:09:15 +00:00
Brian Goetz 8ab0396cfc Support for new range query syntax. The delimiter is " TO ", but is optional
for backward compatibility with previous syntax.  If the range arguments
match the format supported by DateFormat.getDateInstance(DateFormat.SHORT),
then they will be converted into the appropriate date strings a la DateField.

Added Field.Keyword "constructor" for Date-valued arguments.

Optimized DateField.timeToString function.

PR:
Obtained from:
Submitted by:	Brian Goetz
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149785 13f79535-47bb-0310-9956-ffa450edef68
2002-06-25 00:05:31 +00:00
Otis Gospodnetic 4cee88c438 - Added the ability to disable creation of locks on the file system, in order
to allow Lucene to be used on read-only media.
  To disable lock creation set 'disableLocks' system property to 'true'.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149782 13f79535-47bb-0310-9956-ffa450edef68
2002-06-21 14:57:46 +00:00
Peter Carlson 19a3915b3c Added accessor method to get HitDoc global id from Hits.
This id needs to be used in sorting.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149781 13f79535-47bb-0310-9956-ffa450edef68
2002-06-20 14:32:08 +00:00
Otis Gospodnetic 4f2e3c4f3f - Added Javadoc for the class and two methods explaining issue with dates
prior to 1.1.1970.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149774 13f79535-47bb-0310-9956-ffa450edef68
2002-06-09 20:47:22 +00:00
Otis Gospodnetic bd8c341d87 - Fixed class Javadoc (spelling, missing words), reformatted a bit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149770 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 17:12:59 +00:00
Otis Gospodnetic 8bcc042f5a - Changed the grammar for EMAIL token in order to match user names and
host names with additional valid user name and host name characters, such
  as '.", '-', and '_'.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149769 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 04:54:47 +00:00
Otis Gospodnetic a6d7df46a4 - Added testClear() test. It doesn't really test much, but since I already
typed it in I'm leaving it.
- Reformatted/reindented the code and nuked trailing spaces.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149768 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 01:50:54 +00:00
Otis Gospodnetic a7bd647dd6 - Fixed clear() method that wasn't setting the very last heap element to null,
as reported at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9454.
PR: 9454
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149767 13f79535-47bb-0310-9956-ffa450edef68
2002-06-05 01:46:39 +00:00
Peter Carlson 3f512e96e5 Changed QueryParser.jj to have "?" be a special character which allowed it to be used as a wildcard term. Updated TestWildcard unit test also. (Ralf Hettesheimer via carlson)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149758 13f79535-47bb-0310-9956-ffa450edef68
2002-05-20 15:45:43 +00:00
Otis Gospodnetic 5f795440d4 - Cosmetics.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149754 13f79535-47bb-0310-9956-ffa450edef68
2002-05-15 15:51:04 +00:00
Peter Carlson b70d10da84 Fixed the TestQuestionMark by changing the TermQuery to WildcarQuery for the first test. Now succeeds without failure.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149745 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 14:38:22 +00:00
Otis Gospodnetic 04292ff887 - Fixed a bug in the test itself, caught by Doug.
Duh, correct comment, but contradicting code.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149744 13f79535-47bb-0310-9956-ffa450edef68
2002-05-08 20:16:54 +00:00
Peter Carlson 7ac655d83a Changed TestDateFilter from date field being a Text field to being a Keyword field. Found by Doug.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149743 13f79535-47bb-0310-9956-ffa450edef68
2002-05-08 19:48:04 +00:00
Otis Gospodnetic 7cb408e964 - Applied a patch supplied by David Smiley that ensures that searches that
use DateFilter don't throw an exception when no matches are found.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149741 13f79535-47bb-0310-9956-ffa450edef68
2002-05-07 21:26:34 +00:00
Brian Goetz 2a96b329a8 Add escape character to query parser (backslash); add unit test for escape character; wrap TokenMgrError with ParseException in QueryParser.parse
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149736 13f79535-47bb-0310-9956-ffa450edef68
2002-05-06 21:59:44 +00:00
Otis Gospodnetic a90504d2b6 - A patch to FieldInfos.java that Doug Cutting suggested at:
http://marc.theaimsgroup.com/?l=lucene-user&m=100253044509125&w=2
  This allows co-existence of indexed and non-indexed fields with the same name.
PR:
Obtained from:
Submitted by:	Guido Casper
Reviewed by:	otis


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149730 13f79535-47bb-0310-9956-ffa450edef68
2002-04-30 15:08:10 +00:00
Otis Gospodnetic 8c70a95b15 - Added tests for DateFilter.After method.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149728 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 20:29:19 +00:00
Otis Gospodnetic 4207787649 - DateFilter JUnit tests. Initial checkin.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149727 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 20:15:25 +00:00
Otis Gospodnetic 1af480b290 - Added Apache license.
- Corrected Javadoc wording a bit.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149726 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 19:09:36 +00:00
Otis Gospodnetic 197858c0d4 - Applied a patch that fixes bug #7412.
- Added Apache License.
PR:
Obtained from:
Submitted by:	Rodrigo Reyes
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149725 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 19:08:32 +00:00
Otis Gospodnetic a0c986fdf1 - Wildcard JUnit unit tests. Initial checkin.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149724 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 18:53:35 +00:00
Otis Gospodnetic e5f6cb9bd3 - Fixed incorrect HREFs.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149723 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 04:52:03 +00:00
Otis Gospodnetic 2122be3e73 - Fixed a spelling error and re-formatted the Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149722 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 20:04:28 +00:00
Otis Gospodnetic c4a52eee84 - A fix for bug # 7710:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7710
PR:
Obtained from:
Submitted by:	Lee Mallabone
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149721 13f79535-47bb-0310-9956-ffa450edef68
2002-04-10 04:05:38 +00:00