- App Search Guide: other versions:
- Installation
- Getting started
- Authentication
- Limits
- Security & Users
- Guides
- Analytics Tags
- Crawl web content
- Curations
- Facets
- Hierarchical Facets
- Indexing Documents
- Language Optimization
- Log settings
- Meta Engines
- Precision tuning (beta)
- Query Suggestions
- Reference UI
- Relevance Tuning
- Result Settings
- Result Suggestions
- Role Based Access Control
- Sanitization, Raw or Snippet
- Search
- Synonyms
- View web crawler events logs
- Web crawler (beta)
- Web crawler (beta) FAQ
- Web crawler (beta) reference
- Web crawler (beta) events logs reference
- API Reference
- Analytics APIs
- Analytics clicks API
- Analytics counts API
- Analytics queries API
- API logs API
- Click API
- Credentials API
- Curations API
- Documents API
- Engines API
- Log settings API
- Multi search API
- Query suggestion API
- Schema API
- Search API
- Search API boosts
- Search API facets
- Search API filters
- Search API group
- Search API precision (beta)
- Search API result fields
- Search API search fields
- Search API sort
- Search API analytics tags
- Search settings API
- Source engines API
- Synonyms API
- Web crawler (beta) API reference
- API Clients
- Configuration
- Troubleshooting
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Search API precision (beta)
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Search API precision (beta)
editThis functionality is in beta. Beta features are subject to change and are not covered by the support SLA of general release (GA) features. Elastic plans to promote this feature to GA in a future release.
Use the precision
parameter of the search API to tune precision and recall for a query.
Learn more in Precision tuning (beta).
The value of the precision
parameter must be an integer between 1
and 11
, inclusive.
The range of values represents a sliding scale that manages the inherent tradeoff between precision and recall.
Lower values favor recall, while higher values favor precision.
See Precision tuning values for a description of all possible values.
Request template
editGET /api/as/v1/engines/{ENGINE_NAME}/search { "query": "{STRING}", "precision": {INTEGER} }
Example response (200)
edit# 200 OK { "meta" : { # ... "precision" : 3, # ... }, "results" : [ # ... ] }
Example response (400)
edit# 400 Bad Request { "errors": [ "Precision must be an integer between 1 and 11" ] }
Was this helpful?
Thank you for your feedback.