I want to add the field mapping after ingestion is done and have specific document structure Document{ Id, fields{key,value}
I could able to add field mapping under document using the script but could not under fields
hi ,
Please let me know if some one has any ideas
Regards
Nagaraju
908 517 6981 tel:908%20517%206981
On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju <budda08nitt@gmail.com mailto:budda08nitt@gmail.com> wrote:
Any one has any ideas
Regards
Nagaraju
908 517 6981 tel:908%20517%206981
On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork <budda08nitt@gmail.com mailto:budda08nitt@gmail.com> wrote:
Hello David ,
Any quick help ? please
On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
Here is my example :
- Index creation request
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0
}
},
"mappings": {
"document": {
"dynamic": "strict",
"properties": {
"id": {
"type": "integer"
},
"rank": {
"type": "float"
},
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"path": {
"type": "string"
},
"
"fields": {
"type": "object",
"properties": {
"item": {
"type": "object",
"properties": {}
},
"keys": {
"type": "string"
},
"values": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"aliases": {
"dfm032": {}
}
}
2)Index a document
{ "index" : {"_type":"document","_id":"1"} }
{"id":1,"rank":0.0,"text":"One","fields":{}}
- Later use feels that he needs a new field with specific behavior so trying to update the behavior
I want create this new field called "name" in fields not under document
{
"document": {
"properties": {
"name": {
"index": "analyzed",
"type": "string",
"fields": {
"name_na": {
"index": "not_analyzed",
"type": "string"
}
}
}
}
}
}
- After updating the mapping ,index a new document with name field
{ "index" : {"_type":"document","_id":"2"} }
{"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
I don't know how to specify that new "name" field should be under fields .
Due to this 4th step fails as a enabled strict dynamic mapping
Can you help me to specify the new field "name" under fields of document ?
On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
I think you are looking after templates.
David
Le 4 févr. 2015 à 06:51, bvnrwork <budda...@gmail.com <>> a écrit :
In other words additional fields are stored as
{
{
Key:"field1"
Value:"value1"
}
{
Key:"field2"
Value:"value2"
}
}
field1 is created after initial field mapping, now how do I define field1 as not analyzed when it is created or do I need to change document structure
On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:
Hi,
We have Document structure like this
Document
{
Key1:Value1
Key2:Value2
Key3:Value3,
Key4:Valu4
List<key,Value> AdditionalFields;
}
Additional fields are the dynamic fields(they can grow or sink) and these fields need to obey certain behavior like analyzed /not analyzed or this sort of stuff when they created.
One thing I don't know /I don't understand is how we define behavior on keys (Fields /field names) from Additional fields ?
For below example document :
Document
{
Key1:Value1,
Key2:Value2
AdditionalFields
{
Key3:Value3
}
If I define Key3 as not analyzed in the index definition then whether Value3 is not going to analyzed
Or Is there a way to do this ?
Regards,
Nagaraju
--
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 <>.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/3921832e-47e5-4565-abed-d57b6aea2aaf%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.
<Unknow_SizeDocs.png>
--
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/t9jgOkWUe60/unsubscribe https://groups.google.com/d/topic/elasticsearch/t9jgOkWUe60/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/eef4eaae-32dc-4e67-b0dd-8cd964376aca%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout 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 mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com https://groups.google.com/d/msgid/elasticsearch/CAFtuXXJTpoGK%3DgBtACgNU8Xjxi3O%2BEXPwQAPCdFG2TJ1hwoTWg%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout.