How to make search case-insensitive?

Viewed 255

How can i make the search results case-insensitive?

Current setup:

  • Apache Answer 1.3.1 Docker image
  • Database: Postgresql 16.3.0 (latest bitnami helm chart)

Currently I only get search results, if the search term is written in the exact same case, e.g. searching for 'markdown' does not return questions containing the term 'Markdown'.

Is there a way to fix this? Thank you in advance!

1 Answers

Thank you for the explanation. So the postgresql encoding is the culprit here.
I have already looked into the available search plugins and tried out elasticsearch. While this solves the problem of case sensitivity, it seem like answers and comments (also new ones) are no longer indexed. So I can only find terms which are part of the actual question. Also, with elasticsearch wildcards do not seem to work.
Any input on this would be much appreciated.

Thank you for the feedback. Regarding the issue with the ES plugin, I suggest you submit an issue, and perhaps someone will fix such a bug.

https://github.com/apache/incubator-answer-plugins/issues