Package org.ametys.cms.search.query
Interface Query
- All Known Implementing Classes:
AbstractDateOperatorQuery,AbstractMultivaluedQuery,AbstractOperatorQuery,AbstractRangeQuery,AbstractTextQuery,AbstractWrapperQuery,AndQuery,BooleanQuery,BoostedQuery,ChildPageQuery,CollectionsQuery,CommentQuery,ConstantNilScoreQuery,ContentAttachmentQuery,ContentIdQuery,ContentLanguageQuery,ContentPageQuery,ContentPrivacyQuery,ContentQuery,ContentTypeOrMixinTypeQuery,ContentTypeQuery,CreationDateQuery,DateQuery,DateRangeQuery,DateTimeQuery,DescendantPageQuery,DocumentTypeQuery,DoubleQuery,DoubleRangeQuery,DublinCoreDateQuery,DublinCoreQuery,EntryPositionQuery,FilenameQuery,FirstValidationDateQuery,FullTextQuery,FuzzyQuery,GeocodeQuery,HasLiveVersionQuery,HistoryStepQuery,IsolateQuery,JoinQuery,KeywordQuery,LastMajorValidationDateQuery,LastModifiedQuery,LastValidationDateQuery,LongQuery,LongRangeQuery,MatchAllQuery,MatchNoneQuery,MaxScoreOrQuery,MimeTypeGroupQuery,MixinTypeQuery,NotQuery,OrphanQuery,OrQuery,PageAttachmentQuery,PageContentQuery,PageIdQuery,PageQuery,ProgramSearchable.ProgramThroughProgramPartsQuery,ProjectQuery,ResourceLocationQuery,RichTextQuery,SharedQuery,SitemapQuery,SiteQuery,SiteTypeQuery,StringQuery,TagQuery,UsersQuery,WorkflowNameQuery,WorkflowStepQuery
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a search predicate.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier 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.rewrite()Rewrite this Query to allow further optimisations.default StringtoString(int indent) Gets a representation of thisQuery, for pretty-printing for logging and debugging purposes
-
Field Details
-
BOOL_MUST
Constant for mandatory boolean clauses- See Also:
-
BOOL_MUST_NOT
Constant for prohibited boolean clauses- See Also:
-
BOOL_SHOULD
Constant for optional boolean clauses- See Also:
-
BOOL_FILTER
Constant for mandatory, but not affecting score, boolean clauses- See Also:
-
-
Method Details
-
build
Build the solr query string representing the Query object.- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException- if the query can't be built because of a syntax error.
-
buildAsJson
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.- Returns:
- the solr query representing the Query object. Can be empty in case of empty query.
- Throws:
QuerySyntaxException- if the query can't be built because of a syntax error.
-
rewrite
Rewrite this Query to allow further optimisations.- Returns:
- a rewritten Query, sementically identical. Can be empty in case of empty query
-
toString
Gets a representation of thisQuery, for pretty-printing for logging and debugging purposes- Parameters:
indent- The current indentation. Base indentation is 2 (for printing a sub-level)- Returns:
- a representation of this
Query
-