I have sort of a complex logic to build a search request using the Java API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
I have sort of a complex logic to build a search request using the Java API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
Also, you should be able to use any HTTP sniffer (there is Fiddler on
Windows, and I'm sure there are counterparts on other systems) which don't
require you to change your code so significantly.
-----Original Message-----
From: Karussell [mailto:tableyourtime@googlemail.com]
Sent: Thursday, February 10, 2011 3:04 PM
To: users
Subject: Re: See actual JSON from SearchRequestBuilder
I have sort of a complex logic to build a search request using the Java
API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
Also, you should be able to use any HTTP sniffer (there is Fiddler on
Windows, and I'm sure there are counterparts on other systems) which don't
require you to change your code so significantly.
-----Original Message-----
From: Karussell [mailto:tableyourt...@googlemail.com]
Sent: Thursday, February 10, 2011 3:04 PM
To: users
Subject: Re: See actual JSON from SearchRequestBuilder
I have sort of a complex logic to build a search request using the Java
API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
Also, you should be able to use any HTTP sniffer (there is Fiddler on
Windows, and I'm sure there are counterparts on other systems) which
don't
require you to change your code so significantly.
-----Original Message-----
From: Karussell [mailto:tableyourt...@googlemail.com]
Sent: Thursday, February 10, 2011 3:04 PM
To: users
Subject: Re: See actual JSON from SearchRequestBuilder
I have sort of a complex logic to build a search request using the Java
API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
You can get the internal builder that implements the ToXContent (which allows you to print it as json) using SearchRequestBuilder#internalBuilder.
On Thursday, February 10, 2011 at 11:06 PM, Enrique Medina Montenegro wrote:
I forgot to mention that the object where I build the search using the Java API is a SearchRequestBuilder.
Also, you should be able to use any HTTP sniffer (there is Fiddler on
Windows, and I'm sure there are counterparts on other systems) which don't
require you to change your code so significantly.
-----Original Message-----
From: Karussell [mailto:tableyourt...@googlemail.com]
Sent: Thursday, February 10, 2011 3:04 PM
To: users
Subject: Re: See actual JSON from SearchRequestBuilder
I have sort of a complex logic to build a search request using the Java
API.
I'm finding a corner case which is not working as expected, and I'm
struggling to figure out what's going on.
Having access or a way to see the actual JSON that gets sent to the ES
server would be extremely helpful. Is there any way to achieve this? In
other words, can I see the JSON being sent to ES from the Java API?
Right, a simpel String toJson can help in debugging. Actually, it can help on any class that implements ToXContent.
On Friday, February 11, 2011 at 3:05 PM, Rich Kroll wrote:
+1i think this would help
On Feb 11, 2011 7:00 AM, "Enrique Medina Montenegro" e.medina.m@gmail.com wrote:
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.