searchengine/oss/cl/clucene/src/clucene/search/indexsearcher.h
changeset 21 2c484ac32ef0
parent 18 3e1f76dd2722
equal deleted inserted replaced
18:3e1f76dd2722 21:2c484ac32ef0
    26 * <p>Applications usually need only call the inherited {@link search(Query*)}
    26 * <p>Applications usually need only call the inherited {@link search(Query*)}
    27 * or {@link search(Query*,Filter*)} methods.
    27 * or {@link search(Query*,Filter*)} methods.
    28 */
    28 */
    29 class IndexSearcher:public Searcher{
    29 class IndexSearcher:public Searcher{
    30 	CL_NS(index)::IndexReader* reader;
    30 	CL_NS(index)::IndexReader* reader;
    31 	bool readerOwner;
    31 	bool readerOwner;	
    32 //#ifdef USE_HIGHLIGHTER	
       
    33 	Query *fistlnHLQuery;
       
    34 	Query *excerptrwQuery;
       
    35 	CL_NS2(analysis,standard)::StandardAnalyzer hl_analyzer;
       
    36 //#endif	
       
    37 public:
    32 public:
    38 	/// Creates a searcher searching the index in the named directory.
    33 	/// Creates a searcher searching the index in the named directory.
    39 	IndexSearcher(const char* path);
    34 	IndexSearcher(const char* path);
    40   
    35   
    41     /// Creates a searcher searching the index in the specified directory.
    36     /// Creates a searcher searching the index in the specified directory.
    65 		return reader;
    60 		return reader;
    66 	}
    61 	}
    67 
    62 
    68 	Query* rewrite(Query* original);
    63 	Query* rewrite(Query* original);
    69 	
    64 	
    70 //#ifdef USE_HIGHLIGHTER
       
    71 	void getrewritten(int32_t n, Query* original, Query* rwQuery[]);
       
    72 //#endif	
       
    73 	void explain(Query* query, int32_t doc, Explanation* ret);
    65 	void explain(Query* query, int32_t doc, Explanation* ret);
    74 };
    66 };
    75 CL_NS_END
    67 CL_NS_END
    76 #endif
    68 #endif