I tried to do the same in various ways using Java, but non of them was
successful.
Here is a gist https://gist.github.com/1328836 with my initial guess in
Java.
If you run it, the output will be "{"mytype":{"properties":{}}}" , but this
is obviously wrong, and If I try to index some documents with field names
matching list__* or set__* they will be analyzed.
On the other side with the curl command everything works great.
I tried to do the same in various ways using Java, but non of them was
successful.
Here is a gist https://gist.github.com/1328836with my initial guess in
Java.
If you run it, the output will be "{"mytype":{"properties":{}}}" , but this
is obviously wrong, and If I try to index some documents with field names
matching list__* or set__* they will be analyzed.
On the other side with the curl command everything works great.
Unfortunately the problem is not with the bracket in line 37.
I tried without the brackets but , then I got exception related to the
parsing of the JSON.
And also the same JSON string works fine with curl.
I think the problem is with the Java command, maybe I don't send the JSON
mapping in right way, or maybe it's a bug.
I tried to do the same in various ways using Java, but non of them was
successful.
Here is a gist https://gist.github.com/1328836with my initial guess in
Java.
If you run it, the output will be "{"mytype":{"properties":{}}}" , but
this
is obviously wrong, and If I try to index some documents with field names
matching list__* or set__* they will be analyzed.
On the other side with the curl command everything works great.
On Tue, Nov 1, 2011 at 10:57 AM, Bojidar Penchev dcodeboy@gmail.com wrote:
Unfortunately the problem is not with the bracket in line 37.
I tried without the brackets but , then I got exception related to the
parsing of the JSON.
And also the same JSON string works fine with curl.
I think the problem is with the Java command, maybe I don't send the JSON
mapping in right way, or maybe it's a bug.
I tried to do the same in various ways using Java, but non of them was
successful.
Here is a gist https://gist.github.com/1328836with my initial guess in
Java.
If you run it, the output will be "{"mytype":{"properties":{}}}" , but
this
is obviously wrong, and If I try to index some documents with field
names
matching list__* or set__* they will be analyzed.
On the other side with the curl command everything works great.
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.