[Missing <summary> documentation for "N:Lucene.Net.Search.Function"]
Classes
Class | Description | |
---|---|---|
ByteFieldSource | Expert: obtains single byte field values from the
{@link Lucene.Net.Search.FieldCache FieldCache}
using CopyC# getBytes() | |
CustomScoreProvider | ||
CustomScoreQuery | Query that sets document score as a programmatic function of several (sub) scores:
| |
DocValues | Expert: represents field values as different types.
Normally created via a
{@link Lucene.Net.Search.Function.ValueSource ValueSuorce}
for a particular field and reader.
WARNING: The status of the Search.Function package is experimental.
The APIs introduced here might change in the future and will not be
supported anymore in such a case. | |
FieldCacheSource | Expert: A base class for ValueSource implementations that retrieve values for
a single field from the {@link Lucene.Net.Search.FieldCache FieldCache}.
Fields used herein nust be indexed (doesn't matter if these fields are stored or not).
It is assumed that each such indexed field is untokenized, or at least has a single token in a document.
For documents with multiple tokens of the same field, behavior is undefined (It is likely that current
code would use the value of one of these tokens, but this is not guaranteed).
Document with no tokens in this field are assigned the CopyC# Zero | |
FieldScoreQuery | A query that scores each document as the value of the numeric input field.
The query matches all documents, and scores each document according to the numeric
value of that field.
It is assumed, and expected, that:
| |
FieldScoreQuery..::..Type | Type of score field, indicating how field values are interpreted/parsed.
The type selected at search search time should match the data stored in the field.
Different types have different RAM requirements:
| |
FloatFieldSource | Expert: obtains float field values from the
{@link Lucene.Net.Search.FieldCache FieldCache}
using CopyC# getFloats() | |
IntFieldSource | Expert: obtains int field values from the
{@link Lucene.Net.Search.FieldCache FieldCache}
using CopyC# getInts() | |
MultiValueSource | Obsolete. This class wraps another ValueSource, but protects
against accidental double RAM usage in FieldCache when
a composite reader is passed to {@link #getValues}.
NOTE: this class adds a CPU penalty to every
lookup, as it must resolve the incoming document to the
right sub-reader using a binary search. | |
OrdFieldSource | Expert: obtains the ordinal of the field value from the default Lucene
{@link Lucene.Net.Search.FieldCache Fieldcache} using getStringIndex().
The native lucene index order is used to assign an ordinal value for each field value.
Field values (terms) are lexicographically ordered by unicode value, and numbered starting at 1.
Example:
If there were only three field values: "apple","banana","pear" then ord("apple")=1, ord("banana")=2, ord("pear")=3 WARNING: ord() depends on the position in an index and can thus change when other documents are inserted or deleted, or if a MultiSearcher is used. WARNING: The status of the Search.Function package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.NOTE: with the switch in 2.9 to segment-based searching, if {@link #getValues} is invoked with a composite (multi-segment) reader, this can easily cause double RAM usage for the values in the FieldCache. It's best to switch your application to pass only atomic (single segment) readers to this API. Alternatively, for a short-term fix, you could wrap your ValueSource using {@link MultiValueSource}, which costs more CPU per lookup but will not consume double the FieldCache RAM. | |
ReverseOrdFieldSource | Expert: obtains the ordinal of the field value from the default Lucene
{@link Lucene.Net.Search.FieldCache FieldCache} using getStringIndex()
and reverses the order.
The native lucene index order is used to assign an ordinal value for each field value.
Field values (terms) are lexicographically ordered by unicode value, and numbered starting at 1.
Example of reverse ordinal (rord): If there were only three field values: "apple","banana","pear" then rord("apple")=3, rord("banana")=2, ord("pear")=1 WARNING: rord() depends on the position in an index and can thus change when other documents are inserted or deleted, or if a MultiSearcher is used. WARNING: The status of the Search.Function package is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.NOTE: with the switch in 2.9 to segment-based searching, if {@link #getValues} is invoked with a composite (multi-segment) reader, this can easily cause double RAM usage for the values in the FieldCache. It's best to switch your application to pass only atomic (single segment) readers to this API. Alternatively, for a short-term fix, you could wrap your ValueSource using {@link MultiValueSource}, which costs more CPU per lookup but will not consume double the FieldCache RAM. | |
ShortFieldSource | Expert: obtains short field values from the
{@link Lucene.Net.Search.FieldCache FieldCache}
using CopyC# getShorts() | |
ValueSource | Expert: source of values for basic function queries.
At its default/simplest form, values - one per doc - are used as the score of that doc.
Values are instantiated as
{@link Lucene.Net.Search.Function.DocValues DocValues} for a particular reader.
ValueSource implementations differ in RAM requirements: it would always be a factor
of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.
WARNING: The status of the Search.Function package is experimental.
The APIs introduced here might change in the future and will not be
supported anymore in such a case. | |
ValueSourceQuery | Expert: A Query that sets the scores of document to the
values obtained from a {@link Lucene.Net.Search.Function.ValueSource ValueSource}.
This query provides a score for each and every undeleted document in the index.
The value source can be based on a (cached) value of an indexed field, but it
can also be based on an external source, e.g. values read from an external database.
Score is set as: Score(doc,query) = query.getBoost()2 * valueSource(doc).
WARNING: The status of the Search.Function package is experimental.
The APIs introduced here might change in the future and will not be
supported anymore in such a case. |