Class JaspellLookup
- java.lang.Object
-
- org.apache.lucene.search.suggest.Lookup
-
- org.apache.solr.spelling.suggest.jaspell.JaspellLookup
-
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
@Deprecated public class JaspellLookup extends org.apache.lucene.search.suggest.Lookup
Deprecated.Migrate to one of the newer suggesters which are much more RAM efficient.Suggest implementation based on JaSpell.- See Also:
JaspellTernarySearchTrie
-
-
Constructor Summary
Constructors Constructor Description JaspellLookup()Deprecated.Creates a new empty trie
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(CharSequence key, Object value)Deprecated.Adds a new node ifkeyalready exists, otherwise replaces its value.voidbuild(org.apache.lucene.search.suggest.InputIterator iterator)Deprecated.Objectget(CharSequence key)Deprecated.Returns the value for the specified key, or null if the key does not exist.longgetCount()Deprecated.booleanload(org.apache.lucene.store.DataInput input)Deprecated.List<org.apache.lucene.search.suggest.Lookup.LookupResult>lookup(CharSequence key, Set<org.apache.lucene.util.BytesRef> contexts, boolean onlyMorePopular, int num)Deprecated.longramBytesUsed()Deprecated.booleanstore(org.apache.lucene.store.DataOutput output)Deprecated.-
Methods inherited from class org.apache.lucene.search.suggest.Lookup
build, load, lookup, lookup, store
-
-
-
-
Constructor Detail
-
JaspellLookup
public JaspellLookup()
Deprecated.Creates a new empty trie- See Also:
build(InputIterator)
-
-
Method Detail
-
build
public void build(org.apache.lucene.search.suggest.InputIterator iterator) throws IOExceptionDeprecated.- Specified by:
buildin classorg.apache.lucene.search.suggest.Lookup- Throws:
IOException
-
add
public boolean add(CharSequence key, Object value)
Deprecated.Adds a new node ifkeyalready exists, otherwise replaces its value.This method always returns false.
-
get
public Object get(CharSequence key)
Deprecated.Returns the value for the specified key, or null if the key does not exist.
-
lookup
public List<org.apache.lucene.search.suggest.Lookup.LookupResult> lookup(CharSequence key, Set<org.apache.lucene.util.BytesRef> contexts, boolean onlyMorePopular, int num)
Deprecated.- Specified by:
lookupin classorg.apache.lucene.search.suggest.Lookup
-
store
public boolean store(org.apache.lucene.store.DataOutput output) throws IOExceptionDeprecated.- Specified by:
storein classorg.apache.lucene.search.suggest.Lookup- Throws:
IOException
-
load
public boolean load(org.apache.lucene.store.DataInput input) throws IOExceptionDeprecated.- Specified by:
loadin classorg.apache.lucene.search.suggest.Lookup- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
Deprecated.
-
getCount
public long getCount()
Deprecated.- Specified by:
getCountin classorg.apache.lucene.search.suggest.Lookup
-
-