Method DoLookup
DoLookup(String, IEnumerable<BytesRef>, Boolean, Int32)
Declaration
public override IList<Lookup.LookupResult> DoLookup(string key, IEnumerable<BytesRef> contexts, bool onlyMorePopular, int num)
Parameters
Type |
Name |
Description |
System.String |
key |
|
IEnumerable<BytesRef> |
contexts |
|
System.Boolean |
onlyMorePopular |
|
System.Int32 |
num |
|
Returns
Overrides
DoLookup(String, Int32, Boolean, Boolean)
Lookup, without any context.
Declaration
public virtual IList<Lookup.LookupResult> DoLookup(string key, int num, bool allTermsRequired, bool doHighlight)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Int32 |
num |
|
System.Boolean |
allTermsRequired |
|
System.Boolean |
doHighlight |
|
Returns
DoLookup(String, IEnumerable<BytesRef>, Int32, Boolean, Boolean)
Retrieve suggestions, specifying whether all terms
must match (allTermsRequired
) and whether the hits
should be highlighted (doHighlight
).
Declaration
public virtual IList<Lookup.LookupResult> DoLookup(string key, IEnumerable<BytesRef> contexts, int num, bool allTermsRequired, bool doHighlight)
Parameters
Type |
Name |
Description |
System.String |
key |
|
IEnumerable<BytesRef> |
contexts |
|
System.Int32 |
num |
|
System.Boolean |
allTermsRequired |
|
System.Boolean |
doHighlight |
|
Returns