Skip to content

Search Engine

Overview

The search engine pulls data from data tables, organizes and processes the data, then provides search services to users, displaying information relevant to user queries. The search engine's retrieval process is much faster than data table retrieval, making it useful for scenarios requiring fuzzy search of large amounts of data. Search Engine

Data Sources

One or more data tables can be set as the source of search engine content. Data sources can index partial content through filters. When data sources change (new data created, data modified, data deleted), the search engine automatically rebuilds the index.

TIP

The search engine indexing process is asynchronous and may have some delay.

Usage Scenarios

  • Knowledge base management: Establish search engine data through data table data sources for quick user retrieval
  • Project management: Establish search engine data through data sources such as tasks, defects, and test cases for quick user retrieval
  • Product management: For scenarios with large amounts of product information, establish search engine data for product information, SKUs, etc., for quick user retrieval

Configuration Instructions

Data Source Configuration

Setting ItemDescription
NameData source name; for multiple data sources, the name will be used as the tab name
DescriptionData source description
Source Data TableThe data table from which the data source data comes
Only index data that meets the following rulesLimit the data range indexed by the search engine
Index FieldsSet the data field settings for data source indexing
Search Result Opening MethodSet the behavior after the user clicks on the search result. Form, Automatic
Call AutomationWhen the search result opening method is Automatic, set the automation to be called

Index Fields

Setting ItemDescription
FieldThe field from which the index data comes
Index TypeSet the index type, Full-text Index, Exact Index, Store Only
ImportanceThe priority of index hits
Store Original ValueStore original value; when enabled, the original untransformed data table data will be stored in the search engine
Display in Search ResultsThe position where the field is displayed in search results

Display in Search Results

Content Display

Common Issues

Unable to Search Data

Check server logs

shell
caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=validation_exception, reason=Validation Failed: 1: this action would add [2] shards, but this cluster currently has [999]/[1000]

Need to adjust Elasticsearch's maximum shard count Find elasticsearch.yml Add a new line cluster.max_shards_per_node: 2000 Restart elasticsearch

Elasticsearch Service Failed to Start

Check server logs

shell
bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Solution

    1. Edit system configuration file sudo vi /etc/sysctl.conf
    1. Add (or modify) the following parameter at the end of the file vm.max_map_count = 262144
    1. Save and exit to take effect immediately sudo sysctl -p
    1. Verify the modification is successful sysctl vm.max_map_count