Skip to main content

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​

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure Elasticsearch connectionConnection
IndexName of the Elasticsearch index to queryString
Query typeType of search query to execute: ALL, MATCH, TERM, RANGE, BOOLEANDropdown
FiltersOptional filters to narrow search resultsToggle Section
Filter FieldName of the field to filter onString
Filter TypeFilter type: UNSPECIFIED, TERM, RANGEDropdown
OutputsDefine and validate output fieldsNUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY
SchemaSelect or create a schema to validate outputSchema

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