java.lang.Object
io.vanslog.spring.data.meilisearch.core.query.BaseQuery
All Implemented Interfaces:
Query
Direct Known Subclasses:
BasicQuery, IndexQuery

public abstract class BaseQuery extends Object implements Query
  • Field Details

  • Constructor Details

  • Method Details

    • getSort

      @Nullable public Sort getSort()
    • setSort

      public void setSort(@Nullable Sort sort)
    • getPageable

      public Pageable getPageable()
    • setPageable

      public final <T extends Query> T setPageable(Pageable pageable)
    • addSort

      public final <T extends Query> T addSort(@Nullable Sort sort)
    • getQ

      @Nullable public String getQ()
      Description copied from interface: Query
      Get the search query text
      Specified by:
      getQ in interface Query
      Returns:
      null if not set
    • setQ

      public void setQ(@Nullable String q)
      Description copied from interface: Query
      Set the search query text
      Specified by:
      setQ in interface Query
      Parameters:
      q - search query text
    • getAttributesToRetrieve

      @Nullable public String[] getAttributesToRetrieve()
    • setAttributesToRetrieve

      public void setAttributesToRetrieve(@Nullable String[] attributesToRetrieve)
    • getAttributesToCrop

      @Nullable public String[] getAttributesToCrop()
    • setAttributesToCrop

      public void setAttributesToCrop(@Nullable String[] attributesToCrop)
    • getCropLength

      @Nullable public Integer getCropLength()
    • setCropLength

      public void setCropLength(@Nullable Integer cropLength)
    • getCropMarker

      @Nullable public String getCropMarker()
    • setCropMarker

      public void setCropMarker(@Nullable String cropMarker)
    • getHighlightPreTag

      @Nullable public String getHighlightPreTag()
    • setHighlightPreTag

      public void setHighlightPreTag(@Nullable String highlightPreTag)
    • getHighlightPostTag

      @Nullable public String getHighlightPostTag()
    • setHighlightPostTag

      public void setHighlightPostTag(@Nullable String highlightPostTag)
    • getMatchingStrategy

      @Nullable public com.meilisearch.sdk.model.MatchingStrategy getMatchingStrategy()
      Description copied from interface: Query
      Get the search sort
      Specified by:
      getMatchingStrategy in interface Query
      Returns:
      null if not set
    • setMatchingStrategy

      public void setMatchingStrategy(@Nullable com.meilisearch.sdk.model.MatchingStrategy matchingStrategy)
      Description copied from interface: Query
      Set the search sort
      Specified by:
      setMatchingStrategy in interface Query
      Parameters:
      matchingStrategy - search sort
    • getAttributesToHighlight

      @Nullable public String[] getAttributesToHighlight()
    • setAttributesToHighlight

      public void setAttributesToHighlight(@Nullable String[] attributesToHighlight)
    • getAttributesToSearchOn

      @Nullable public String[] getAttributesToSearchOn()
      Description copied from interface: Query
      Get the search attributes
      Specified by:
      getAttributesToSearchOn in interface Query
      Returns:
      null if not set
    • setAttributesToSearchOn

      public void setAttributesToSearchOn(@Nullable String[] attributesToSearchOn)
      Description copied from interface: Query
      Set the search attributes
      Specified by:
      setAttributesToSearchOn in interface Query
      Parameters:
      attributesToSearchOn - search attributes
    • getFilter

      @Nullable public String[] getFilter()
      Description copied from interface: Query
      Get the search filter
      Specified by:
      getFilter in interface Query
      Returns:
      null if not set
    • setFilter

      public void setFilter(@Nullable String[] filter)
      Description copied from interface: Query
      Set the search filter
      Specified by:
      setFilter in interface Query
      Parameters:
      filter - search filter
    • getFilterArray

      @Nullable public String[][] getFilterArray()
      Description copied from interface: Query
      Get the search filter array
      Specified by:
      getFilterArray in interface Query
      Returns:
      null if not set
    • setFilterArray

      public void setFilterArray(@Nullable String[][] filterArray)
      Description copied from interface: Query
      Set the search filter array
      Specified by:
      setFilterArray in interface Query
      Parameters:
      filterArray - search filter array
    • isShowMatchesPosition

      public boolean isShowMatchesPosition()
    • setShowMatchesPosition

      public void setShowMatchesPosition(boolean showMatchesPosition)
    • getFacets

      @Nullable public String[] getFacets()
    • setFacets

      public void setFacets(@Nullable String[] facets)
    • isShowRankingScore

      public boolean isShowRankingScore()
    • setShowRankingScore

      public void setShowRankingScore(boolean showRankingScore)
    • isShowRankingScoreDetails

      public boolean isShowRankingScoreDetails()
    • setShowRankingScoreDetails

      public void setShowRankingScoreDetails(boolean showRankingScoreDetails)
    • getRankingScoreThreshold

      @Nullable public Double getRankingScoreThreshold()
    • setRankingScoreThreshold

      public void setRankingScoreThreshold(@Nullable Double rankingScoreThreshold)
    • getLocales

      @Nullable public String[] getLocales()
    • setLocales

      public void setLocales(@Nullable String[] locales)
    • getDistinct

      @Nullable public String getDistinct()
    • setDistinct

      public void setDistinct(@Nullable String distinct)