João Luca
João Luca

Reputation: 5

Keyword analyzer

is it possible to use the keyword analyzer from https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-keyword-analyzer.html in searchkick?

I want a specific string analyzed in a text field.

Upvotes: 0

Views: 403

Answers (1)

ilvar
ilvar

Reputation: 5841

Yes you can provide an "advanced mapping":

searchkick mappings: {
  properties: {
    name: {type: "keyword"}
  }
}

If you need to create a custom analyzer you can use advanced settings as well:

searchkick settings: {analyzers: {...}}

Upvotes: 1

Related Questions