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 SummaryNested classes/interfaces inherited from interface org.ametys.cms.search.query.QueryQuery.LogicalOperator, Query.Operator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringThe "from" field of the join (the query is done on docs which hold this field)protected QueryThe query to apply on joined docsprotected StringThe "to" field of the join (returned docs hold this field)Fields inherited from interface org.ametys.cms.search.query.QueryBOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
- 
Constructor SummaryConstructorsConstructorDescriptionSolrNativeJoinQuery(String from, String to, Query subQuery) The use of this Query is discouraged.
- 
Method SummaryModifier 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.booleaninthashCode()toString(int indent) Gets a representation of thisQuery, for pretty-printing for logging and debugging purposes
- 
Field Details- 
_fromFieldThe "from" field of the join (the query is done on docs which hold this field)
- 
_toFieldThe "to" field of the join (returned docs hold this field)
- 
_subQueryThe query to apply on joined docs
 
- 
- 
Constructor Details- 
SolrNativeJoinQueryThe use of this Query is discouraged. If possible (when from=id), useJoinQueryinstead.
 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- 
buildDescription copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
- buildin interface- Query
- Returns:
- the solr query string representing the Query object.
- Throws:
- QuerySyntaxException- if the query can't be built because of a syntax error.
 
- 
buildAsJsonDescription copied from interface:QueryBuild 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:
- buildAsJsonin interface- Query
- Returns:
- the solr query representing the Query object.
- Throws:
- QuerySyntaxException- if the query can't be built because of a syntax error.
 
- 
toStringDescription copied from interface:QueryGets a representation of thisQuery, for pretty-printing for logging and debugging purposes
- 
hashCode
- 
equals
 
-