Flowpack.ElasticSearch icon indicating copy to clipboard operation
Flowpack.ElasticSearch copied to clipboard

Set fullMappings

Open P34CH opened this issue 7 years ago • 1 comments

Is it correct, that there's currently no possibility to specify the fullMapping property of any Flowpack\ElasticSearch\Domain\Model\Mapping object?

For my current project I need to configure the _all field. That's exactly what the fullMapping property is there for.

In my opinion it would be best to have the option to define the fullMapping as a settings array inside Settings.yaml like this:

Flowpack:
  ElasticSearch:
   indexes:
     [...]
    mapping:
      'person':
        fullMapping:
          _all:
            analyzer: 'nGram_analyzer'
            search_analyzer: 'whitespace_analyzer'

What do you think?

P34CH avatar May 30 '17 07:05 P34CH

@dfeyer i think this can be closed, it's there with public function setFullMapping(array $fullMapping), just not as a configuration.

cwenzelg avatar Jan 04 '18 16:01 cwenzelg