Autogeneration of the schema from the data. Plus I know that one field is a parent/child relationship. How to deal with that?


(Olivier Rossel) #1

I mostly use the schemaless features of ElasticSearch.
But sometimes, I have a field that is typed as a String whereas it is in
fact the parent field of a parent/child relationship.

What is the best strategy to define those parent fields AND still use the
autogeneration of the schema by Elasticsearch?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8a49e560-ce4b-4e8b-a2ed-ca610a25b92a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Ivan Brusic) #2

Can you establish a naming convention for the parent fields? You can
probably use index templates:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html

--
Ivan

On Thu, Jan 23, 2014 at 1:55 PM, Olivier Rossel olivier.rossel@gmail.comwrote:

I mostly use the schemaless features of ElasticSearch.
But sometimes, I have a field that is typed as a String whereas it is in
fact the parent field of a parent/child relationship.

What is the best strategy to define those parent fields AND still use the
autogeneration of the schema by Elasticsearch?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8a49e560-ce4b-4e8b-a2ed-ca610a25b92a%40googlegroups.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCgrmQKmjHkjTyYnUySdKd4j7Y%3DZYQ9%3DKyvy_mBnsqVoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3