lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis.gospodne...@gmail.com>
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.

http://sematext.com/products/autocomplete can be made to do 2).
To do 1) you'd implement that in your search app.

Otis
--
Solr & ElasticSearch Support -- http://sematext.com/
Performance Monitoring -- http://sematext.com/spm



On Tue, Sep 24, 2013 at 8:52 AM, Marina <marinazhyga@gmail.com> wrote:
> I need to implement further functionality picture of it is attached below.
> <http://lucene.472066.n3.nabble.com/file/n4091734/iphone.png>  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: http://lucene.472066.n3.nabble.com/Search-statistics-in-category-scale-tp4091734.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message