public class SolrSearchCondition
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrSearchCondition.ConditionValue |
| Constructor and Description |
|---|
SolrSearchCondition(java.util.List<SolrSearchCondition> nestedConditions,
SearchQuery.Operator operator)
Creates condition which aggregates nested conditions.
|
SolrSearchCondition(java.util.List<SolrSearchCondition> nestedConditions,
SearchQuery.Operator operator,
boolean filterQueryCondition)
Creates condition which aggregates nested conditions.
|
SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
boolean multiValue,
java.util.Locale locale,
SearchQuery.Operator operator,
boolean filterQueryCondition)
Creates condition for specified attribute and locale.
|
SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
java.util.Locale language,
SearchQuery.Operator operator)
Creates condition for specified attribute and locale.
|
SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
SearchQuery.Operator operator)
Creates condition for specified attribute and locale.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConditionValue(java.lang.Object value,
ValueComparisonOperator comparisonOperator)
Adds a value to the condition.
|
java.lang.String |
getAttributeName() |
java.lang.String |
getAttributeType() |
java.util.List<SolrSearchCondition.ConditionValue> |
getConditionValues() |
java.util.Locale |
getLanguage() |
java.util.List<SolrSearchCondition> |
getNestedConditions() |
SearchQuery.Operator |
getOperator() |
boolean |
isFilterQueryCondition()
Informs if it is a filter query (fq) condition.
|
boolean |
isMultiValue()
Tells if indexed property for this type is multi value
IndexedProperty.isMultiValue() |
boolean |
isNestedCondition()
Informs if it is aggregating condition which consists of nested conditions.
|
public SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
java.util.Locale language,
SearchQuery.Operator operator)
attributeName - attribute name of field which is specified in this condition.attributeType - attribute type of field which is specified in this condition.language - locale of the condition. If condition locale equals current user's locale.operator - operator used to combine getConditionValues().public SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
SearchQuery.Operator operator)
attributeName - attribute name of field which is specified in this condition.attributeType - attribute type of field which is specified in this condition.operator - operator used to combine getConditionValues().public SolrSearchCondition(java.lang.String attributeName,
java.lang.String attributeType,
boolean multiValue,
java.util.Locale locale,
SearchQuery.Operator operator,
boolean filterQueryCondition)
attributeName - attribute name of field which is specified in this condition.attributeType - attribute type of field which is specified in this condition.multiValue - tells if indexed property is multi value field IndexedProperty.isMultiValue().locale - locale of the condition chosen in the condition it can be different than current user's locale.operator - operator used to combine getConditionValues().filterQueryCondition - tells if condition should be used as fq (filter query). Setting to false doesn't necessarily mean it
won't be used as fq, because every condition can be used as fq if its type and operator is a good match
for it.public SolrSearchCondition(java.util.List<SolrSearchCondition> nestedConditions, SearchQuery.Operator operator)
nestedConditions - list of nested conditions.operator - operator used to combine nested conditions.public SolrSearchCondition(java.util.List<SolrSearchCondition> nestedConditions, SearchQuery.Operator operator, boolean filterQueryCondition)
nestedConditions - list of nested conditions.operator - operator used to combine nested conditions.filterQueryCondition - tells if condition should be used as fq (filter query)public java.util.List<SolrSearchCondition> getNestedConditions()
public java.lang.String getAttributeName()
public java.lang.String getAttributeType()
public java.util.Locale getLanguage()
public SearchQuery.Operator getOperator()
public boolean isMultiValue()
IndexedProperty.isMultiValue()public java.util.List<SolrSearchCondition.ConditionValue> getConditionValues()
public void addConditionValue(java.lang.Object value,
ValueComparisonOperator comparisonOperator)
value - value which will be used in condition.comparisonOperator - operator used in a query ValueComparisonOperatorpublic boolean isNestedCondition()
public boolean isFilterQueryCondition()
Copyright © 2018 SAP SE. All Rights Reserved.