amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

case-insensitive sorting of search query results

Open phani-srikar opened this issue 1 year ago • 0 comments

Describe the feature you'd like to request

For AppSync API generated by Amplify, when using sorting, uppercase take precedence over lowercase. Upon researching on this, I found that this is the default behaviour of Elasticsearch, as Elasticsearch treats uppercase and lowercase letters as different characters, sorting them separately. Additionally, I found that it is possible to use 'lowercase' normalizer [1] to ensure case-insensitive sorting.

Describe the solution you'd like

support handling both patterns of sorting

Describe alternatives you've considered

I tried using overrides to update the index settings; however, I couldn't find a way to update them. Could you please confirm if it's possible to update index settings using overrides? If not, are there any other ways to achieve this?

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [ ] ⚠️ This feature might incur a breaking change

phani-srikar avatar Jun 22 '24 04:06 phani-srikar