Hi,
I want to index some Data, where each Document should have a variable
number of fields.
An example because I can't express myself very good this morning:
Apple
Color: Green
Flavor: Sour
Mobilephone
Color: black
Os: Android
My problem is, that "Apple" should not have the field Os and the
Mobilephone shouldnt have the field Flavor in turn.
Im new to Elasticsearch, so maybe there is an easy answer for that.
--
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/783ca00e-dbae-4ad2-955a-61c1af4ef080%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
Hi Dominic,
It's not very clear to me what your question is. You want to reject Apple
documents that have an OS field?
I guess you can either have Apples and Mobilephones in their own type. This
will make it clear which fields belong to which type of document. And
because ES has dynamic mappings enabled by default, you can always add new
types of documents, or new fields to a current type:
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
Best regards
Radu
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/
On Thu, Apr 24, 2014 at 9:52 AM, Dominic Gross dvgrossd@gmail.com wrote:
Hi,
I want to index some Data, where each Document should have a variable
number of fields.
An example because I can't express myself very good this morning:
Apple
Color: Green
Flavor: Sour
Mobilephone
Color: black
Os: Android
My problem is, that "Apple" should not have the field Os and the
Mobilephone shouldnt have the field Flavor in turn.
Im new to Elasticsearch, so maybe there is an easy answer for that.
--
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/783ca00e-dbae-4ad2-955a-61c1af4ef080%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/783ca00e-dbae-4ad2-955a-61c1af4ef080%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 elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHXA0_0DSe%2BmrzZfykt42%2BFQ39EZ_Rj-UOSQ7HaKKgCg9TPcNg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
So I can just write the two Documents (Apple and Mobilephone) to the same
Index (and the same Type?).
--
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/d4446198-a1b1-4d72-876f-711df91aa5b9%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You can do that, too, yes.
On Thu, Apr 24, 2014 at 10:08 AM, Dominic Gross dvgrossd@gmail.com wrote:
So I can just write the two Documents (Apple and Mobilephone) to the same
Index (and the same Type?).
--
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/d4446198-a1b1-4d72-876f-711df91aa5b9%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/d4446198-a1b1-4d72-876f-711df91aa5b9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/
--
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/CAHXA0_12sbbqWyGzu0EXCpsXOBrdXMA72KQucA4GWoxJKN%2BQxA%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
Thats awesome, thank you for your help!
Am Donnerstag, 24. April 2014 09:10:10 UTC+2 schrieb Radu Gheorghe:
You can do that, too, yes.
On Thu, Apr 24, 2014 at 10:08 AM, Dominic Gross <dvgr...@gmail.com <javascript:>
wrote:
So I can just write the two Documents (Apple and Mobilephone) to the same
Index (and the same Type?).
--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d4446198-a1b1-4d72-876f-711df91aa5b9%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/d4446198-a1b1-4d72-876f-711df91aa5b9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/
--
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/487a1a28-1bec-4318-8f0b-a321429cbe08%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You're welcome
On Thu, Apr 24, 2014 at 10:16 AM, Dominic Gross dvgrossd@gmail.com wrote:
Thats awesome, thank you for your help!
Am Donnerstag, 24. April 2014 09:10:10 UTC+2 schrieb Radu Gheorghe:
You can do that, too, yes.
On Thu, Apr 24, 2014 at 10:08 AM, Dominic Gross dvgr...@gmail.com wrote:
So I can just write the two Documents (Apple and Mobilephone) to the
same Index (and the same Type?).
--
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/CAHXA0_1qyz4VsC8uLFwf9yAgkZs4cYYZFMxPzk7JPGm5hKEWwA%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .