#ifndef __LUCENE_SEARCH_WEIGHT__
#define __LUCENE_SEARCH_WEIGHT__
#include <Foundation/Foundation.h>
#include "LCIndexReader.h"
#include "LCScorer.h"
#include "LCExplanation.h"
@class LCQuery;
@protocol LCWeight <NSObject> //Serializable
- (LCQuery *) query;
- (float) value;
- (float) sumOfSquaredWeights;
- (void) normalize: (float) norm;
- (LCScorer *) scorer: (LCIndexReader *) reader;
- (LCExplanation *) explain: (LCIndexReader *) reader
document: (int) doc;
@end
#endif /* __LUCENE_SEARCH_WEIGHT__ */
syntax highlighted by Code2HTML, v. 0.9.1