1
0
mirror of https://github.com/apache/lucene.git synced 2025-03-06 08:19:23 +00:00

1806 Commits

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