Multi Search with Scan Search Type?


(Vlad Grigorescu) #1

Hello,

I'm trying to use the Multi Search API to issue several scroll searches.
Anyone have any idea how I would do that?

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns"}
{"scroll": "10m"}
'

[No parser for element [scroll]]

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns", "scroll": "10m"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

curl 'localhost:9200/_msearch?search_type=scan&scroll=10m' -d '
{"index": "logs", "type": "dns"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

What I'm trying to do is to get a per-type scroll, so that my web interface
can have a tab per-type. Thanks,

--Vlad


(Shay Banon) #2

There isn't support to use multi search request and to scroll the results.

On Fri, Jun 29, 2012 at 5:27 PM, Vlad Grigorescu grigorescu@gmail.comwrote:

Hello,

I'm trying to use the Multi Search API to issue several scroll searches.
Anyone have any idea how I would do that?

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns"}
{"scroll": "10m"}
'

[No parser for element [scroll]]

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns", "scroll": "10m"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

curl 'localhost:9200/_msearch?search_type=scan&scroll=10m' -d '

{"index": "logs", "type": "dns"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

What I'm trying to do is to get a per-type scroll, so that my web
interface can have a tab per-type. Thanks,

--Vlad


(Arjit Gupta) #3

Hi,

Is the functionality of scroll while doing multi search available now ?

Thanks,
Arjit

On Friday, June 29, 2012 8:57:24 PM UTC+5:30, Vlad Grigorescu wrote:

Hello,

I'm trying to use the Multi Search API to issue several scroll searches.
Anyone have any idea how I would do that?

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns"}
{"scroll": "10m"}
'

[No parser for element [scroll]]

curl 'localhost:9200/_msearch?search_type=scan' -d '
{"index": "logs", "type": "dns", "scroll": "10m"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

curl 'localhost:9200/_msearch?search_type=scan&scroll=10m' -d '

{"index": "logs", "type": "dns"}
{}
'

ElasticSearchException[Scroll must be provided when scanning...]

What I'm trying to do is to get a per-type scroll, so that my web
interface can have a tab per-type. Thanks,

--Vlad

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4