#ifndef __LUCENE_SEARCH_WEIGHT__ #define __LUCENE_SEARCH_WEIGHT__ #include #include "LCIndexReader.h" #include "LCScorer.h" #include "LCExplanation.h" @class LCQuery; @protocol LCWeight //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__ */