Package com.algolia.search.models.rules
Class RuleQuery
- java.lang.Object
-
- com.algolia.search.models.rules.RuleQuery
-
- All Implemented Interfaces:
Serializable
public class RuleQuery extends Object implements Serializable
Query Rules allows performing pre- and post-processing on queries matching specific patterns.- See Also:
- Algolia.com, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnchoring()StringgetContext()BooleangetEnabled()LonggetHitsPerPage()LonggetPage()StringgetQuery()RuleQuerysetAnchoring(String anchoring)Set the anchoring, restricts the search to rules with a specific anchoring typeRuleQuerysetContext(String context)Set the context, restricts the search to rules with a specific context (exact match)RuleQuerysetEnabled(Boolean enabled)RuleQuerysetHitsPerPage(Integer hitsPerPage)Set the number of hits per page.RuleQuerysetHitsPerPage(Long hitsPerPage)Set the number of hits per page.RuleQuerysetPage(Integer page)Set the page to retrieve (zero base).RuleQuerysetPage(Long page)Set the page to retrieve (zero base).RuleQuerysetQuery(String query)Set the full text queryStringtoString()
-
-
-
Constructor Detail
-
RuleQuery
public RuleQuery(String query)
-
-
Method Detail
-
getQuery
public String getQuery()
-
getAnchoring
public String getAnchoring()
-
setAnchoring
public RuleQuery setAnchoring(String anchoring)
Set the anchoring, restricts the search to rules with a specific anchoring type
-
getContext
public String getContext()
-
setContext
public RuleQuery setContext(String context)
Set the context, restricts the search to rules with a specific context (exact match)
-
getPage
public Long getPage()
-
setPage
public RuleQuery setPage(Integer page)
Set the page to retrieve (zero base). Defaults to 0.
-
getHitsPerPage
public Long getHitsPerPage()
-
setHitsPerPage
public RuleQuery setHitsPerPage(Long hitsPerPage)
Set the number of hits per page. Defaults to 10.
-
setHitsPerPage
public RuleQuery setHitsPerPage(Integer hitsPerPage)
Set the number of hits per page. Defaults to 10.
-
getEnabled
public Boolean getEnabled()
-
-