⛏️ index : haiku.git

/*
 * Copyright 2009 Haiku, Inc.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *		Ankur Sethi (get.me.ankur@gmail.com)
 */

#ifndef _BEACON_SEARCHER_H_
#define _BEACON_SEARCHER_H_

#include <CLucene.h>

#include <Directory.h>
#include <List.h>
#include <Path.h>
#include <Volume.h>

// #include <CLucene/search/MultiSearcher.h>
using namespace lucene::analysis::standard ;
// using namespace lucene::search ;


class BeaconSearcher {
	public:
							BeaconSearcher() ;
							~BeaconSearcher() ;
		wchar_t*			GetNextHit() ;
		void				Search(const char* query) ;
	
	private:
		BPath				GetIndexPath(BVolume *volume);

		BList				fSearcherList;
		BList				fHits;
		StandardAnalyzer	fStandardAnalyzer;
//		MultiSearcher		*fMultiSearcher ;
} ;

#endif /* _BEACON_SEARCHER_H_ */