HI all,
Have anybody encountered the following error before when using bulk java
api to create indices?
[12]: index [201201], type [kba], id
[1326950520-7bfb3ba1ef213e53a8db20fe14b300e5], message
[RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]];
nested: NullPointerException; ]
It looked like that there existed some mismatched fields? but I did not
have some
the mapping setting of my index is listed belows :
XContentBuilder mapping = jsonBuilder()
.startObject()
.startObject("kba")
.startObject("properties")
.startObject("_source").field("compress", "true").endObject()
.startObject("stream_id").field("type",
"string").field("index","no").endObject()
.startObject("source").field("type", "string").field("index",
"no").endObject()
.startObject("epoch_ticks").field("type",
"double").field("index", "no").endObject()
.startObject("zulu_timestamp").field("type",
"string").field("index","no").endObject()
.startObject("title_cleansed").field("type","string").field("index",
"yes").endObject()
.startObject("title_ner").field("type","string").field("index","no").endObject()
.startObject("body_cleansed").field("type","string").endObject()
.startObject("body_ner").field("type","string").field("index","no").endObject()
.endObject()
.endObject()
.endObject();
PutMappingRequest mappingRequest =
Requests.putMappingRequest(indexName).type("kba").source(mapping);
client.admin().indices().putMapping(mappingRequest).actionGet();
I am using ElasticSearch 0.90.beta1 and I add about 500 docs in
one bulkRequest object.
Thanks in advance.
--
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.