Package org.ametys.cms.search.query
Class SolrNativeJoinQuery
java.lang.Object
org.ametys.cms.search.query.SolrNativeJoinQuery
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
ContentPageQuery
The use of this Query is discouraged. If possible (when from=id), use
Represents a Solr Join Query
JoinQuery
instead.
Represents a Solr Join Query
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The "from" field of the join (the query is done on docs which hold this field)protected Query
The query to apply on joined docsprotected String
The "to" field of the join (returned docs hold this field)Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
ConstructorDescriptionSolrNativeJoinQuery
(String from, String to, Query subQuery) The use of this Query is discouraged. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the solr query string representing the Query object.Build the solr query representing the Query object.
The return type may be either String or Map<String, Object> following the Solr JSON Query DSL.boolean
int
hashCode()
toString
(int indent) Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes
-
Field Details
-
_fromField
The "from" field of the join (the query is done on docs which hold this field) -
_toField
The "to" field of the join (returned docs hold this field) -
_subQuery
The query to apply on joined docs
-
-
Constructor Details
-
SolrNativeJoinQuery
The use of this Query is discouraged. If possible (when from=id), useJoinQuery
instead.
Build a solr join query- Parameters:
from
- The "from" field of the join (the query is done on docs which hold this field)to
- The "to" field of the join (returned docs holds this field)subQuery
- The sub query (query to apply on joined docs)
-
-
Method Details
-
build
Description copied from interface:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
buildAsJson
Description copied from interface:Query
Build the solr query representing the Query object.
The return type may be either String or Map<String, Object> following the Solr JSON Query DSL.- Specified by:
buildAsJson
in interfaceQuery
- Returns:
- the solr query representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
toString
Description copied from interface:Query
Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes -
hashCode
-
equals
-