Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Add mapping configuration #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented May 20, 2017

As the most used options will be analyzer, boost and index for the end user they will be available under the configuration of the property directly all others will be in the options configuration and will not being validated as there can be added new ones by elasticsearch.

List of available parameters by mapping types

Name Used in all (except binary) Usages text keyword number date boolean binary
analyzer - 1 X
boost Yes 5 X X X X X
eager_global_ordinals - 2 X X
fielddata - 1 X
fielddata_frequency_filter - 1 X
fields - 2 X X
include_in_all - 4 X X X X
index Yes 5 X X X X X
index_options - 2 X X
norms - 2 X X
position_increment_gap - 1 X
store - 6 X X X X X X
search_analyzer - 1 X
search_quote_analyzer - 1 X
similarity - 2 X X
term_vector - 1 X
doc_values - 5 X X X X X
ignore_above - 1 X
null_value - 4 X X X X
normalizer - 1 X
coerce - 1 X
ignore_malformed - 2 X X
format - 1 X

Usage

pucene:
    indices:
        my_index:
            mappings:
                my_type:
                    properties:
                        title:
                            type: "text"
                            index: true
                            analyzer: "standard"
                            options:
                                fields:
                                    raw:
                                        type: text
                                        index: false
                        created:
                            type: "date"
                            options:
                                format: "Y-m-d"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant