public class Searcher extends LuceneConstants
CONTENTS, MAX_SEARCH, SAMEAS| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.document.Document |
getDocument(org.apache.lucene.search.ScoreDoc scoreDoc) |
Collection<String> |
search(String uri) |
Collection<String> |
searchSameAsTerm(String uri) |
org.apache.lucene.search.TopDocs |
searchTops(String searchQuery) |
public Searcher(String indexDirectoryPath) throws GerbilException
GerbilExceptionpublic org.apache.lucene.search.TopDocs searchTops(String searchQuery) throws IOException
IOExceptionpublic org.apache.lucene.document.Document getDocument(org.apache.lucene.search.ScoreDoc scoreDoc)
throws org.apache.lucene.index.CorruptIndexException,
IOException
org.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic void close()
throws IOException
IOExceptionpublic Collection<String> search(String uri) throws GerbilException
GerbilExceptionpublic Collection<String> searchSameAsTerm(String uri) throws GerbilException
GerbilExceptionCopyright © 2014–2017. All rights reserved.