Class Query
- java.lang.Object
- 
- com.lucidworks.search.dsl.DslBase
- 
- com.lucidworks.search.dsl.request.DslCloneable
- 
- com.lucidworks.search.dsl.request.query.Query
 
 
 
- 
- Direct Known Subclasses:
- AbstractLeafQuery,- BoostQuery,- CompoundQuery,- GraphQuery,- JoinQuery,- NegateQuery
 
 public abstract class Query extends DslCloneable 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Queryclone()abstract java.util.List<Query>getChildQueries()Returns all the children of the query in question.abstract booleanisEmptyQuery()abstract booleanremoveChildQuery(Query toRemove)Remove 'toRemove', if 'toRemove' is currently a child of this Query object.abstract booleanreplaceChildQuery(Query toReplace, Query replacement)Swap 'replacement' in as a replacement, if 'toReplace' is currently a child of this Query object.- 
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneableclone, deepClone
 
- 
 
- 
- 
- 
Method Detail- 
getChildQueriespublic abstract java.util.List<Query> getChildQueries() Returns all the children of the query in question. The returnedListis provided as a copy - changes made to it do not impact the originating Query object in any way.
 - 
replaceChildQuerypublic abstract boolean replaceChildQuery(Query toReplace, Query replacement) Swap 'replacement' in as a replacement, if 'toReplace' is currently a child of this Query object. Because a tree of Query objects might conceivably have repeated clauses, this method is implemented to test 'toReplace' using reference-equality instead of value-equality.- Returns:
- true if a replacement was made, false otherwise.
 
 - 
removeChildQuerypublic abstract boolean removeChildQuery(Query toRemove) Remove 'toRemove', if 'toRemove' is currently a child of this Query object. Because a tree of Query objects might conceivably have repeated clauses, this method is implemented to test 'toRemove' using reference-equality instead of value-equality.- Returns:
- true if a removal was made, false otherwise.
 
 - 
isEmptyQuerypublic abstract boolean isEmptyQuery() - Returns:
- true if this query is now essentially "empty" (doesn't affect query logic at all) and can now be removed from the query tree. This can happen, for example, if all child queries were removed and the query logic depends on having at least one child query.
 
 - 
clonepublic abstract Query clone() - Specified by:
- clonein class- DslCloneable
 
 
- 
 
-