Could the analyzer be passed with the index and bulk api?
Thanks
Could the analyzer be passed with the index and bulk api?
Thanks
No, you can use the analyzer mapping to control it from a field within the
indexed doc.
On Wed, Jan 5, 2011 at 1:21 PM, sam mishra.sameek@gmail.com wrote:
Could the analyzer be passed with the index and bulk api?
Thanks
I am using Rabbitmq River,The format of the messages follows the bulk
API format using Java:
String message= " {"index" : { "_index" : "test", "_type" :
"type1", "_id" : "2" } }\n"+
" {"id":"first","keyword":"rabin
"}"
I want to add analyzer in field id and keyword,for that i am using
below following Explicit mappings:
String message=" {"index" : { "_index" : "test", "_type" :
"type1", "_id" : "2" } }\n"+
"{"type1" : { "properties": {"id":
{"type":"string","index":"analyzed"},"keyword":{"type":
"string","index":"analyzed"}}}}\n"+
" {"id":"first","keyword":"rabin"}"
This settings is not working.what should be the correct mapping for
applying analyzer to the index.
Thanks
On Jan 5, 5:26 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
No, you can use the analyzer mapping to control it from a field within the
indexed doc.On Wed, Jan 5, 2011 at 1:21 PM, sam mishra.sam...@gmail.com wrote:
Could the analyzer be passed with the index and bulk api?
Thanks
You need to predefine the mapping using the put mapping API, and then start indexing. I suggest you give it a go using simple curl requests, and then you can test with the bulk api.
On Monday, January 10, 2011 at 7:49 AM, sam wrote:
I am using Rabbitmq River,The format of the messages follows the bulk
API format using Java:String message= " {"index" : { "_index" : "test", "_type" :
"type1", "_id" : "2" } }\n"+
" {"id":"first","keyword":"rabin
"}"I want to add analyzer in field id and keyword,for that i am using
below following Explicit mappings:String message=" {"index" : { "_index" : "test", "_type" :
"type1", "_id" : "2" } }\n"+
"{"type1" : { "properties": {"id":
{"type":"string","index":"analyzed"},"keyword":{"type":
"string","index":"analyzed"}}}}\n"+
" {"id":"first","keyword":"rabin"}"This settings is not working.what should be the correct mapping for
applying analyzer to the index.Thanks
On Jan 5, 5:26 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
No, you can use the analyzer mapping to control it from a field within the
indexed doc.On Wed, Jan 5, 2011 at 1:21 PM, sam mishra.sam...@gmail.com wrote:
Could the analyzer be passed with the index and bulk api?
Thanks
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.