Package com.liferay.portal.search.query
Class QueriesUtil
java.lang.Object
com.liferay.portal.search.query.QueriesUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanQuerystatic BoostingQuerystatic CommonTermsQuerycommonTerms(String field, String text) static ConstantScoreQueryconstantScore(Query query) static DateRangeTermQuerydateRangeTerm(String field, boolean includesLower, boolean includesUpper, String startDate, String endDate) static DisMaxQuerydisMax()documentIdentifier(String index, String type, String id) static ExistsQuerystatic FunctionScoreQueryfunctionScore(Query query) static FuzzyQuerystatic GeoBoundingBoxQuerygeoBoundingBox(String field, GeoLocationPoint topLeftGeoLocationPoint, GeoLocationPoint bottomRightGeoLocationPoint) static GeoDistanceQuerygeoDistance(String field, GeoLocationPoint pinGeoLocationPoint, GeoDistance geoDistance) static GeoDistanceRangeQuerygeoDistanceRange(String field, boolean includesLower, boolean includesUpper, GeoDistance lowerBoundGeoDistance, GeoLocationPoint pinGeoLocationPoint, GeoDistance upperBoundGeoDistance) static GeoPolygonQuerygeoPolygon(String field) static GeoShapeQuerystatic GeoShapeQuerystatic IdsQueryids()static MatchQuerystatic MatchAllQuerymatchAll()static MatchPhraseQuerymatchPhrase(String field, Object value) static MatchPhrasePrefixQuerymatchPhrasePrefix(String field, Object value) static MoreLikeThisQuerymoreLikeThis(String... likeTexts) Deprecated.static MoreLikeThisQuerymoreLikeThis(String[] fields, String... likeTexts) static MoreLikeThisQuerymoreLikeThis(List<String> likeTexts) Deprecated.As of Athanasius (7.3.x), replaced bymoreLikeThis(List, String...)static MoreLikeThisQuerymoreLikeThis(List<String> fields, String... likeTexts) static MoreLikeThisQuerymoreLikeThis(Set<MoreLikeThisQuery.DocumentIdentifier> documentIdentifiers) static MultiMatchQuerymultiMatch(Object value, String... fields) static MultiMatchQuerymultiMatch(Object value, Map<String, Float> fieldsBoosts) static MultiMatchQuerymultiMatch(Object value, Set<String> fields) static NestedQuerystatic PercolateQuerystatic PrefixQuerystatic RangeTermQuerystatic RangeTermQueryrangeTerm(String field, boolean includesLower, boolean includesUpper, Object lowerBound, Object upperBound) static RegexQuerystatic ScriptQuerystatic SimpleStringQuerysimpleString(String query) static StringQuerystatic TermQuerystatic TermsQuerystatic TermsSetQuerystatic WildcardQuerystatic WrapperQuerywrapper(byte[] source) static WrapperQuery
-
Constructor Details
-
QueriesUtil
public QueriesUtil()
-
-
Method Details
-
booleanQuery
-
boosting
-
commonTerms
-
constantScore
-
dateRangeTerm
public static DateRangeTermQuery dateRangeTerm(String field, boolean includesLower, boolean includesUpper, String startDate, String endDate) -
disMax
-
documentIdentifier
public static MoreLikeThisQuery.DocumentIdentifier documentIdentifier(String index, String type, String id) -
exists
-
functionScore
-
fuzzy
-
geoBoundingBox
public static GeoBoundingBoxQuery geoBoundingBox(String field, GeoLocationPoint topLeftGeoLocationPoint, GeoLocationPoint bottomRightGeoLocationPoint) -
geoDistance
public static GeoDistanceQuery geoDistance(String field, GeoLocationPoint pinGeoLocationPoint, GeoDistance geoDistance) -
geoDistanceRange
public static GeoDistanceRangeQuery geoDistanceRange(String field, boolean includesLower, boolean includesUpper, GeoDistance lowerBoundGeoDistance, GeoLocationPoint pinGeoLocationPoint, GeoDistance upperBoundGeoDistance) -
geoPolygon
-
geoShape
-
geoShape
-
ids
-
match
-
matchAll
-
matchPhrase
-
matchPhrasePrefix
-
moreLikeThis
Deprecated.As of Athanasius (7.3.x), replaced bymoreLikeThis(List, String...) -
moreLikeThis
-
moreLikeThis
public static MoreLikeThisQuery moreLikeThis(Set<MoreLikeThisQuery.DocumentIdentifier> documentIdentifiers) -
moreLikeThis
Deprecated.As of Athanasius (7.3.x), replaced bymoreLikeThis(List, String...) -
moreLikeThis
-
multiMatch
-
multiMatch
-
multiMatch
-
nested
-
percolate
-
prefix
-
rangeTerm
-
rangeTerm
public static RangeTermQuery rangeTerm(String field, boolean includesLower, boolean includesUpper, Object lowerBound, Object upperBound) -
regex
-
script
-
simpleString
-
string
-
term
-
terms
-
termsSet
-
wildcard
-
wrapper
-
wrapper
-
moreLikeThis(List, String...)