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
-
Constructor Summary
ConstructorDescriptionSolrNativeJoinQuery
(String from, String to, Query subQuery) The use of this Query is discouraged. -
Method Summary
-
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.
-
toString
Description copied from interface:Query
Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes -
hashCode
-
equals
-