Package com.yahoo.schema.document
Class Ranking
java.lang.Object
com.yahoo.schema.document.Ranking
- All Implemented Interfaces:
Serializable,Cloneable
The rank settings given in a rank clause in the search definition.
- Author:
- Vegard Havdal
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanReturns true if the given rank settings are the sameinthashCode()booleanisFilter()Returns whether this is a filter.booleanReturns whether literal (non-stemmed, non-normalized) forms of the words should be indexed in a separate index which is searched by a automatically added rank term during searches.booleanisNormal()Whether user has explicitly requested normal (non-filter) behaviorvoidsetFilter(boolean filter) voidsetLiteral(boolean literal) voidsetNormal(boolean n) toString()
-
Constructor Details
-
Ranking
public Ranking()
-
-
Method Details
-
isLiteral
public boolean isLiteral()Returns whether literal (non-stemmed, non-normalized) forms of the words should be indexed in a separate index which is searched by a automatically added rank term during searches.
Default is false.
-
setLiteral
public void setLiteral(boolean literal) -
isFilter
public boolean isFilter()Returns whether this is a filter. Filters will only tell if they are matched or not, no detailed relevance information will be available about the match.
Matching a filter is much cheaper for the search engine than matching a regular field.
Default is false.
-
setFilter
public void setFilter(boolean filter) -
isNormal
public boolean isNormal()Whether user has explicitly requested normal (non-filter) behavior -
setNormal
public void setNormal(boolean n) -
equals
Returns true if the given rank settings are the same -
hashCode
public int hashCode() -
toString
-
clone
-