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), useJoinQuery
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
Fields Modifier and Type Field Description protected String
_fromField
The "from" field of the join (the query is done on docs which hold this field)protected Query
_subQuery
The query to apply on joined docsprotected String
_toField
The "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 String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
int
hashCode()
String
toString(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), 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 Detail
-
build
public String build() throws QuerySyntaxException
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
public String toString(int indent)
Description copied from interface:Query
Gets a representation of thisQuery
, for pretty-printing for logging and debugging purposes
-
-