public class LuceneDictionaryImpl extends AbstractBaseDictionary
Constructor and Description |
---|
LuceneDictionaryImpl(org.apache.lucene.search.IndexSearcher searcher,
String lookupFieldName)
Constructor
|
LuceneDictionaryImpl(org.apache.lucene.search.IndexSearcher searcher,
String lookupFieldName,
int maxListHits)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String text)
Determines whether the Dictionary contains the specified input text.
|
Collection<MetaDataHit> |
getEntries(String text)
Gets any meta data entries associated with the specified input text.
|
getMetaFieldNames, retainMetaData
public LuceneDictionaryImpl(org.apache.lucene.search.IndexSearcher searcher, String lookupFieldName)
public LuceneDictionaryImpl(org.apache.lucene.search.IndexSearcher searcher, String lookupFieldName, int maxListHits)
public Collection<MetaDataHit> getEntries(String text) throws DictionaryException
text
- The input text.DictionaryException
public boolean contains(String text) throws DictionaryException
text
- The input text.DictionaryException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.