Era Software

3. Query data

With EraSearch, you can query data with the EraSearch REST API or the EraSearch UI. This page covers how to view and query data in the EraSearch UI.

Access the EraSearch UI

To start, access the UI by visiting your EraCloud account and clicking EraSearch UI. By default, the UI displays all data written in the past 15 minutes.

If you wrote the sample data to your database, your EraSearch UI looks like the screenshot below. Notice that EraSearch auto-assigns _lid and _ts fields to your documents:

  • _lid is the unique numerical identifier for the document and it matches the _id field mentioned in the previous guide
  • _ts is the timestamp EraSearch assigned to your document at the time of the write — the time unit is epoch time in milliseconds

EraSearch UI with sample data

Query data in the EraSearch UI

EraSearch supports most of Elasticsearch's query string syntax. You can use the same syntax to query data based on keywords, ranges, booleans, and wildcards.

For example, to view only documents where the _line field includes the word forest, enter this query in the EraSearch UI search box:

_line:forest

The EraSearch UI returns the one document matching your search criteria. Click the returned document to get more information about your data.

Next steps

Congrats! You’ve completed the EraSearch getting started series. Visit these pages to learn more about working with EraSearch: