Search
Elasticsearch Plugin – Search Action
Summary (SEO Meta Description):
The Search Action of the Elasticsearch Plugin queries an Elasticsearch index to retrieve data based on a variety of query types and filters.
It enables powerful, real-time search capabilities within WeHub workflows.
Overview
The Search Action allows your workflow to search and retrieve documents from an Elasticsearch index using different query modes and filters.
This is ideal for analytics, reporting, and building data-driven applications.
Typical Use Cases:
- Search customer records or product data in real time
- Retrieve logs or system metrics for monitoring dashboards
- Filter datasets by date, range, or specific field values
- Power search functionality in applications or reporting tools
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure Elasticsearch connection | Connection | 
| Index | Name of the Elasticsearch index to query | String | 
| Query type | Type of search query to execute: ALL, MATCH, TERM, RANGE, BOOLEAN | Dropdown | 
| Filters | Optional filters to narrow search results | Toggle Section | 
| Filter Field | Name of the field to filter on | String | 
| Filter Type | Filter type: UNSPECIFIED, TERM, RANGE | Dropdown | 
| Outputs | Define and validate output fields | NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY | 
| Schema | Select or create a schema to validate output | Schema | 
FAQ
Q: What’s the difference between query types?
A:
- ALL: Returns all documents in the index.
- MATCH: Full-text search for documents matching a query string.
- TERM: Exact match on a specific field.
- RANGE: Search for documents within a specified range (e.g., dates, numbers).
- BOOLEAN: Combine multiple queries with AND/OR logic.
Q: How do filters work?
A: Filters refine the query results. Choose a field and a filter type (TERM or RANGE) to apply additional constraints.
Q: Can I output multiple field types?
A: Yes. The output section supports multiple data types including NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, and ANY.
Q: Is schema selection required?
A: No. It’s optional but recommended for validating and structuring the output.
Keywords: WeHub Elasticsearch Plugin, Search Action, Elasticsearch Query, Real-time Search, Workflow Data Retrieval