Searching on multiple indices elasticsearchclient(nodejs module)

Hi,
i am using elasticsearch, river couchdb plugin and node elasticsearch
client to search data from my couchdb. my code like this for searching data
using one index

testSearch = function() {
var qryObj = {
"query" : {
"wildcard" : {
"_all" : contact_person
}
}

        };    

elasticSearchClient.search("purchasetest", "",qryObj, size)
.on('data', function(data) {
console.log("Search: "+data)
assert.ok(JSON.parse(data), "testSearch failed.")
})
.exec()
}

Can any body guide me ,that how can i search data from multiple indices
using elasti search client.

Hi Aruna,

Did you try putting other index with comma to "purchasetest" ?

For instance "purchasetest,otherIndex".

KR,

Ferhat Sobay
www.searchbox.io

On Tuesday, June 19, 2012 9:37:30 AM UTC+3, Aruna wrote:

Hi,
i am using elasticsearch, river couchdb plugin and node elasticsearch
client to search data from my couchdb. my code like this for searching data
using one index

testSearch = function() {
var qryObj = {
"query" : {
"wildcard" : {
"_all" : contact_person
}
}

        };    

elasticSearchClient.search("purchasetest", "",qryObj, size)
.on('data', function(data) {
console.log("Search: "+data)
assert.ok(JSON.parse(data), "testSearch failed.")
})
.exec()
}

Can any body guide me ,that how can i search data from multiple indices
using elasti search client.