When i set the following source using java api while creating the
document, it is being stored in a wrong way.
{
"extID": "ConstructionProject",
"catName": [
{
"language": "en",
"text": "ProjectWBSType",
"original": false
}
],
"typeIcon": "",
"changedOn": "2012-01-27T18:47:14+0530",
"busUntis": "4e52b623a9801a7a3ba86c8e Test Company",
"tags": "",
"comments": "",
"responsible": "Prashanth"
}
When i do the query on the above document, in the search result,
following source is being displayed.
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
Is there any logging or any other trouble shooting mechanism to
find out the exact issue here?.
If I pass the same data in stand alone program , everything is
working fine. But, in the integrated environment , issue is coming. I
have double checked everything from my side and looks like the same
string value is passed to setSource method using java api. I can see
the exact string value in the log file also but after creating the
index, the data is not same as it is shown in the logger.
Below is the code snippet --
Client esClient = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress(
"localhost", 9300));
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
Is there any logging or any other trouble shooting mechanism to
find out the exact issue here?.
If I pass the same data in stand alone program , everything is
working fine. But, in the integrated environment , issue is coming. I
have double checked everything from my side and looks like the same
string value is passed to setSource method using java api. I can see
the exact string value in the log file also but after creating the
index, the data is not same as it is shown in the logger.
Below is the code snippet --
Client esClient = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress(
"localhost", 9300));
When I create the document using PUT request with the above JSON data,
everything is working as expected( REST GET API is returning the same
data that i have used to insert )..Seems issue with java api.i used
the following piece of code..
IndexRequestBuilder indexBuilder = esClient.prepareIndex(
"indexname"," type", documentId);
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.