Main Page | Data Structures | Directories | File List | Data Fields | Globals

lcn_scorer.h File Reference

Routines for working with scorers. More...

#include "lcn_types.h"
#include "lcn_index.h"

Go to the source code of this file.

Typedefs

typedef lcn_weight_t lcn_weight_t
 The structure that stores data about a query that must be modified during a search.
typedef lcn_scorer_t lcn_scorer_t
 Abstract scorer object.

Functions

lcn_error_tlcn_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_tlcn_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_tlcn_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.


Detailed Description

Routines for working with scorers.

Definition in file lcn_scorer.h.


Typedef Documentation

typedef struct lcn_weight_t lcn_weight_t
 

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.

Definition at line 39 of file lcn_scorer.h.


Function Documentation

lcn_error_t* lcn_scorer_next lcn_boolean_t next,
lcn_scorer_t scorer
 

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.


Generated on Sat Mar 26 08:12:11 2005 for Lucene4c by  doxygen 1.4.0