public class CloudView5RelevanceQueryBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CloudView5RelevanceQueryBuilder.Sort |
Constructor and Description |
---|
CloudView5RelevanceQueryBuilder(SearchQuery sq) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollapsing() |
CloudView5RelevanceQueryBuilder.Sort |
getSort()
Returns the field on which the results will be sorted
|
java.lang.String |
getStaticRankingExpression()
Get the static ranking expression set on the current query
|
CloudView5RelevanceQueryBuilder |
setCollapsing(boolean lsb,
boolean msb)
Configure CloudView 5 style collapsing
|
CloudView5RelevanceQueryBuilder |
setSort(java.lang.String fieldName)
Sets the field on which the results will be sorted on.
|
CloudView5RelevanceQueryBuilder |
setSort(java.lang.String fieldName,
boolean ascending,
boolean isSecondary)
Sets the field on which the results will be sorted on.
|
CloudView5RelevanceQueryBuilder |
setStaticRankingExpression(java.lang.String expression)
Sets the static ranking expression to use for this query
|
void |
unSetStaticRankingExpression()
Remove the static ranking expression for the current query
|
public CloudView5RelevanceQueryBuilder(SearchQuery sq)
public CloudView5RelevanceQueryBuilder setCollapsing(boolean lsb, boolean msb)
lsb
- use the first 32 bits of the fieldmsb
- use the bits from 33 to 64 of the fieldpublic java.lang.String getCollapsing()
public CloudView5RelevanceQueryBuilder setStaticRankingExpression(java.lang.String expression)
expression
- static ranking expressionpublic void unSetStaticRankingExpression()
public java.lang.String getStaticRankingExpression()
public CloudView5RelevanceQueryBuilder setSort(java.lang.String fieldName)
fieldName
- the name of a field (that can be used for sorting)public CloudView5RelevanceQueryBuilder setSort(java.lang.String fieldName, boolean ascending, boolean isSecondary)
fieldName
- the name of a field (that can be used for sorting)isSecondary
- wether the sort is secondary or not.
When the sort is secondary it is only applied to the results with the same score.public CloudView5RelevanceQueryBuilder.Sort getSort()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.