Go to the source code of this file.
|The structure that stores data about a query that must be modified during a search. |
|Abstract scorer object. |
|lcn_error_t *||lcn_term_scorer_create (lcn_scorer_t **scorer, lcn_weight_t *weight, lcn_doc_iter_t *iter, apr_pool_t *pool)|
|Create a scorer that returns scores for each document matched by weight in iter, allocated in pool. |
|lcn_error_t *||lcn_boolean_scorer_create (lcn_scorer_t **scorer, apr_array_header_t *must, apr_array_header_t *should, apr_array_header_t *must_not, lcn_index_t *index, apr_pool_t *pool)|
|Create a scorer that returns scores for documents matched by the arrays of queries must, should, and must_not, searching in index, allocated in pool. |
|lcn_error_t *||lcn_scorer_next (lcn_boolean_t *next, lcn_scorer_t *scorer)|
|Advance scorer to the next document. |
|apr_uint32_t||lcn_scorer_doc (lcn_scorer_t *scorer)|
|Return the current document for scorer. |
|float||lcn_scorer_score (lcn_scorer_t *scorer)|
|Return the score for the current document for scorer. |
Definition in file lcn_scorer.h.
The structure that stores data about a query that must be modified during a search.
This allows a given query to be reused for more than one search.
This is declared here rather than in lcn_query.h to avoid circular dependencies.
Advance scorer to the next document.
If there is another document in the sequence next is set to TRUE, otherwise next is set to FALSE.