Insensitive searching

Good morning, I am struggling with insensitive searching (elasticsearch version 2.4.6).

Currently, I am using Ruby on Rails and using wrapper for Elasticsearch.

My configuration is:

(record has a string for example: "this is Computer!")
when a query is "is Comp" or "is comp" it should find the record with "this is Computer!" string

  query: {
    filtered: {
      query: {
        regexp: {
          '_all': ".*#{query}.*"
        }
      }
    }
  }

also I have settings:

"analyzer": "custom_keyword" with:

{
  "filter": ["lowercase"],
  "type": "keyword"
}

and it works with:

"_all": {
  "analyzer": "custom_keyword"
}

What is wrong with that? Thanks for suggestions

Updated:

Found something like https://github.com/elastic/elasticsearch/issues/18064#issuecomment-259449484
Testing it.

Please check the section on custom analyzer for Elasticsearch Guide. It explain pretty well the concept of the analysis and gives good examples on how to use it.

I suspect that you wanted to do something like this:

{
  "filter": ["lowercase"],
  "type": "custom",
  "tokenizer":      "standard"
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.