/[Apache-SVN]
ViewVC logotype

Revision 149922


Jump to revision: Previous Next
Author: cutting
Date: Mon Jan 13 23:50:34 2003 UTC (21 years, 10 months ago)
Changed paths: 29
Log Message:
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.


Changed paths

Path Details
Directorylucene/java/trunk/CHANGES.txt modified , text changed , props changed
Directorylucene/java/trunk/default.properties modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/index/Term.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/ExactPhraseScorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Explanation.java added
Directorylucene/java/trunk/src/java/org/apache/lucene/search/FuzzyQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Hits.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/PhrasePrefixQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/PhraseQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/PhraseScorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Query.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/RangeQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/RemoteSearchable.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Searchable.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/SloppyPhraseScorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/TermScorer.java modified , text changed , props changed
Directorylucene/java/trunk/src/java/org/apache/lucene/search/Weight.java added
Directorylucene/java/trunk/src/java/org/apache/lucene/search/WildcardQuery.java modified , text changed , props changed
Directorylucene/java/trunk/src/test/org/apache/lucene/queryParser/TestQueryParser.java modified , text changed , props changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26