{
"_id": "001",
"information": "Free Books",
"date": "2015-07-06",
"books": [
{
"title": "New Era",
"author": "David Smith"
},
{
"title": "The Warrior",
"author": "John Calton"
},
{
"title": "A great leader",
"author": "Ana Marques"
},
{
"title": "Be like water",
"author": "Bruce Lee"
}
]
}
When I try to do a simple query like match all, I get no results:
{
"query":{
"match_all": {}
}
}
Then, when I create a new document without using array, I'm able to get the proper results in any query. I guess the problem is that I'm not using nested objetcs for the array, however, shoud not the "match_all" query return me the results?
Is there another way to use data from couchdb without using rivers in this case? However, what is the problem with the match_all query that is not returning any result?
I think the problem is not about indexing because I removed the array from the document, then the query worked as expected. If I put some array in the document, query stop giving me results. Even the match_all. If I leave just strings, without array in Json, everything works fine...
Thank you. Do you have any reference showing how to synchronize data from CouchDB? I took a look at Logstash, but I got confused where should I put informations like: host, port number and index.
In river I used to put everything in localhost/_river/_meta like this:
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.