- 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
- Crawl custom fields using proxy
- Curations
- Elasticsearch search
- Elasticsearch index engines
- Create Elasticsearch index engines
- Configure dynamic field mappings and analyzers in an Elasticsearch index engine
- Elasticsearch engines 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
- Source engines API
- Synonyms API
- Web crawler API reference
- API Clients
- Configuration
- Known issues
- Troubleshooting
ℹ️ For new users, we recommend using our native Elasticsearch tools, rather than the standalone App Search product. We are actively developing new features and capabilities in the Elastic Stack to help you build powerful search applications.
Refer to this blog for more information.
Multi search API
editMulti search API
editSubmit multiple searches and receive multiple sets of results with metadata.
GET <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/engines/<engine_name>/multi_search
POST <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/engines/<engine_name>/multi_search
Request body
edit-
queries
(required) -
Array of objects, where each object represents a search API request body.
The length of the array must be less than or equal to
10
.Within a single request, you are submitting multiple searches. The analytics APIs therefore count each search within the request as a separate query.
Response body
editArray of objects, where each object represents a search API response body.
Examples
editRequest:
curl -X POST '<ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/engines/national-parks-demo/multi_search' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer search-soaewu2ye6uc45dr8mcd54v8' \ -d '{ "queries": [ {"query": "california"}, {"query": "florida"} ] }'
Response:
[ # First query result { "meta": { "alerts": [], "warnings": [], "page": { "current": 1, "size": 10, "total_pages": 1, "total_results": 4 } }, "results": [ { "nps_link": { "raw": "https://www.nps.gov/yose/index.htm" }, "id": { "raw": "park_yosemite" }, "visitors": { "raw": 5028868 }, "title": { "raw": "Yosemite" }, "date_established": { "raw": "1890-10-01T05:00:00+00:00" }, "world_heritage_site": { "raw": "true" }, "_meta": { "score": 7543316 }, "description": { "raw": "Yosemite features sheer granite cliffs, exceptionally tall waterfalls, and old-growth forests at a unique intersection of geology and hydrology. Half Dome and El Capitan rise from the park's centerpiece, the glacier-carved Yosemite Valley, and from its vertical walls drop Yosemite Falls, one of North America's tallest waterfalls at 2,425 feet (739 m) high. Three giant sequoia groves, along with a pristine wilderness in the heart of the Sierra Nevada, are home to a wide variety of rare plant and animal species." }, "states": { "raw": [ "California" ] }, "acres": { "raw": 761747.5 }, "location": { "raw": "37.83,-119.5" }, "square_km": { "raw": 3082.7 } }, # ... More documents (truncated) ] }, # ... Second query result (truncated) ]
On this page
ElasticON events are back!
Learn about the Elastic Search AI Platform from the experts at our live events.
Register nowWas this helpful?
Thank you for your feedback.