Class BaseQuery
java.lang.Object
io.vanslog.spring.data.meilisearch.core.query.BaseQuery
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
BasicQuery,IndexQuery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected String[]protected String[]protected Integerprotected Stringprotected Stringprotected String[]protected String[]protected String[][]protected Stringprotected Stringprotected String[]protected com.meilisearch.sdk.model.MatchingStrategyprotected Pageableprotected Stringprotected Doubleprotected booleanprotected booleanprotected booleanprotected Sort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T extends Query>
TString[]String[]String[]String[]Get the search attributesString[]String[]Get the search filterString[][]Get the search filter arrayString[]com.meilisearch.sdk.model.MatchingStrategyGet the search sortgetQ()Get the search query textgetSort()booleanbooleanbooleanvoidsetAttributesToCrop(String[] attributesToCrop) voidsetAttributesToHighlight(String[] attributesToHighlight) voidsetAttributesToRetrieve(String[] attributesToRetrieve) voidsetAttributesToSearchOn(String[] attributesToSearchOn) Set the search attributesvoidsetCropLength(Integer cropLength) voidsetCropMarker(String cropMarker) voidsetDistinct(String distinct) voidvoidSet the search filtervoidsetFilterArray(String[][] filterArray) Set the search filter arrayvoidsetHighlightPostTag(String highlightPostTag) voidsetHighlightPreTag(String highlightPreTag) voidsetLocales(String[] locales) voidsetMatchingStrategy(com.meilisearch.sdk.model.MatchingStrategy matchingStrategy) Set the search sortfinal <T extends Query>
TsetPageable(Pageable pageable) voidSet the search query textvoidsetRankingScoreThreshold(Double rankingScoreThreshold) voidsetShowMatchesPosition(boolean showMatchesPosition) voidsetShowRankingScore(boolean showRankingScore) voidsetShowRankingScoreDetails(boolean showRankingScoreDetails) void
-
Field Details
-
q
-
sort
-
pageable
-
attributesToRetrieve
-
attributesToCrop
-
cropLength
-
cropMarker
-
highlightPreTag
-
highlightPostTag
-
matchingStrategy
-
attributesToHighlight
-
attributesToSearchOn
-
filter
-
filterArray
-
showMatchesPosition
protected boolean showMatchesPosition -
facets
-
showRankingScore
protected boolean showRankingScore -
showRankingScoreDetails
protected boolean showRankingScoreDetails -
rankingScoreThreshold
-
locales
-
distinct
-
-
Constructor Details
-
BaseQuery
public BaseQuery() -
BaseQuery
-
BaseQuery
-
-
Method Details
-
getSort
-
setSort
-
getPageable
-
setPageable
-
addSort
-
getQ
Description copied from interface:QueryGet the search query text -
setQ
Description copied from interface:QuerySet the search query text -
getAttributesToRetrieve
-
setAttributesToRetrieve
-
getAttributesToCrop
-
setAttributesToCrop
-
getCropLength
-
setCropLength
-
getCropMarker
-
setCropMarker
-
getHighlightPreTag
-
setHighlightPreTag
-
getHighlightPostTag
-
setHighlightPostTag
-
getMatchingStrategy
Description copied from interface:QueryGet the search sort- Specified by:
getMatchingStrategyin interfaceQuery- Returns:
- null if not set
-
setMatchingStrategy
public void setMatchingStrategy(@Nullable com.meilisearch.sdk.model.MatchingStrategy matchingStrategy) Description copied from interface:QuerySet the search sort- Specified by:
setMatchingStrategyin interfaceQuery- Parameters:
matchingStrategy- search sort
-
getAttributesToHighlight
-
setAttributesToHighlight
-
getAttributesToSearchOn
Description copied from interface:QueryGet the search attributes- Specified by:
getAttributesToSearchOnin interfaceQuery- Returns:
- null if not set
-
setAttributesToSearchOn
Description copied from interface:QuerySet the search attributes- Specified by:
setAttributesToSearchOnin interfaceQuery- Parameters:
attributesToSearchOn- search attributes
-
getFilter
Description copied from interface:QueryGet the search filter -
setFilter
Description copied from interface:QuerySet the search filter -
getFilterArray
Description copied from interface:QueryGet the search filter array- Specified by:
getFilterArrayin interfaceQuery- Returns:
- null if not set
-
setFilterArray
Description copied from interface:QuerySet the search filter array- Specified by:
setFilterArrayin interfaceQuery- Parameters:
filterArray- search filter array
-
isShowMatchesPosition
public boolean isShowMatchesPosition() -
setShowMatchesPosition
public void setShowMatchesPosition(boolean showMatchesPosition) -
getFacets
-
setFacets
-
isShowRankingScore
public boolean isShowRankingScore() -
setShowRankingScore
public void setShowRankingScore(boolean showRankingScore) -
isShowRankingScoreDetails
public boolean isShowRankingScoreDetails() -
setShowRankingScoreDetails
public void setShowRankingScoreDetails(boolean showRankingScoreDetails) -
getRankingScoreThreshold
-
setRankingScoreThreshold
-
getLocales
-
setLocales
-
getDistinct
-
setDistinct
-