Industry Algorithm Edition for content communities

Updated at:

Configuration procedure

1. In the OpenSearch Industry Algorithm Edition console, go to the Instance Management page and click Create Instance.

2. On the buy page, set the product edition to Industry Algorithm Edition and the industry type to Content Community. Based on your business requirements, set the cluster preference to Exclusive Cluster - General-purpose, Compute-optimized, or Storage-optimized. Other configurations are the same as those for the general-purpose type.

3. After you complete the purchase, confirm the order. The page displays the parameter configurations, including the region, application name, application type, edition type, industry type, purchased specifications, storage capacity, and computing resources. After you confirm that the configurations are correct, select OpenSearch Pay-As-You-Go Service Agreement and click Activate Now.

4. After the activation succeeds, go to Instance Management> Application List, find the application, and click Configure".

Then, configure the application by performing the following steps in sequence: Select Features --> Application Schema --> Index Schema --> Data Source --> Complete:

(1)Select Features: Set the vertical category to IT. You can select the template features as needed (all features are selected by default). Then, click Next.

The template features include query analysis (IT term weight, IT synonym package, text vectorization, and more), sort policies (multi-channel search, text relevance, and vector relevance), and drop-down suggestions.

(2) Application Schema: This section describes how to create the application schema by using a data source. After you complete the configuration, click Next. The top of the page displays the available field labels (Article Title, Article Details, Article Author, Article Summary, Reply Count, Article Tags, Creation Time/Modification Time). In the table, select a field label and a type for each field.

Note: Field labels are used to quickly generate the industry-enhanced index schema, query analysis rules, and sort policies. Make sure that you add field labels to the corresponding fields in the application schema as described above.

(3) Index Schema: On the index schema configuration page, add index labels to the index fields and specify the analysis methods. Then, click Next.

Note: Index labels are used to quickly generate query analysis rules and sort policies. Make sure that you add index labels to the corresponding indexes in the index schema. The mappings are as follows:

1. The fields configured as Article Details, Article Title in the application schema must be configured as a composite index with the Default Index index label, and the analysis method must be set to Industry - Content IT Analysis";

2. The field configured as Article Title in the application schema must have the Vector Index index label, and the analysis method must be set to Vector - Content IT".

(4) Data Source: OpenSearch currently supports the following cloud data sources: RDS, MaxCompute, POLARDB.

Note: You can also upload data to OpenSearch by using the API.

​

(5) Complete the configuration:

The page displays the Industry-enhanced application configuration completed message. Next, you can: 1. Configure query analysis by using the query analysis feature package of the selected industry template. 2. Configure sort policies by using the selected sort policy model. 3. Configure and use the drop-down suggestion feature.

Query testing

Search testing

After the index is built, you can test the indexes that correspond to the industry text analyzer of Industry Algorithm Edition for content communities on the Extended Features > Search Test page.

For the default index, enter the following query clause: default:'enterprise'

Vector retrieval

To test the vector retrieval feature, perform the following steps:

1. On the Search Algorithm Center > Retrieval Configuration > Query Analysis Configuration page, configure the text vectorization feature in sys_default, the query analysis rule that the industry template generates by default: Click sys_default to open the rule editing panel. Confirm that the industry type is Content Community and the vertical category is IT. In the feature description section, select Text Vectorization, set the vector index to vector, and then click OK.

2. On the Extended Features > Search Test page, add fixed parameters for testing:

Required parameters:
query=default:'enterprise'
qp=sys_default
raw_query=enterprise

You can view the vector results in the query analysis process: Click the Query Analysis Process link in the search results. The dialog box that appears shows each analysis step (spelling correction, normalization, tokenization, term weight, text vectorization, and more). The text vectorization step shows that the vector index is vector and the vector dimension is 128.

Note

  • The vector index takes effect only after you configure the text vectorization feature in query analysis.

  • The index for which query analysis is configured must use Industry - Content IT Analysis, the industry must be set to Content Community, and in the text vectorization feature, you must select the analyzer that is configured with Vector - Content IT.

Multi-channel retrieval

By default, Industry Algorithm Edition for content communities generates a multi-channel search policy named sys_strategy for your instance. To test the multi-channel search feature, configure specific parameters on the Extended Features > Search Test page. Refer to the following example:

Required parameters:
query=default:'enterprise'
qp=sys_default
raw_query=enterprise
search_strategy=sys_strategy

Usage notes

  • General-purpose applications can be converted to Industry Algorithm Edition applications, but Industry Algorithm Edition applications cannot be converted to general-purpose applications.

  • "Vector - Content IT type cannot be used alone. It takes effect only after you configure the text vectorization feature in query analysis for an index that is configured with Industry - Content IT Analysis.

  • Industry Algorithm Edition for content communities applies only to applications in exclusive clusters.

  • If you want the system to automatically generate vectors for a field, set the field to the TEXT type when you add it, and set the index to the Vector - Content IT type when you configure the index.

  • You must add the field names that correspond to the field labels in the application schema. Otherwise, an error is reported.

  • You must add the index names that correspond to the index labels in the index schema. Otherwise, you cannot proceed to the next step.