Bug #8676

Elasticsearch analyzers not working over 'multi_field' type fields

Added by José Raddaoui Marín almost 7 years ago. Updated over 6 years ago.

Status:VerifiedStart date:07/10/2015
Priority:HighDue date:
Assignee:Dan Gillean% Done:

0%

Category:Search / Browse
Target version:Release 2.3.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

After the changes introduced in ES 1.0 for the 'multi_field' type fields, the analyzer for the main subfield is not working with our mapping. The analyzer needs to be applied over the field instead of over the main subfield, which is not needed anymore.

We need to change the actual mapping:

"title": {
    "type": "string",
    "fields": {
        "title":   { "type": "string", "analyzer": "std_english" },
        "untouched":   { "type": "string", "index": "not_analyzed" },
        "autocomplete":   { "type": "string", "include_in_all": "false", "analyzer": "autocomplete" }
    }
}

To this one:

"title": {
    "type": "string",
    "analyzer": "std_english",
    "fields": {
        "untouched":   { "type": "string", "index": "not_analyzed" },
        "autocomplete":   { "type": "string", "include_in_all": "false", "analyzer": "autocomplete" }
    }
}

Related issues

Related to Access to Memory (AtoM) - Feature #8687: Improve ES anlyzers for a better work with diacritics Verified 06/03/2015

History

#1 Updated by José Raddaoui Marín almost 7 years ago

  • Status changed from New to Code Review
  • Assignee changed from José Raddaoui Marín to Mike Gale

#2 Updated by José Raddaoui Marín almost 7 years ago

  • Status changed from Code Review to QA/Review
  • Assignee changed from Mike Gale to Dan Gillean

Merged in qa/2.3.x

The i18n fields will be analyzed with the corresponding culture anlayzer instead of with the standard analyzer. We need to test that multi_fields are still working like they should in:

- Usual queries over language fields and all fields (for the main field)
- Autocompletes (for the autocomplete subfield)
- Some facects like the repository locallity facet (for the raw subfield)

#3 Updated by José Raddaoui Marín almost 7 years ago

The search index needs to be rebuilt.

#4 Updated by José Raddaoui Marín almost 7 years ago

  • Related to Feature #8687: Improve ES anlyzers for a better work with diacritics added

#6 Updated by Dan Gillean over 6 years ago

  • Status changed from QA/Review to Verified

As far as I can tell from my tests, everything is working as expected!

Also available in: Atom PDF