public class LuceneDictionaryImpl extends AbstractBaseDictionary
Modifier and Type | Field and Description |
---|---|
private Logger |
iv_logger |
private java.lang.String |
iv_lookupFieldName |
private int |
iv_maxHits |
private IndexSearcher |
iv_searcher |
Constructor and Description |
---|
LuceneDictionaryImpl(IndexSearcher searcher,
java.lang.String lookupFieldName)
Constructor
|
LuceneDictionaryImpl(IndexSearcher searcher,
java.lang.String lookupFieldName,
int maxListHits)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String text)
Determines whether the Dictionary contains the specified input text.
|
java.util.Collection<MetaDataHit> |
getEntries(java.lang.String text)
Gets any meta data entries associated with the specified input text.
|
getMetaFieldNames, retainMetaData
private final IndexSearcher iv_searcher
private final java.lang.String iv_lookupFieldName
private int iv_maxHits
private Logger iv_logger
public LuceneDictionaryImpl(IndexSearcher searcher, java.lang.String lookupFieldName)
public LuceneDictionaryImpl(IndexSearcher searcher, java.lang.String lookupFieldName, int maxListHits)
public java.util.Collection<MetaDataHit> getEntries(java.lang.String text) throws DictionaryException
text
- The input text.DictionaryException
public boolean contains(java.lang.String text) throws DictionaryException
text
- The input text.DictionaryException