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
public class SolrNativeJoinQuery extends Object implements Query
The use of this Query is discouraged. If possible (when from=id), useJoinQueryinstead.
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
Fields Modifier and Type Field Description protected String_fromFieldThe "from" field of the join (the query is done on docs which hold this field)protected Query_subQueryThe query to apply on joined docsprotected String_toFieldThe "to" field of the join (returned docs hold this field) 
- 
Constructor Summary
Constructors Constructor Description SolrNativeJoinQuery(String from, String to, Query subQuery)The use of this Query is discouraged. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.booleanequals(Object obj)inthashCode()StringtoString(int indent)Gets a representation of thisQuery, for pretty-printing for logging and debugging purposes 
 - 
 
- 
- 
Constructor Detail
- 
SolrNativeJoinQuery
public SolrNativeJoinQuery(String from, String to, Query subQuery)
The 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 Detail
- 
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
 buildin 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
public String toString(int indent)
Description copied from interface:QueryGets a representation of thisQuery, for pretty-printing for logging and debugging purposes 
 - 
 
 -