Search code examples
amazon-web-servicesamazon-cloudsearch

AWS Cloudsearch strange issue


I uplaoded a JSON to cloudsearch with 1 field is 'text' type and searchable. It contains a word 'Residential'.

However if I use 'Residentia*', it shows me no search result. But using 'Residenti*' or 'Residential' is fine.

Who know about that? Thanks heaps!


Solution

  • I ran into similar issues with Cloudsearch and I searched everywhere for the answer. I eventually came across a piece about "Algorithmic Stemming": https://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html.

    The default stemming level for English text is "full". I created a custom analysis scheme with stemming set to "None" and applied that to most fields in document and it solved my problems.