searchengine/oss/cl/clucene/src/clucene/search/searchheader.h
changeset 15 cf5c74390b98
parent 0 671dee74050a
child 18 3e1f76dd2722
equal deleted inserted replaced
10:afe194b6b1cd 15:cf5c74390b98
    17 #include "clucene/document/document.h"
    17 #include "clucene/document/document.h"
    18 #include "clucene/search/sort.h"
    18 #include "clucene/search/sort.h"
    19 #include "clucene/util/voidlist.h"
    19 #include "clucene/util/voidlist.h"
    20 #include "clucene/search/explanation.h"
    20 #include "clucene/search/explanation.h"
    21 #include "clucene/search/similarity.h"
    21 #include "clucene/search/similarity.h"
       
    22 
       
    23 //#ifdef USE_HIGHLIGHTER
       
    24 //#include "CLucene/highlighter/SimpleFragmenter.h"
       
    25 //#include "CLucene/highlighter/SimpleHTMLFormatter.h"
       
    26 //#include "CLucene/analysis/standard/StandardAnalyzer.h"
       
    27 //
       
    28 //#define LCPIX_EXCERPT_FIELD   L"_excerpt"
       
    29 //#endif
    22 
    30 
    23 CL_NS_DEF(search)
    31 CL_NS_DEF(search)
    24 
    32 
    25 	//predefine classes
    33 	//predefine classes
    26 	class Scorer;
    34 	class Scorer;
   157 
   165 
   158 		HitDoc* first;				  // head of LRU cache
   166 		HitDoc* first;				  // head of LRU cache
   159 		HitDoc* last;				  // tail of LRU cache
   167 		HitDoc* last;				  // tail of LRU cache
   160 		int32_t numDocs;			  // number cached
   168 		int32_t numDocs;			  // number cached
   161 		int32_t maxDocs;			  // max to cache
   169 		int32_t maxDocs;			  // max to cache
   162 
   170 //#ifdef USE_HIGHLIGHTER		
       
   171 //		CL_NS2(search,highlight)::SimpleHTMLFormatter hl_formatter;
       
   172 //		
       
   173 //		CL_NS2(search,highlight)::SimpleFragmenter hl_frag;
       
   174 //        
       
   175 //		CL_NS2(analysis,standard)::StandardAnalyzer hl_analyzer;
       
   176 //#endif		
   163     public:
   177     public:
   164 		Hits(Searcher* s, Query* q, Filter* f, const Sort* sort=NULL);
   178 		Hits(Searcher* s, Query* q, Filter* f, const Sort* sort=NULL);
   165 		~Hits();
   179 		~Hits();
   166 
   180 
   167 		/** Returns the total number of hits available in this set. */
   181 		/** Returns the total number of hits available in this set. */
   275       *
   289       *
   276       * <p>Applications should usually call {@link
   290       * <p>Applications should usually call {@link
   277       * Searcher#search(Query,Filter,Sort)} instead.
   291       * Searcher#search(Query,Filter,Sort)} instead.
   278       */
   292       */
   279 	  	virtual TopFieldDocs* _search(Query* query, Filter* filter, const int32_t n, const Sort* sort) = 0;
   293 	  	virtual TopFieldDocs* _search(Query* query, Filter* filter, const int32_t n, const Sort* sort) = 0;
       
   294 //#ifdef USE_HIGHLIGHTER	  	
       
   295 //	  	virtual Query* getrewritten(int32_t n, Query* original)= 0;
       
   296 //#endif	  	
   280    };
   297    };
   281 
   298 
   282 
   299 
   283 
   300 
   284 	/** An abstract base class for search implementations.
   301 	/** An abstract base class for search implementations.