Search code examples
amazon-web-servicesamazon-cloudsearch

AWS CloudSearch Dynamic fields aren't mapping


I have an index field with a name of "*_i" (without quotes) on AWS CloudSearch: *_i dynamic field

I then have the following document:

[
  {
    "type": "add",
    "id": "file_3",
    "fields": {
      "tenant_id": 1,
      "file_id": 3,
      "file_name": "TestWordDoc.docx",
      "file_size": "10795",
      "file_created_date": "2015-11-13T17:05:33Z",
      "file_contents": "The quick brown fox jumps over the lazy dog pdf",
      "file_custom_field_2_text": "This is a file text custom field value",
      "review_rating_i": 123
    }
  }
]

But when I try to upload the search document to AWS it doesn't match the dynamic field with "review_rating_i":

aws refusing to match dyno field

What am I doing wrong? I followed the instructions as per the official documentation.


Solution

  • What happens if you just ignore the message and Upload Documents? I think you may be able to search with Search Fields: review_rating_i