lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Newly observed Facets
Date Tue, 20 Jan 2015 16:10:01 GMT
On 1/20/2015 8:52 AM, harish singh wrote:
> Yes I got that. But I am still stuck at this point. Consider it like this:
> I do not know what are the usernames in all the documents.
> I only know there is time associated with each record.
>
> So Say, I have usernames "a", "b", "c", "d" present in my data for the 18th
> of January.
> And for the 19th, I have usernames "a", "b","c", "d", "e".
> Then my query for newly observed username for today over last two days
> should return me "e"

If you query for only documents that match the 19th, and those documents
contain all five usernames, you're going to get all five usernames in
your facet.  Solr has no way to know that the other four usernames
should be excluded - it can only show you facets for the documents
matching your query, the other documents in your index will have no
bearing on the results.

Thanks,
Shawn


Mime
View raw message