Hi Fabricio, May be use faceting? facet.field=parent
Ahmet On Sunday, April 24, 2016 9:20 PM, FabrÃcio Quintela <fquint...@gmail.com> wrote: Hi all, Does anybody knows how to retrieve a list of fields plus a calculated field like a subquery? Scenario: docs: [ { id: 123 text:"AAA" parent:"" }, { id: 456 text:"BBB" parent:"123" }, id: 789 text:"CCC" parent:"123" ] My query fl=id, text, parent, count should return 123, "AAA", "", 2 when I search by the id=123 Thanks all