Sounds like a job for tagging and excluding: https://cwiki.apache.org/confluence/display/solr/Faceting?focusedCommentId=42569404#Faceting-TaggingandExcludingFilters
Regards, Alex. ---- Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 14 April 2016 at 06:43, Fundera Developer <[email protected]> wrote: > Hi all, > > we are developing a search engine in which all the possible results have one > or more countries associated. If, apart from writing the query, the user > selects a country, we use a filterquery to restrict the results to those > that match the query and are associated to that country. Nothing spectacular > so far :-D > > However, we would like to show the number of results that are returned by > the unfiltered query, since we already have the number of results associated > to each country as we are also faceting on that field. Is it possible to > have that number without executing the query twice? > > Thanks in advance! >
