searchengine/oss/cl/clucene/src/clucene/search/indexsearcher.h
changeset 24 65456528cac2
parent 0 671dee74050a
equal deleted inserted replaced
23:d4d56f5e7c55 24:65456528cac2
    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 
       
    33 public:
    32 public:
    34 	/// Creates a searcher searching the index in the named directory.
    33 	/// Creates a searcher searching the index in the named directory.
    35 	IndexSearcher(const char* path);
    34 	IndexSearcher(const char* path);
    36   
    35   
    37     /// Creates a searcher searching the index in the specified directory.
    36     /// Creates a searcher searching the index in the specified directory.
    60 	CL_NS(index)::IndexReader* getReader(){
    59 	CL_NS(index)::IndexReader* getReader(){
    61 		return reader;
    60 		return reader;
    62 	}
    61 	}
    63 
    62 
    64 	Query* rewrite(Query* original);
    63 	Query* rewrite(Query* original);
       
    64 	
    65 	void explain(Query* query, int32_t doc, Explanation* ret);
    65 	void explain(Query* query, int32_t doc, Explanation* ret);
    66 };
    66 };
    67 CL_NS_END
    67 CL_NS_END
    68 #endif
    68 #endif