capabilities.work

Create or update a single query rule

One step with Elastic Stack. We can help you get access.

Get something done

Create or update a single query rule

Use Elastic Stack: its Elasticsearch Request & Response Specification Query Rules API lets you create or update a single query rule in a single step (PUT /_query_rules/{ruleset_id}/_rule/{rule_id}). capabilities.work can help you get signed up and connected.

  • How do I pin specific documents to the top when a query matches certain criteria?
  • Can I add one rule to a ruleset without resending the whole ruleset?
  • Can a single rule pin by ids and docs at the same time?
Say it to your AI assistant
  • Add a {type} rule {rule_id} to ruleset {ruleset_id} with criteria {criteria} and actions {actions}.
  • Update rule {rule_id} in {ruleset_id} as type {type}, matching {criteria}, doing {actions}, at priority {priority}.
For your developer

PUT /_query_rules/{ruleset_id}/_rule/{rule_id} in Elasticsearch Request & Response Specification Query Rules API. Full spec on APIs.io.