- App Search Guide: other versions:
- Installation
- Getting started
- Authentication
- Limits
- Users and access
- Guides
- Adaptive relevance events logs reference
- Analytics Tags
- Crawl web content
- Crawl a private network using a web crawler on Elastic Cloud
- Curations
- Elasticsearch search
- Elasticsearch index engines (beta)
- Create Elasticsearch index engines
- Configure dynamic field mappings and analyzers in an Elasticsearch index engine
- Elasticsearch engines precision tuning - text field conventions
- Facets
- Hierarchical Facets
- Indexing Documents
- Language Optimization
- Log settings
- Meta Engines
- Precision tuning (beta)
- Query Suggestions
- Search UI
- Relevance Tuning
- Result Settings
- Result Suggestions
- Role based access control (RBAC)
- Sanitization, Raw or Snippet
- Search
- Synonyms
- View web crawler events logs
- App Search web crawler
- Web crawler FAQ
- Web crawler reference
- Web crawler events logs reference
- API Reference
- Adaptive relevance API reference (beta)
- Analytics APIs
- Analytics clicks API
- Analytics counts API
- Analytics queries API
- API logs API
- Click API
- Credentials API
- Curations API reference
- Documents API
- Elasticsearch search 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
- Search Explain API (beta)
- Source engines API
- Synonyms API
- Web crawler API reference
- API Clients
- Configuration
- Troubleshooting
Search API precision (beta)
editSearch 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.
Precision tuning has no effect in queries that contain synonyms.
To use precision tuning with an Elasticsearch based engine, you must define text subfields that conform to Elasticsearch engines precision tuning - text field conventions.
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 <ENTERPRISE_SEARCH_BASE_URL>/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" ] }
Example response when no precision tuning is enabled (400)
edit# 400 Bad Request { "errors": [ "Precision cannot be changed for this engine, as it does not support precision tuning" ] }
On this page