Hi:
I am attempting to do multisearch with Elasticsearch and it is causing
me problems. I generate my queries using php and also use php curl to
interface with my server which is running Elasticsearch 0.19.4. There are
a couple of issues I am encountering:
the first is, I am trying to do a count with a multi search query, so my
generated url eventually looks like this:
with this setup, i expect that when I run my multi search query, it will
return to me a responses array with just the count. But my the behavior is
inconsistent. it returns my entire document for one of my queries and the
normal results for my other queries.
multisearch does not return responses to all my queries. For example, I
sent six queries seperated by a newline to multisearch and I get back in my
reponses array three responses with inconsistent results.
has anybody successfully used multisearch with php?
BTW..this works just fine with individual searches..its only when i try to
do multisearch that i run into problems.
So, I got it working. The trick was to put the search type as the header
for each individual query. i was trying to be economical and put it once in
the url like you can do for individual requests, but that does not work.
On Monday, June 11, 2012 4:48:10 PM UTC-7, Yorubawarrior wrote:
Hi:
I am attempting to do multisearch with Elasticsearch and it is causing
me problems. I generate my queries using php and also use php curl to
interface with my server which is running Elasticsearch 0.19.4. There are
a couple of issues I am encountering:
the first is, I am trying to do a count with a multi search query, so
my generated url eventually looks like this:
with this setup, i expect that when I run my multi search query, it will
return to me a responses array with just the count. But my the behavior is
inconsistent. it returns my entire document for one of my queries and the
normal results for my other queries.
multisearch does not return responses to all my queries. For example, I
sent six queries seperated by a newline to multisearch and I get back in my
reponses array three responses with inconsistent results.
has anybody successfully used multisearch with php?
BTW..this works just fine with individual searches..its only when i try to
do multisearch that i run into problems.
On Mon, 2012-06-11 at 23:45 -0700, Yorubawarrior wrote:
So, I got it working. The trick was to put the search type as the
header for each individual query. i was trying to be economical and
put it once in the url like you can do for individual requests, but
that does not work.
Could you open an issue for this? I think it should be supported
clint
On Monday, June 11, 2012 4:48:10 PM UTC-7, Yorubawarrior wrote:
Hi:
I am attempting to do multisearch with Elasticsearch and
it is causing me problems. I generate my queries using php and
also use php curl to interface with my server which is running
Elasticsearch 0.19.4. There are a couple of issues I am
encountering:
1. the first is, I am trying to do a count with a multi search
query, so my generated url eventually looks like this:
http://localhost:9200/profile/user/_msearch?search_type=count
with this setup, i expect that when I run my multi search
query, it will return to me a responses array with just the
count. But my the behavior is inconsistent. it returns my
entire document for one of my queries and the normal results
for my other queries.
2. multisearch does not return responses to all my queries.
For example, I sent six queries seperated by a newline to
multisearch and I get back in my reponses array three
responses with inconsistent results.
has anybody successfully used multisearch with php?
BTW..this works just fine with individual searches..its only
when i try to do multisearch that i run into problems.
Thxs
On Mon, 2012-06-11 at 23:45 -0700, Yorubawarrior wrote:
So, I got it working. The trick was to put the search type as the
header for each individual query. i was trying to be economical and
put it once in the url like you can do for individual requests, but
that does not work.
Could you open an issue for this? I think it should be supported
clint
On Monday, June 11, 2012 4:48:10 PM UTC-7, Yorubawarrior wrote:
Hi:
I am attempting to do multisearch with Elasticsearch and
it is causing me problems. I generate my queries using php and
also use php curl to interface with my server which is running
Elasticsearch 0.19.4. There are a couple of issues I am
encountering:
1. the first is, I am trying to do a count with a multi search
query, so my generated url eventually looks like this:
with this setup, i expect that when I run my multi search
query, it will return to me a responses array with just the
count. But my the behavior is inconsistent. it returns my
entire document for one of my queries and the normal results
for my other queries.
2. multisearch does not return responses to all my queries.
For example, I sent six queries seperated by a newline to
multisearch and I get back in my reponses array three
responses with inconsistent results.
has anybody successfully used multisearch with php?
BTW..this works just fine with individual searches..its only
when i try to do multisearch that i run into problems.
Thxs
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.