public static class ITextIndexer.FullTextQuery extends Object implements Serializable
Constructor and Description |
---|
ITextIndexer.FullTextQuery(String query) |
ITextIndexer.FullTextQuery(String query,
String languageCode,
boolean prefixMatch) |
ITextIndexer.FullTextQuery(String query,
String languageCode,
boolean prefixMatch,
String matchRegex,
boolean matchAllTerms,
boolean matchExact) |
ITextIndexer.FullTextQuery(String query,
String languageCode,
boolean prefixMatch,
String matchRegex,
boolean matchAllTerms,
boolean matchExact,
double minCosine,
double maxCosine,
int minRank,
int maxRank) |
ITextIndexer.FullTextQuery(String query,
String languageCode,
boolean prefixMatch,
String matchRegex,
boolean matchAllTerms,
boolean matchExact,
double minCosine,
double maxCosine,
int minRank,
int maxRank,
long timeout,
TimeUnit unit)
Construct a full text query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLanguageCode() |
String |
getMatchRegex() |
double |
getMaxCosine() |
int |
getMaxRank() |
double |
getMinCosine() |
int |
getMinRank() |
String |
getQuery() |
long |
getTimeout() |
TimeUnit |
getTimeUnit() |
int |
hashCode() |
boolean |
isMatchAllTerms() |
boolean |
isMatchExact() |
boolean |
isPrefixMatch() |
public ITextIndexer.FullTextQuery(String query)
public ITextIndexer.FullTextQuery(String query, String languageCode, boolean prefixMatch)
public ITextIndexer.FullTextQuery(String query, String languageCode, boolean prefixMatch, String matchRegex, boolean matchAllTerms, boolean matchExact)
public ITextIndexer.FullTextQuery(String query, String languageCode, boolean prefixMatch, String matchRegex, boolean matchAllTerms, boolean matchExact, double minCosine, double maxCosine, int minRank, int maxRank)
public ITextIndexer.FullTextQuery(String query, String languageCode, boolean prefixMatch, String matchRegex, boolean matchAllTerms, boolean matchExact, double minCosine, double maxCosine, int minRank, int maxRank, 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.matchRegex
- A regex filter to apply to the search.matchAllTerms
- if true, return only hits that match all search termsmatchExact
- if true, return only hits that have an exact match of the search stringminCosine
- 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.timeout
- 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.public String getQuery()
public String getLanguageCode()
public boolean isPrefixMatch()
public String getMatchRegex()
public boolean isMatchAllTerms()
public boolean isMatchExact()
public double getMinCosine()
public double getMaxCosine()
public int getMinRank()
public int getMaxRank()
public long getTimeout()
public TimeUnit getTimeUnit()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.