I have a CouchDB / elasticsearch setup. CouchDB as a repository, search for search results.
I need to fulfill this request,
select distinct name from table
in this "table"
[ {name:'david' ... more data}, {name:'david' ... more data}, {name:'alex' ... more data} {name:'alex' ... more data} ]
to get the following:
['david', 'alex']
or that:
[ {name:'david'}, {name:'alex'} ]
or in any form, but the result of a separate request.
Using CouchDB can be done as follows:
But I want to use elasticsearch to do this. There is some information on the Internet, but is not clear.
Can someone point me in the right direction to achieve what I want?
Delta source share