lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Search statistics in category scale
Date Fri, 27 Sep 2013 01:35:50 GMT
Hi Marina,

I think you can get to these numbers in (only?) two ways:
1) at query time, for each suggestion hit the index, get the number of
hits, and show it in the UI
2) at "suggestion data structure creation time" query the index for
each suggestion, get the number of hits, include it in the lookup data
structure, and retrieve it from there for the UI.

1) will give you accurate counts, but it can result in a loooot of
hits to the main index - i.e., performance will suffer.
2) will not give you accurate counts IFF your index is regularly being
updated. If the index is static for a good period of time then counts
will be correct.  This would also have to hit the index to get the
counts, but only while the suggestion lookup structure is being built,
not at search time - i.e., you control when you hit the index and not
all users suffer. can be made to do 2).
To do 1) you'd implement that in your search app.

Solr & ElasticSearch Support --
Performance Monitoring --

On Tue, Sep 24, 2013 at 8:52 AM, Marina <> wrote:
> I need to implement further functionality picture of it is attached below.
> <>  I have
> already running application based o Solr search.
> In a few words about it: drop down will contain similar search phrases
> within concrete category and number of items found.
> Does Solr provide to collect such data and somehow receive it?
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message