1. Try go execute GET http://yourhost:9200/_mapping and check if the
mapping mentions is properly created with correct _id path
2. When indexing the documents you can construct your index request this
way:
IndexRequestBuilder indexRequestBuilder = getClient().prepareIndex(index,
type).setSource
I am using Java API, but have tried doing this using,
1) putting a mapping file in /config/mapping etc.
2) Using curl
On Monday, August 4, 2014 1:35:00 PM UTC+5:30, Tihomir Lichev wrote:
>
> What API are you using to communicate with ES ?
>
> 03 август 2014, неделя, 11:14:59 UTC+3, Ayush напис
What API are you using to communicate with ES ?
03 август 2014, неделя, 11:14:59 UTC+3, Ayush написа:
>
> I am new to elastic search, I have created an index "cmn" with a type
> "mention". I am trying to import data from my existing solr to
> elasticsearch, so I want to map an existing field to
I am new to elastic search, I have created an index "cmn" with a type
"mention". I am trying to import data from my existing solr to
elasticsearch, so I want to map an existing field to the _id field.
I have created the following file under /config/mappings/cmn/,
{
"mappings": {