diff --git a/lucene/core/src/java/org/apache/lucene/analysis/package.html b/lucene/core/src/java/org/apache/lucene/analysis/package.html index 342e99dfa36..0ac07e6ef32 100644 --- a/lucene/core/src/java/org/apache/lucene/analysis/package.html +++ b/lucene/core/src/java/org/apache/lucene/analysis/package.html @@ -149,7 +149,7 @@ and proximity searches (though sentence identification is not provided by Lucene {@link org.apache.lucene.document.Field}s.
  • - The modules/analysis library located at the root of the Lucene distribution has a number of different Analyzer implementations to solve a variety + The analysis library located at the root of the Lucene distribution has a number of different Analyzer implementations to solve a variety of different problems related to searching. Many of the Analyzers are designed to analyze non-English languages.
  • @@ -158,7 +158,7 @@ and proximity searches (though sentence identification is not provided by Lucene

    Analysis is one of the main causes of performance degradation during indexing. Simply put, the more you analyze the slower the indexing (in most cases). - Perhaps your application would be just fine using the simple WhitespaceTokenizer combined with a StopFilter. The contrib/benchmark library can be useful + Perhaps your application would be just fine using the simple WhitespaceTokenizer combined with a StopFilter. The benchmark/ library can be useful for testing out the speed of the analysis process.

    Invoking the Analyzer

    diff --git a/lucene/core/src/java/org/apache/lucene/document/package.html b/lucene/core/src/java/org/apache/lucene/document/package.html index 31894ca6db2..71508a438a6 100644 --- a/lucene/core/src/java/org/apache/lucene/document/package.html +++ b/lucene/core/src/java/org/apache/lucene/document/package.html @@ -36,9 +36,7 @@ package also provides utilities for working with {@link org.apache.lucene.docume

    First and foremost, a {@link org.apache.lucene.document.Document} is something created by the user application. It is your job to create Documents based on the content of the files you are working with in your application (Word, txt, PDF, Excel or any other format.) How this is done is completely up to you. That being said, there are many tools available in other projects that can make - the process of taking a file and converting it into a Lucene {@link org.apache.lucene.document.Document}. To see an example of this, - take a look at the Lucene demo and the associated source code - for extracting content from HTML. + the process of taking a file and converting it into a Lucene {@link org.apache.lucene.document.Document}.

    The {@link org.apache.lucene.document.DateTools} is a utility class to make dates and times searchable (remember, Lucene only searches text). {@link org.apache.lucene.document.IntField}, {@link org.apache.lucene.document.LongField}, diff --git a/lucene/core/src/java/org/apache/lucene/index/package.html b/lucene/core/src/java/org/apache/lucene/index/package.html index 1ef714e72e7..9cdef6312fa 100644 --- a/lucene/core/src/java/org/apache/lucene/index/package.html +++ b/lucene/core/src/java/org/apache/lucene/index/package.html @@ -21,5 +21,6 @@ Code to maintain and access indices. + diff --git a/lucene/core/src/java/org/apache/lucene/search/package.html b/lucene/core/src/java/org/apache/lucene/search/package.html index 7fedd034952..78c1bd719b7 100644 --- a/lucene/core/src/java/org/apache/lucene/search/package.html +++ b/lucene/core/src/java/org/apache/lucene/search/package.html @@ -40,164 +40,171 @@ org.apache.lucene.search.IndexSearcher#search(Query,int)} or {@link org.apache.lucene.search.IndexSearcher#search(Query,Filter,int)}. +

    Query Classes

    - TermQuery + {@link org.apache.lucene.search.TermQuery TermQuery}

    Of the various implementations of - Query, the - TermQuery - is the easiest to understand and the most often used in applications. A TermQuery matches all the documents that contain the + {@link org.apache.lucene.search.Query Query}, the + {@link org.apache.lucene.search.TermQuery TermQuery} + is the easiest to understand and the most often used in applications. A + {@link org.apache.lucene.search.TermQuery TermQuery} matches all the documents that contain the specified - Term, + {@link org.apache.lucene.index.Term Term}, which is a word that occurs in a certain - Field. - Thus, a TermQuery identifies and scores all - Documents that have a Field with the specified string in it. - Constructing a TermQuery + {@link org.apache.lucene.document.Field Field}. + Thus, a {@link org.apache.lucene.search.TermQuery TermQuery} identifies and scores all + {@link org.apache.lucene.document.Document Document}s that have a + {@link org.apache.lucene.document.Field Field} with the specified string in it. + Constructing a {@link org.apache.lucene.search.TermQuery TermQuery} is as simple as:

             TermQuery tq = new TermQuery(new Term("fieldName", "term"));
    -    
    In this example, the Query identifies all Documents that have the Field named "fieldName" + In this example, the {@link org.apache.lucene.search.Query Query} identifies all + {@link org.apache.lucene.document.Document Document}s that have the + {@link org.apache.lucene.document.Field Field} named "fieldName" containing the word "term".

    - BooleanQuery + {@link org.apache.lucene.search.BooleanQuery BooleanQuery}

    Things start to get interesting when one combines multiple - TermQuery instances into a BooleanQuery. - A BooleanQuery contains multiple - BooleanClauses, - where each clause contains a sub-query (Query - instance) and an operator (from BooleanClause.Occur) + {@link org.apache.lucene.search.TermQuery TermQuery} instances into a + {@link org.apache.lucene.search.BooleanQuery BooleanQuery}. + A {@link org.apache.lucene.search.BooleanQuery BooleanQuery} contains multiple + {@link org.apache.lucene.search.BooleanClause BooleanClause}s, + where each clause contains a sub-query ({@link org.apache.lucene.search.Query Query} + instance) and an operator (from + {@link org.apache.lucene.search.BooleanClause.Occur BooleanClause.Occur}) describing how that sub-query is combined with the other clauses:

      -
    1. SHOULD — Use this operator when a clause can occur in the result set, but is not required. +

    2. {@link org.apache.lucene.search.BooleanClause.Occur#SHOULD SHOULD} — Use this operator when a clause can occur in the result set, but is not required. If a query is made up of all SHOULD clauses, then every document in the result set matches at least one of these clauses.

    3. -
    4. MUST — Use this operator when a clause is required to occur in the result set. Every +

    5. {@link org.apache.lucene.search.BooleanClause.Occur#MUST MUST} — Use this operator when a clause is required to occur in the result set. Every document in the result set will match all such clauses.

    6. -
    7. MUST NOT — Use this operator when a +

    8. {@link org.apache.lucene.search.BooleanClause.Occur#MUST_NOT MUST NOT} — Use this operator when a clause must not occur in the result set. No document in the result set will match any such clauses.

    Boolean queries are constructed by adding two or more - BooleanClause - instances. If too many clauses are added, a TooManyClauses + {@link org.apache.lucene.search.BooleanClause BooleanClause} + instances. If too many clauses are added, a {@link org.apache.lucene.search.BooleanQuery.TooManyClauses TooManyClauses} exception will be thrown during searching. This most often occurs - when a Query - is rewritten into a BooleanQuery with many - TermQuery clauses, - for example by WildcardQuery. + when a {@link org.apache.lucene.search.Query Query} + is rewritten into a {@link org.apache.lucene.search.BooleanQuery BooleanQuery} with many + {@link org.apache.lucene.search.TermQuery TermQuery} clauses, + for example by {@link org.apache.lucene.search.WildcardQuery WildcardQuery}. The default setting for the maximum number of clauses 1024, but this can be changed via the - static method setMaxClauseCount - in BooleanQuery. + static method {@link org.apache.lucene.search.BooleanQuery#setMaxClauseCount(int)}.

    Phrases

    Another common search is to find documents containing certain phrases. This - is handled two different ways: + is handled three different ways:

    1. -

      PhraseQuery +

      {@link org.apache.lucene.search.PhraseQuery PhraseQuery} — Matches a sequence of - Terms. - PhraseQuery uses a slop factor to determine + {@link org.apache.lucene.index.Term Term}s. + {@link org.apache.lucene.search.PhraseQuery PhraseQuery} uses a slop factor to determine how many positions may occur between any two terms in the phrase and still be considered a match.

    2. -

      SpanNearQuery +

      {@link org.apache.lucene.search.MultiPhraseQuery MultiPhraseQuery} + — A more general form of PhraseQuery that accepts multiple Terms + for a position in the phrase. For example, this can be used to perform phrase queries that also + incorporate synonyms. +

    3. +
    4. +

      {@link org.apache.lucene.search.spans.SpanNearQuery SpanNearQuery} — Matches a sequence of other - SpanQuery - instances. SpanNearQuery allows for + {@link org.apache.lucene.search.spans.SpanQuery SpanQuery} + instances. {@link org.apache.lucene.search.spans.SpanNearQuery SpanNearQuery} allows for much more - complicated phrase queries since it is constructed from other SpanQuery - instances, instead of only TermQuery + complicated phrase queries since it is constructed from other + {@link org.apache.lucene.search.spans.SpanQuery SpanQuery} + instances, instead of only {@link org.apache.lucene.search.TermQuery TermQuery} instances.

    - TermRangeQuery + {@link org.apache.lucene.search.TermRangeQuery TermRangeQuery}

    The - TermRangeQuery + {@link org.apache.lucene.search.TermRangeQuery TermRangeQuery} matches all documents that occur in the exclusive range of a lower - Term + {@link org.apache.lucene.index.Term Term} and an upper - Term. - according to {@link java.lang.String#compareTo(String)}. It is not intended - for numerical ranges, use NumericRangeQuery instead. + {@link org.apache.lucene.index.Term Term} + according to {@link org.apache.lucene.index.TermsEnum#getComparator TermsEnum.getComparator()}. It is not intended + for numerical ranges, use {@link org.apache.lucene.search.NumericRangeQuery NumericRangeQuery} instead. For example, one could find all documents - that have terms beginning with the letters a through c. This type of Query is frequently used to + that have terms beginning with the letters a through c. This type of + {@link org.apache.lucene.search.Query} is frequently used to find documents that occur in a specific date range.

    - NumericRangeQuery + {@link org.apache.lucene.search.NumericRangeQuery NumericRangeQuery}

    The - NumericRangeQuery + {@link org.apache.lucene.search.NumericRangeQuery NumericRangeQuery} matches all documents that occur in a numeric range. For NumericRangeQuery to work, you must index the values - using a one of the numeric fields (IntField, - LongField, FloatField, - or DoubleField). + using a one of the numeric fields ({@link org.apache.lucene.document.IntField IntField}, + {@link org.apache.lucene.document.LongField LongField}, {@link org.apache.lucene.document.FloatField FloatField}, + or {@link org.apache.lucene.document.DoubleField DoubleField}).

    - PrefixQuery, - WildcardQuery + {@link org.apache.lucene.search.PrefixQuery PrefixQuery}, + {@link org.apache.lucene.search.WildcardQuery WildcardQuery}, + {@link org.apache.lucene.search.RegexpQuery RegexpQuery}

    While the - PrefixQuery + {@link org.apache.lucene.search.PrefixQuery PrefixQuery} has a different implementation, it is essentially a special case of the - WildcardQuery. - The PrefixQuery allows an application - to identify all documents with terms that begin with a certain string. The WildcardQuery generalizes this by allowing + {@link org.apache.lucene.search.WildcardQuery WildcardQuery}. + The {@link org.apache.lucene.search.PrefixQuery PrefixQuery} allows an application + to identify all documents with terms that begin with a certain string. The + {@link org.apache.lucene.search.WildcardQuery WildcardQuery} generalizes this by allowing for the use of * (matches 0 or more characters) and ? (matches exactly one character) wildcards. - Note that the WildcardQuery can be quite slow. Also + Note that the {@link org.apache.lucene.search.WildcardQuery WildcardQuery} can be quite slow. Also note that - WildcardQuery should + {@link org.apache.lucene.search.WildcardQuery WildcardQuery} should not start with * and ?, as these are extremely slow. - To remove this protection and allow a wildcard at the beginning of a term, see method - setAllowLeadingWildcard in - QueryParser. + Some QueryParsers may not allow this by default, but provide a setAllowLeadingWildcard method + to remove protection. + The {@link org.apache.lucene.search.RegexpQuery RegexpQuery} is even more general than WildcardQuery, + allowing an application to identify all documents with terms that match a regular expression pattern.

    - FuzzyQuery + {@link org.apache.lucene.search.FuzzyQuery FuzzyQuery}

    A - FuzzyQuery + {@link org.apache.lucene.search.FuzzyQuery FuzzyQuery} matches documents that contain terms similar to the specified term. Similarity is determined using Levenshtein (edit) distance. @@ -206,58 +213,9 @@ org.apache.lucene.search.IndexSearcher#search(Query,Filter,int)}.

    Changing Similarity

    -

    Chances are DefaultSimilarity is sufficient for all - your searching needs. - However, in some applications it may be necessary to customize your Similarity implementation. For instance, some - applications do not need to - distinguish between shorter and longer documents (see a "fair" similarity).

    +See the {@link org.apache.lucene.search.similarities} package documentation for information +on the available scoring models and extending or changing Similarity. -

    To change Similarity, one must do so for both indexing and - searching, and the changes must happen before - either of these actions take place. Although in theory there is nothing stopping you from changing mid-stream, it - just isn't well-defined what is going to happen. -

    - -

    To make this change, implement your own Similarity (likely - you'll want to simply subclass - DefaultSimilarity) and then use the new - class by calling - IndexWriter.setSimilarity - before indexing and - Searcher.setSimilarity - before searching. -

    - -

    - If you are interested in use cases for changing your similarity, see the Lucene users's mailing list at Overriding Similarity. - In summary, here are a few use cases: -

      -
    1. SweetSpotSimilaritySweetSpotSimilarity gives small increases - as the frequency increases a small amount - and then greater increases when you hit the "sweet spot", i.e. where you think the frequency of terms is - more significant.

    2. -
    3. Overriding tf — In some applications, it doesn't matter what the score of a document is as long as a - matching term occurs. In these - cases people have overridden Similarity to return 1 from the tf() method.

    4. -
    5. Changing Length Normalization — By overriding lengthNorm, - it is possible to discount how the length of a field contributes - to a score. In DefaultSimilarity, - lengthNorm = 1 / (numTerms in field)^0.5, but if one changes this to be - 1 / (numTerms in field), all fields will be treated - "fairly".

    6. -
    - In general, Chris Hostetter sums it up best in saying (from the Lucene users's mailing list): -
    [One would override the Similarity in] ... any situation where you know more about your data then just - that - it's "text" is a situation where it *might* make sense to to override your - Similarity method.
    -

    Changing Scoring — Expert Level

    @@ -270,112 +228,130 @@ org.apache.lucene.search.IndexSearcher#search(Query,Filter,int)}. three main classes:
    1. - Query — The abstract object representation of the + {@link org.apache.lucene.search.Query Query} — The abstract object representation of the user's information need.
    2. - Weight — The internal interface representation of + {@link org.apache.lucene.search.Weight Weight} — The internal interface representation of the user's Query, so that Query objects may be reused.
    3. - Scorer — An abstract class containing common + {@link org.apache.lucene.search.Scorer Scorer} — An abstract class containing common functionality for scoring. Provides both scoring and explanation capabilities.
    Details on each of these classes, and their children, can be found in the subsections below.

    The Query Class

    In some sense, the - Query + {@link org.apache.lucene.search.Query Query} class is where it all begins. Without a Query, there would be nothing to score. Furthermore, the Query class is the catalyst for the other scoring classes as it is often responsible for creating them or coordinating the functionality between them. The - Query class has several methods that are important for + {@link org.apache.lucene.search.Query Query} class has several methods that are important for derived classes:

      -
    1. createWeight(Searcher searcher) — A - Weight is the internal representation of the +
    2. {@link org.apache.lucene.search.Query#createWeight(IndexSearcher) createWeight(IndexSearcher searcher} — A + {@link org.apache.lucene.search.Weight Weight} is the internal representation of the Query, so each Query implementation must provide an implementation of Weight. See the subsection on The Weight Interface below for details on implementing the Weight interface.
    3. -
    4. rewrite(IndexReader reader) — Rewrites queries into primitive queries. Primitive queries are: - TermQuery, - BooleanQuery, and other queries that implement Query.html#createWeight(Searcher searcher)
    5. +
    6. {@link org.apache.lucene.search.Query#rewrite(IndexReader) rewrite(IndexReader reader} — Rewrites queries into primitive queries. Primitive queries are: + {@link org.apache.lucene.search.TermQuery TermQuery}, + {@link org.apache.lucene.search.BooleanQuery BooleanQuery}, and other queries that implement {@link org.apache.lucene.search.Query#createWeight(IndexSearcher) createWeight(IndexSearcher searcher)}

    The Weight Interface

    The - Weight + {@link org.apache.lucene.search.Weight Weight} interface provides an internal representation of the Query so that it can be reused. Any - Searcher + {@link org.apache.lucene.search.IndexSearcher IndexSearcher} dependent state should be stored in the Weight implementation, - not in the Query class. The interface defines six methods that must be implemented: + not in the Query class. The interface defines five methods that must be implemented:

    1. - Weight#getQuery() — Pointer to the + {@link org.apache.lucene.search.Weight#getQuery getQuery()} — Pointer to the Query that this Weight represents.
    2. - Weight#getValue() — The weight for - this Query. For example, the TermQuery.TermWeight value is - equal to the idf^2 * boost * queryNorm
    3. + {@link org.apache.lucene.search.Weight#getValueForNormalization() getValueForNormalization()} — + A weight can return a floating point value to indicate its magnitude for query normalization. Typically + a weight such as TermWeight that scores via a {@link org.apache.lucene.search.similarities.Similarity Similarity} + will just defer to the Similarity's implementation: + {@link org.apache.lucene.search.similarities.Similarity.SimWeight#getValueForNormalization SimWeight#getValueForNormalization()}. + For example, with {@link org.apache.lucene.search.similarities.TFIDFSimilarity Lucene's classic vector-space formula}, this + is implemented as the sum of squared weights: (idf * boost)2
    4. - - Weight#sumOfSquaredWeights() — The sum of squared weights. For TermQuery, this is (idf * - boost)^2
    5. -
    6. - - Weight#normalize(float) — Determine the query normalization factor. The query normalization may + {@link org.apache.lucene.search.Weight#normalize(float,float) normalize(float norm, float topLevelBoost)} — + Performs query normalization: +
        +
      • topLevelBoost: A query-boost factor from any wrapping queries that should be multiplied into every + document's score. For example, a TermQuery that is wrapped within a BooleanQuery with a boost of 5 would + receive this value at this time. This allows the TermQuery (the leaf node in this case) to compute this up-front + a single time (e.g. by multiplying into the IDF), rather than for every document.
      • +
      • norm: Passes in a a normalization factor which may allow for comparing scores between queries.
      • +
      + Typically a weight such as TermWeight + that scores via a {@link org.apache.lucene.search.similarities.Similarity Similarity} will just defer to the Similarity's implementation: + {@link org.apache.lucene.search.similarities.Similarity.SimWeight#normalize SimWeight#normalize(float,float)}.
    7. - - Weight#scorer(AtomicReaderContext, boolean, boolean) — Construct a new - Scorer - for this Weight. See - The Scorer Class - below for help defining a Scorer. As the name implies, the - Scorer is responsible for doing the actual scoring of documents given the Query. + {@link org.apache.lucene.search.Weight#scorer(org.apache.lucene.index.AtomicReaderContext, boolean, boolean, org.apache.lucene.util.Bits) + scorer(AtomicReaderContext context, boolean scoresDocsInOrder, boolean topScorer, Bits acceptDocs)} — + Construct a new {@link org.apache.lucene.search.Scorer Scorer} for this Weight. See The Scorer Class + below for help defining a Scorer. As the name implies, the Scorer is responsible for doing the actual scoring of documents + given the Query.
    8. - - Weight#explain(Searcher, AtomicReaderContext, int) — Provide a means for explaining why a given document was - scored - the way it was.
    9. + {@link org.apache.lucene.search.Weight#explain(org.apache.lucene.index.AtomicReaderContext, int) + explain(AtomicReaderContext context, int doc)} — Provide a means for explaining why a given document was + scored the way it was. + Typically a weight such as TermWeight + that scores via a {@link org.apache.lucene.search.similarities.Similarity Similarity} will make use of the Similarity's implementations: + {@link org.apache.lucene.search.similarities.Similarity.ExactSimScorer#explain(int, Explanation) ExactSimScorer#explain(int doc, Explanation freq)}, + and {@link org.apache.lucene.search.similarities.Similarity.SloppySimScorer#explain(int, Explanation) SloppySimScorer#explain(int doc, Explanation freq)} + +

    The Scorer Class

    The - Scorer + {@link org.apache.lucene.search.Scorer Scorer} abstract class provides common scoring functionality for all Scorer implementations and is the heart of the Lucene scoring process. The Scorer defines the following abstract (some of them are not yet abstract, but will be in future versions and should be considered as such now) methods which - must be implemented (some of them inherited from DocIdSetIterator ): + must be implemented (some of them inherited from {@link org.apache.lucene.search.DocIdSetIterator DocIdSetIterator}):

    1. - DocIdSetIterator#nextDoc() — Advances to the next - document that matches this Query, returning true if and only - if there is another document that matches.
    2. + {@link org.apache.lucene.search.Scorer#nextDoc nextDoc()} — Advances to the next + document that matches this Query, returning true if and only if there is another document that matches.
    3. - DocIdSetIterator#docID() — Returns the id of the - Document - that contains the match. It is not valid until next() has been called at least once. + {@link org.apache.lucene.search.Scorer#docID docID()} — Returns the id of the + {@link org.apache.lucene.document.Document Document} that contains the match.
    4. - Scorer#score(Collector) — - Scores and collects all matching documents using the given Collector. + {@link org.apache.lucene.search.Scorer#score score()} — Return the score of the + current document. This value can be determined in any appropriate way for an application. For instance, the + {@link org.apache.lucene.search.TermScorer TermScorer} simply defers to the configured Similarity: + {@link org.apache.lucene.search.similarities.Similarity.ExactSimScorer#score(int, int) ExactSimScorer.score(int doc, int freq)}.
    5. - Scorer#score() — Return the score of the - current document. This value can be determined in any - appropriate way for an application. For instance, the - TermScorer - returns the tf * Weight.getValue() * fieldNorm. + {@link org.apache.lucene.search.Scorer#freq freq()} — Returns the number of matches + for the current document. This value can be determined in any appropriate way for an application. For instance, the + {@link org.apache.lucene.search.TermScorer TermScorer} simply defers to the term frequency from the inverted index: + {@link org.apache.lucene.index.DocsEnum#freq DocsEnum.freq()}.
    6. - DocIdSetIterator#advance(int) — Skip ahead in + {@link org.apache.lucene.search.Scorer#advance advance()} — Skip ahead in the document matches to the document whose id is greater than or equal to the passed in value. In many instances, advance can be implemented more efficiently than simply looping through all the matching documents until - the target document is identified.
    7. + the target document is identified. + +
    8. + {@link org.apache.lucene.search.Scorer#getChildren getChildren()} — Returns any child subscorers + underneath this scorer. This allows for users to navigate the scorer hierarchy and receive more fine-grained + details on the scoring process. +

    Why would I want to add my own Query?

    diff --git a/lucene/core/src/java/org/apache/lucene/search/payloads/package.html b/lucene/core/src/java/org/apache/lucene/search/payloads/package.html index d1e2f5e6c01..9658169f06a 100644 --- a/lucene/core/src/java/org/apache/lucene/search/payloads/package.html +++ b/lucene/core/src/java/org/apache/lucene/search/payloads/package.html @@ -25,8 +25,8 @@
      -
    1. PayloadTermQuery -- Boost a term's score based on the value of the payload located at that term.
    2. -
    3. PayloadNearQuery -- A SpanNearQuery that factors in the value of the payloads located +
    4. {@link org.apache.lucene.search.payloads.PayloadTermQuery PayloadTermQuery} -- Boost a term's score based on the value of the payload located at that term.
    5. +
    6. {@link org.apache.lucene.search.payloads.PayloadNearQuery PayloadNearQuery} -- A {@link org.apache.lucene.search.spans.SpanNearQuery SpanNearQuery} that factors in the value of the payloads located at each of the positions where the spans occur.
    diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/package.html b/lucene/core/src/java/org/apache/lucene/search/similarities/package.html index 7646308356a..1709db4641c 100644 --- a/lucene/core/src/java/org/apache/lucene/search/similarities/package.html +++ b/lucene/core/src/java/org/apache/lucene/search/similarities/package.html @@ -105,7 +105,7 @@ implement the {@link org.apache.lucene.search.similarities.SimilarityBase#score( and {@link org.apache.lucene.search.similarities.SimilarityBase#toString()} methods.

    -

    Another options is to extend one of the frameworks +

    Another option is to extend one of the frameworks based on {@link org.apache.lucene.search.similarities.SimilarityBase}. These Similarities are implemented modularly, e.g. {@link org.apache.lucene.search.similarities.DFRSimilarity} delegates diff --git a/lucene/core/src/java/org/apache/lucene/search/spans/package.html b/lucene/core/src/java/org/apache/lucene/search/spans/package.html index 791af178db5..3e43d3bd4f6 100644 --- a/lucene/core/src/java/org/apache/lucene/search/spans/package.html +++ b/lucene/core/src/java/org/apache/lucene/search/spans/package.html @@ -26,29 +26,30 @@ The calculus of spans.

    In all cases, output spans are minimally inclusive. In other words, a