|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITextIndexer<A extends IHit>
Abstraction for the text indexer for RDF Values allowing either the
built-in bigdata FullTextIndex or support for Lucene, etc.
AbstractTripleStore.Options#TEXT_INDEXER_CLASS| Method Summary | |
|---|---|
int |
count(String query,
String languageCode,
boolean prefixMatch,
double minCosine,
double maxCosine,
int minRank,
int maxRank,
boolean matchAllTerms,
boolean matchExact,
long timeout,
TimeUnit unit)
Count free text search results. |
void |
create()
|
void |
destroy()
|
boolean |
getIndexDatatypeLiterals()
Return true iff datatype literals are being indexed. |
Hiterator<A> |
search(String query,
String languageCode,
boolean prefixMatch,
double minCosine,
double maxCosine,
int minRank,
int maxRank,
boolean matchAllTerms,
boolean matchExact,
long timeout,
TimeUnit unit)
Do free text search |
| Method Detail |
|---|
void create()
void destroy()
boolean getIndexDatatypeLiterals()
true iff datatype literals are being indexed.
Hiterator<A> search(String query,
String languageCode,
boolean prefixMatch,
double minCosine,
double maxCosine,
int minRank,
int maxRank,
boolean matchAllTerms,
boolean matchExact,
long timeout,
TimeUnit unit)
query - The query (it will be parsed into tokens).languageCode - The language code that should be used when tokenizing the
query -or- null to use the default Locale
).prefixMatch - When true, the matches will be on tokens which
include the query tokens as a prefix. This includes exact
matches as a special case when the prefix is the entire token,
but it also allows longer matches. For example,
free will be an exact match on free
but a partial match on freedom. When
false, only exact matches will be made.minCosine - The minimum cosine that will be returned (in [0:maxCosine]).
If you specify a minimum cosine of ZERO (0.0) you can drag in
a lot of basically useless search results.maxCosine - The maximum cosine that will be returned (in [minCosine:1.0]).
Useful for evaluating in relevance ranges.minRank - The min rank of the search result.maxRank - The max rank of the search result.matchAllTerms - if true, return only hits that match all search termsmatchExact - if true, return only hits that have an exact match of the search stringtimeout - The timeout -or- ZERO (0) for NO timeout (this is equivalent
to using Long.MAX_VALUE).unit - The unit in which the timeout is expressed.
int count(String query,
String languageCode,
boolean prefixMatch,
double minCosine,
double maxCosine,
int minRank,
int maxRank,
boolean matchAllTerms,
boolean matchExact,
long timeout,
TimeUnit unit)
query - The query (it will be parsed into tokens).languageCode - The language code that should be used when tokenizing the
query -or- null to use the default Locale
).prefixMatch - When true, the matches will be on tokens which
include the query tokens as a prefix. This includes exact
matches as a special case when the prefix is the entire token,
but it also allows longer matches. For example,
free will be an exact match on free
but a partial match on freedom. When
false, only exact matches will be made.minCosine - The minimum cosine that will be returned (in [0:maxCosine]).
If you specify a minimum cosine of ZERO (0.0) you can drag in
a lot of basically useless search results.maxCosine - The maximum cosine that will be returned (in [minCosine:1.0]).
Useful for evaluating in relevance ranges.minRank - The min rank of the search result.maxRank - The max rank of the search result.matchAllTerms - if true, return only hits that match all search termsmatchExact - if true, return only hits that have an exact match of the search stringtimeout - The timeout -or- ZERO (0) for NO timeout (this is equivalent
to using Long.MAX_VALUE).unit - The unit in which the timeout is expressed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||