xref: /haiku/src/tests/add-ons/index_server/fulltext_search/BeaconSearcher.h (revision bd6068614473f87449dfa2eaa67fad1527c61e11)
1 /*
2  * Copyright 2009 Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Ankur Sethi (get.me.ankur@gmail.com)
7  */
8 
9 #ifndef _BEACON_SEARCHER_H_
10 #define _BEACON_SEARCHER_H_
11 
12 #include <CLucene.h>
13 
14 #include <Directory.h>
15 #include <List.h>
16 #include <Path.h>
17 #include <Volume.h>
18 
19 // #include <CLucene/search/MultiSearcher.h>
20 using namespace lucene::analysis::standard ;
21 // using namespace lucene::search ;
22 
23 
24 class BeaconSearcher {
25 	public:
26 							BeaconSearcher() ;
27 							~BeaconSearcher() ;
28 		wchar_t*			GetNextHit() ;
29 		void				Search(const char* query) ;
30 
31 	private:
32 		BPath				GetIndexPath(BVolume *volume);
33 
34 		BList				fSearcherList;
35 		BList				fHits;
36 		StandardAnalyzer	fStandardAnalyzer;
37 //		MultiSearcher		*fMultiSearcher ;
38 } ;
39 
40 #endif /* _BEACON_SEARCHER_H_ */
41 
42