CloudSearch AWS Console - Dynamic Field Creation

0

I am trying to create a dynamic field in a new domain i have created in AWS cloudsearch through the AWS console. Based on the documentation i have read in order to create a dynamic field through the aws console, i have to add a new index field and use a wildcard * at the beginning or end of the index field name eg. *test. When i try to do this I get he following error message: Index field names must start with a lower case letter. Specify a index field name using the following characters: a-z (lower case letters), 0-9, and _ (underscore). Can you please let me know how to add dynamic fields to my cloudsearch domain through the AWS console

1 Answer
0

Hello,

Dynamic field names must either begin or end with a wildcard (*). The string before or after the wildcard can contain the same set of characters as a regular index field. I have replicated this in my test environment and received the same message.

Index field names must start with a lower case letter. Specify a index field name using the following characters: a-z (lower case letters), 0-9, and _ (underscore).

However, I observed that this issue arises while using new console of Amazon Cloudsearch service. Using the old console of Amazon Cloudsearch service, you will be able to successfully create the dynamic field.

Our internal cloudsearch team is aware of this issue and working to fix this issue as soon as possible. Until then, as a workaround, I would suggest you to try using old console of Amazon Cloudsearch service to create dynamic fields.

Please note that the options you can configure for dynamic fields are the same as for static fields. Similarly, document field names that match a dynamic field must meet all the same criteria as static field names. Following below steps, you can configure a new dynamic field .

Steps

  1. Open the Amazon CloudSearch console at https://console.aws.amazon.com/cloudsearch/home . Please make sure you are using old console. (This link would generally re-direct you to old console).
  2. In the left navigation pane, choose Domains.
  3. Click the name of the domain that you want to configure, then go to the Indexing options tab.
  4. Choose New index field to add a field specification to the list.
  5. Specify a unique name for the field, for example, enter '*test' and select the field type.
  6. Select the query details that you want to enable for the field.
  7. Select the analysis scheme to use for each text field. The analysis scheme specifies the language-specific text processing options that are used during indexing. By default, text fields use the en_default analysis scheme.
  8. Specify a default value for the field (optional). This value is used when no value is specified for the field in the document data.
  9. Optionally, add additional fields in Source field.
  10. Choose Submit.

Note that when you add fields or modify existing fields, you must explicitly issue a request to re-index your data when you are done making configuration changes.

You may refer below documentation for more information regarding configuring Dynamic Fields in Amazon CloudSearch.

[+] https://docs.aws.amazon.com/cloudsearch/latest/developerguide/using-dynamic-fields.html#configuring-dynamic-fields

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions