Terms
Instance management
Term | Description |
Instance | An instance is a set of data configurations of a user, including the data source schema, the index schema, and other attribute configurations. Each instance is a search service. |
Document | A document is a searchable unit of structured data. A document contains one or more fields and must contain a primary key field. OpenSearch uses primary key values to uniquely identify documents. If a primary key value is duplicated, the existing document is overwritten. |
Field | A field is a component of a document. A field consists of a field name and field content. |
Plug-in | To process data during data import, the system provides several built-in data processing plug-ins. You can select plug-ins when you define the application schema or configure data sources. |
Source data | The raw data, which contains one or more source fields. |
Source field | The smallest unit of source data. A source field consists of a field name and a field value. For more information about the supported data types, see Application schemas and index schemas. |
Index | An index is a data structure that is used to accelerate retrieval. You can create multiple indexes for an instance. |
Composite index | You can configure multiple fields of the TEXT or SHORT_TEXT type in the same index to create a composite index. For example, a forum search service needs to provide searches based on the title field and comprehensive searches based on both the title and body fields. In this case, you can create an index named title_search for the title field and a composite index named default for the title and body fields. Queries on the title_search index return results based on titles, and queries on the default index return results based on both titles and content. |
Index field | Index fields are used in query clauses. You must define index fields, which are used to perform high-performance retrieval. |
Attribute field | Attribute fields are used in filter, sort, aggregate, and distinct clauses to implement features such as filtering and statistics. |
Default display field | Default display fields are used to display results. You can use the fetch_fields API parameter to specify the fields that are returned in each result. Note: If you configure the fetch_fields parameter in your program, the parameter overrides the default display field configuration, and the fetch_fields setting in your program takes precedence. If you do not configure the fetch_fields parameter in your program, the default display fields are used. |
Tokenization | Tokenization splits documents into terms. Fields of the TEXT type are split by retrieval unit, and fields of the SHORT_TEXT type are split by single character. For example, the Chinese name Zhejiang Daxue (Zhejiang University) consists of four Chinese characters. For TEXT, it produces two terms: Zhejiang (the province name) and Daxue (university). For SHORT_TEXT, it produces four terms, one for each Chinese character, romanized as Zhe, jiang, da, and xue. The romanizations explain the Chinese example; they are not text submitted to the analyzer. |
term | The phrases produced by tokenization are called terms. |
Index building | After tokenization, indexes are built so that documents can be quickly located based on query requests. The search engine builds two types of lists: inverted lists and forward lists. |
Inverted list | A list that consists of mappings from terms to documents. Query clauses use this structure to perform queries. Example: term1->doc1,doc2,doc3; term2->doc1,doc2. |
Forward list | A list that consists of mappings from documents to fields. Filter clauses use this structure, which delivers slightly lower performance than inverted lists. Example: doc1->id,type,create_time. |
Retrieval | The query keywords are tokenized, and the resulting terms are looked up in the inverted lists to quickly locate documents. |
Number of retrieved documents | The number of documents obtained by retrieval. |
Data synchronization
Term | Description |
Data source | The source of data. Data synchronization from Alibaba Cloud ApsaraDB RDS, MaxCompute, and PolarDB is supported. |
Index rebuilding | Rebuilds indexes. You must rebuild indexes after you configure or modify the application schema or data sources. |
Quota management
Term | Description |
Document capacity | The sum of the total document sizes of all tables in an instance. Field names are not counted, and field content is counted as strings. |
QPS | The number of query requests per second. |
LCU | A logical computing unit (LCU) is a unit that measures search computing capability. One LCU represents the computing capability of 1/100 of a CPU core in a search cluster. |
Fast scaling | You can quickly upgrade or downgrade configurations based on your business requirements. Changes to small specifications take effect in real time. Changes that involve specification conversion, such as converting a shared cluster to an exclusive cluster, take effect only after approval. |
Search
Term | Description |
Sort expression | A sort expression is used to control how search results are sorted. Sort expressions support basic mathematical operations, mathematical functions, and built-in functions. |
Rough sort expression | Performs the first round of broad selection on search results. Documents are scored based on the expression and sorted by score. |
Fine sort expression | Selects the top N documents from the first-round sort results, performs a second round of more detailed score calculation based on the fine sort expression, and sorts the documents by score to produce the final order. |
Search result summary | Text content is usually long. When search results are displayed, only the matched part of the content can be displayed so that users can quickly understand the main content of documents. |
Query analysis | Supports features such as synonyms, spelling correction, stop words, and term weight to understand the search intent of users. |