Mapping problem


(pablo3027) #1

It's posible create a mapping with templates who setup a field value from
other two fields

example :

This ->
curl -XPOST http://localhost:9200/us_large_cities/city/ -d
{"name":"XXX","state":"AA"}

It will store on elasticsearch that :

{"name":"XXX","state":"AA","mergedFields":"XXX-AA"}

Thats posible??

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #2

Why not doing that on client side?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 11 oct. 2013 à 11:09, Pablo Blasco pablo3027@gmail.com a écrit :

It's posible create a mapping with templates who setup a field value from other two fields

example :

This ->
curl -XPOST http://localhost:9200/us_large_cities/city/ -d {"name":"XXX","state":"AA"}

It will store on elasticsearch that :

{"name":"XXX","state":"AA","mergedFields":"XXX-AA"}

Thats posible??

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(pablo3027) #3

I do it in the client... but i want to known if its posible to create a
derived fields on elasticsearch....

Thanks for the answer

2013/10/11 David Pilato david@pilato.fr

Why not doing that on client side?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 11 oct. 2013 à 11:09, Pablo Blasco pablo3027@gmail.com a écrit :

It's posible create a mapping with templates who setup a field value from
other two fields

example :

This ->
curl -XPOST http://localhost:9200/us_large_cities/city/ -d
{"name":"XXX","state":"AA"}

It will store on elasticsearch that :

{"name":"XXX","state":"AA","mergedFields":"XXX-AA"}

Thats posible??

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/3VvFldWw8rw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Saludos,
Pablo Blasco Martinavarro.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #4

May be update API will help you here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html

That said, I'm still wondering about the use case.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 11 oct. 2013 à 11:24, Pablo Blasco pablo3027@gmail.com a écrit :

I do it in the client... but i want to known if its posible to create a derived fields on elasticsearch....

Thanks for the answer

2013/10/11 David Pilato david@pilato.fr
Why not doing that on client side?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 11 oct. 2013 à 11:09, Pablo Blasco pablo3027@gmail.com a écrit :

It's posible create a mapping with templates who setup a field value from other two fields

example :

This ->
curl -XPOST http://localhost:9200/us_large_cities/city/ -d {"name":"XXX","state":"AA"}

It will store on elasticsearch that :

{"name":"XXX","state":"AA","mergedFields":"XXX-AA"}

Thats posible??

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/3VvFldWw8rw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Saludos,
Pablo Blasco Martinavarro.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(pablo3027) #5

I want to create the document with the minimal number of fields...
The target its create the routing from this merged field value ... when you
create a mapping the path field on the routing only allows one field from
the mapping.

2013/10/11 David Pilato david@pilato.fr

May be update API will help you here:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html

That said, I'm still wondering about the use case.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 11 oct. 2013 à 11:24, Pablo Blasco pablo3027@gmail.com a écrit :

I do it in the client... but i want to known if its posible to create a
derived fields on elasticsearch....

Thanks for the answer

2013/10/11 David Pilato david@pilato.fr

Why not doing that on client side?

--
David Pilato | Technical Advocate | *Elasticsearch.comhttp://elasticsearch.com/
*
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 11 oct. 2013 à 11:09, Pablo Blasco pablo3027@gmail.com a écrit :

It's posible create a mapping with templates who setup a field value from
other two fields

example :

This ->
curl -XPOST http://localhost:9200/us_large_cities/city/ -d
{"name":"XXX","state":"AA"}

It will store on elasticsearch that :

{"name":"XXX","state":"AA","mergedFields":"XXX-AA"}

Thats posible??

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/3VvFldWw8rw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Saludos,
Pablo Blasco Martinavarro.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/3VvFldWw8rw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Saludos,
Pablo Blasco Martinavarro.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #6