Hi,
I have installed elasticsearch-river-couchdb and node
elasticsearchclient. Now i am searching data in couchdb using node
elasticsearchclient. I have JSON structure like this,
and i have written code like this,
var searchText="aruna";
testSearch = function() {
var qryObj = {
"size" : 50,
"query" : {
"wildcard" : {
"_all" :searchText
}
}
};
elasticSearchClient.search("test", "",qryObj, size)
.on('data', function(data) {
console.log("Search: "+data)
assert.ok(JSON.parse(data), "testSearch failed.")
})
.exec()
}
If i search for aruna i am able to get the data. but if the part of
the searchText contains space, i am unable to get the results. suppose
searchText is "aruna vennapusa". please anyone suggest me to to get
those results.
Hi,
I have installed elasticsearch-river-couchdb and node
elasticsearchclient. Now i am searching data in couchdb using node
elasticsearchclient. I have JSON structure like this,
and i have written code like this,
var searchText="aruna";
testSearch = function() {
var qryObj = {
"size" : 50,
"query" : {
"wildcard" : {
"_all" :searchText
}
}
};
elasticSearchClient.search("test", "",qryObj, size)
.on('data', function(data) {
console.log("Search: "+data)
assert.ok(JSON.parse(data), "testSearch failed.")
})
.exec()
}
If i search for aruna i am able to get the data. but if the part of the
searchText contains space, i am unable to get the results. suppose
searchText is "aruna vennapusa". please anyone suggest me to to get
those results.
Hi,
I have installed elasticsearch-river-couchdb and node
elasticsearchclient. Now i am searching data in couchdb using node
elasticsearchclient. I have JSON structure like this,
and i have written code like this,
var searchText="aruna";
testSearch = function() {
var qryObj = {
"size" : 50,
"query" : {
"wildcard" : {
"_all" :searchText
}
}
};
elasticSearchClient.search("test", "",qryObj, size)
.on('data', function(data) {
console.log("Search: "+data)
assert.ok(JSON.parse(data), "testSearch failed.")
})
.exec()
}
If i search for aruna i am able to get the data. but if the part of the
searchText contains space, i am unable to get the results. suppose
searchText is "aruna vennapusa". please anyone suggest me to to get
those results.
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.