Mudanças entre as edições de "Configurando analyzers para um index"
De Basef
(Criou página com 'Segue abaixo exemplo: <source lang="javascript"> PUT /catalogo_v2 { "settings": { "index": { "number_of_shards": 3, "number_of_replicas": 0 } }, "m...') |
|||
Linha 2: | Linha 2: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
− | PUT / | + | PUT /catalogo |
{ | { |
Edição atual tal como às 09h22min de 27 de julho de 2017
Segue abaixo exemplo:
PUT /catalogo { "settings": { "index": { "number_of_shards": 3, "number_of_replicas": 0 } }, "mappings": { "pessoas_v2": { "_all": { "type": "string", "index": "analyzed", "analyzer": "portuguese" }, "properties": { "cidade": { "type": "string", "index": "analyzed", "analyzer": "portuguese" }, "estado": { "type": "string" }, "formação": { "type": "string", "index": "analyzed", "analyzer": "portuguese" }, "interesses": { "type": "string", "index": "analyzed", "analyzer": "portuguese" }, "nome": { "type": "string", "index": "analyzed", "analyzer": "portuguese" }, "país": { "type": "string", "index": "analyzed", "analyzer": "portuguese" } } } } }