2

I have a field "name" and I want to analyze it with two analyzers: name typed StringType analyzer CustomAnalyzer("partial") analyzer CustomAnalyzer("all")

The problem is that in analyzer function it sets the analyzer one value. The result analyzer will be just "all" custom analyzer. How can I do set these two analyzers to one field?

gg gg
  • 129
  • 7
  • 3
    The common way to do it is to define a sub-field to your `name` field. This answer might help: https://stackoverflow.com/questions/43178038/how-to-configure-multiple-analyzers-for-one-field-in-elasticsearch/43178094#43178094 – Val Sep 05 '17 at 08:09
  • Elasticsearch doesn't support what you want, so Val's suggestion is your best workaround. – sksamuel Sep 05 '17 at 11:16
  • Thank you. I used the subfields – gg gg Sep 05 '17 at 13:49

0 Answers0