I did something like this:
"mappings": {
"produto_cadastro": {
"properties": {
"id_instancia": {
"type": "string",
"include_in_all": false
}
}
}
}
On Friday, March 6, 2015 at 9:29:21 AM UTC-3, David Pilato wrote:
>
> What is your mapping for this field?
>
> --
> *David Pilato* - Developer | Evangelist
> *Elasticsearch.com <http://Elasticsearch.com>*
> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr
> <https://twitter.com/elasticsearchfr> | @scrutmydocs
> <https://twitter.com/scrutmydocs>
>
>
>
>
> Le 6 mars 2015 à 13:27, João Lima <[email protected] <javascript:>>
> a écrit :
>
> I'm trying to make a query like this:
>
> {
> "query" :{
> "filtered" :{
> "query" :{
> "multi_match" : {
> "query" : "Vonder Carregador de Baterias CBV 0900 - 110V",
> "fields" : [ "nome^10", "descricao" ],
> "operator" : "or"
> }
> },
> "filter" : {
> "bool" : {
> "must" : [
> {"term" : { "ativo" : 1 }},
> {"term" : {"id_instancia": "Master_cleaner"}},
> ]
> }
> }
> }
> }
> }
> But when I filter some term with "_" it doesn't work.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/481d9ee8-f5f0-43b2-a54d-06d9a6f25ae7%40googlegroups.com
>
> <https://groups.google.com/d/msgid/elasticsearch/481d9ee8-f5f0-43b2-a54d-06d9a6f25ae7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/47c6c7ba-fe84-4079-a454-2e1e224308f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.