#ifndef __LUCENE_SEARCH_PHRASE_PREFIX_QUERY__
#define __LUCENE_SEARCH_PHRASE_PREFIX_QUERY__

#include "LCWeight.h"

@class LCIndexReader;

@interface LCPhrasePrefixWeight: NSObject <LCWeight>
{
	LCSearcher *searcher;
	float value;
	float idf;
	float queryNorm;
	float queryWeight;
}

- (id) initWithSearcher: (LCSearcher *) searcher;
- (LCQuery *) query;
- (float) value;
- (float) sumOfSquaredWeights;
- (void) normalize: (float) queryNorm;
- (LCScorer *) scorer: (LCIndexReader *) reader;
- (LCExplanation *) explain: (LCIndexReader *) reader doc: (int) doc;

@end

@interface LCPhrasePrefixQuery: LCQuery
{
	NSString *field;
	NSArray *termArrays;
	NSArray *positions;
	int slop;
}

- (void) setSlop: (int) s;
- (int) slop;
- (void) addTerm: (LCTerm *) term;
- (void) addTerms: (NSArray *) terms;
- (void) addTerm: (LCTerm *) term position: (int) position;
- (NSArray *) positions;
- (id <LCWeight>) createWeight: (LCSearcher *) searcher;

@end


#endif /* __LUCENE_SEARCH_PHRASE_PREFIX_QUERY__ */


syntax highlighted by Code2HTML, v. 0.9.1