Skip to content

Meilisearch JS / index / InlineRule

Type Alias: InlineRule ​

InlineRule = object

Defined in: src/types/search-rules.ts:97

Experimental

Dynamic search rule applied only to the current search query

See ​

https://www.meilisearch.com/docs/reference/api/search/search-with-post

Properties ​

actions? ​

optional actions?: SearchRuleActions

Defined in: src/types/search-rules.ts:115

Actions applied when the rule matches


active? ​

optional active?: boolean

Defined in: src/types/search-rules.ts:111

Whether the rule is active

Inactive rules never apply, but their conditions are still evaluated.


conditions? ​

optional conditions?: SearchRuleConditions

Defined in: src/types/search-rules.ts:113

Conditions that must match before the rule applies


precedence? ​

optional precedence?: number | null

Defined in: src/types/search-rules.ts:105

Precedence when several rules match

Lower numbers win.


uid ​

uid: string

Defined in: src/types/search-rules.ts:99

Unique identifier of the rule