You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "S.L" <si...@gmail.com> on 2015/02/08 05:26:58 UTC
Trending functionality in Solr
Folks,
Is there a way to implement the trending functionality using Solr , to give
the results using a query for say the most searched terms in the past hours
or so , if the most searched terms is not possible is it possible to at
least the get results for the last 100 terms?
Thanks
Re: Trending functionality in Solr
Posted by "S.L" <si...@gmail.com>.
Folks,
Thanks for this wealth of information , the consensus generally seems to be
that one should be able to save the queries in Solr core (another one) and
then times stamp it to do further analysis . I will try and implement the
same .
Siegfried, I looked at your JIRA issue which is impressive but would be an
overkill in my situation so , I will implementing something simpler for use
in my case.
Thanks again everyone for this help.
On Mon, Feb 9, 2015 at 3:14 AM, Siegfried Goeschl <sg...@gmx.at> wrote:
> Hi folks,
>
> I implemented something similar but never got around to contribute it -
> see https://issues.apache.org/jira/browse/SOLR-4056
>
> The code was initially for SOLR3 but was recently ported to SOLR4
>
> * capturing the most frequent search terms per core
> * supports ad-hoc queries
> * CSV export
>
> If you are interested we could team up and make a proper SOLR contribution
> :-)
>
> Cheers,
>
> Siegfried Goeschl
>
>
> On 08.02.15 05:26, S.L wrote:
>
>> Folks,
>>
>> Is there a way to implement the trending functionality using Solr , to
>> give
>> the results using a query for say the most searched terms in the past
>> hours
>> or so , if the most searched terms is not possible is it possible to at
>> least the get results for the last 100 terms?
>>
>> Thanks
>>
>>
>
Re: Trending functionality in Solr
Posted by Rajesh Hazari <ra...@gmail.com>.
Hi folks,
In the project that i am working now, we have used logstash to parse the
log files and store the user queries back into a separate collection in
solr and banana dashboard configure to view the usage.
logstash: logstash.net/
banana : github.com/LucidWorks/banana
*Rajesh.*
On Mon, Feb 9, 2015 at 5:04 AM, Alvaro Cabrerizo <to...@gmail.com> wrote:
> Hi,
>
> In a project I'm working on, we adopted the same approach as the one
> commented by Jorge Luis (use a separate core and let the front-end send the
> query to solr to store it). Depending on the analysis you want to achieve
> it could be interesting to delete duplicates or not (have 1 solr document
> per reqeuest). Apart from that, in order to inject all the legacy data we
> used logstash <http://logstash.net/> (for log parsing) and banana
> <https://github.com/LucidWorks/banana> (for reporting).
>
> Regards.
>
>
> On Mon, Feb 9, 2015 at 9:14 AM, Siegfried Goeschl <sg...@gmx.at> wrote:
>
> > Hi folks,
> >
> > I implemented something similar but never got around to contribute it -
> > see https://issues.apache.org/jira/browse/SOLR-4056
> >
> > The code was initially for SOLR3 but was recently ported to SOLR4
> >
> > * capturing the most frequent search terms per core
> > * supports ad-hoc queries
> > * CSV export
> >
> > If you are interested we could team up and make a proper SOLR
> contribution
> > :-)
> >
> > Cheers,
> >
> > Siegfried Goeschl
> >
> >
> >
> > On 08.02.15 05:26, S.L wrote:
> >
> >> Folks,
> >>
> >> Is there a way to implement the trending functionality using Solr , to
> >> give
> >> the results using a query for say the most searched terms in the past
> >> hours
> >> or so , if the most searched terms is not possible is it possible to at
> >> least the get results for the last 100 terms?
> >>
> >> Thanks
> >>
> >>
> >
>
Re: Trending functionality in Solr
Posted by Alvaro Cabrerizo <to...@gmail.com>.
Hi,
In a project I'm working on, we adopted the same approach as the one
commented by Jorge Luis (use a separate core and let the front-end send the
query to solr to store it). Depending on the analysis you want to achieve
it could be interesting to delete duplicates or not (have 1 solr document
per reqeuest). Apart from that, in order to inject all the legacy data we
used logstash <http://logstash.net/> (for log parsing) and banana
<https://github.com/LucidWorks/banana> (for reporting).
Regards.
On Mon, Feb 9, 2015 at 9:14 AM, Siegfried Goeschl <sg...@gmx.at> wrote:
> Hi folks,
>
> I implemented something similar but never got around to contribute it -
> see https://issues.apache.org/jira/browse/SOLR-4056
>
> The code was initially for SOLR3 but was recently ported to SOLR4
>
> * capturing the most frequent search terms per core
> * supports ad-hoc queries
> * CSV export
>
> If you are interested we could team up and make a proper SOLR contribution
> :-)
>
> Cheers,
>
> Siegfried Goeschl
>
>
>
> On 08.02.15 05:26, S.L wrote:
>
>> Folks,
>>
>> Is there a way to implement the trending functionality using Solr , to
>> give
>> the results using a query for say the most searched terms in the past
>> hours
>> or so , if the most searched terms is not possible is it possible to at
>> least the get results for the last 100 terms?
>>
>> Thanks
>>
>>
>
Re: Trending functionality in Solr
Posted by Siegfried Goeschl <sg...@gmx.at>.
Hi folks,
I implemented something similar but never got around to contribute it -
see https://issues.apache.org/jira/browse/SOLR-4056
The code was initially for SOLR3 but was recently ported to SOLR4
* capturing the most frequent search terms per core
* supports ad-hoc queries
* CSV export
If you are interested we could team up and make a proper SOLR
contribution :-)
Cheers,
Siegfried Goeschl
On 08.02.15 05:26, S.L wrote:
> Folks,
>
> Is there a way to implement the trending functionality using Solr , to give
> the results using a query for say the most searched terms in the past hours
> or so , if the most searched terms is not possible is it possible to at
> least the get results for the last 100 terms?
>
> Thanks
>
Re: [MASSMAIL]Re: Trending functionality in Solr
Posted by ralph tice <ra...@gmail.com>.
You might want to also look at Trulia's Thoth project
https://github.com/trulia/thoth-ml/ -- it doesn't supply this feature
out of the box, but it gives you a nice framework for implementing it.
On Sun, Feb 8, 2015 at 5:07 PM, Jorge Luis Betancourt González
<jl...@uci.cu> wrote:
> For a project I'm working on, what we do is store the user's query in a separated core that we also use to provide an autocomplete query functionality, so far, the frontend app is responsible of sending the query to Solr, meaning: 1. execute the query against our search core and 2. send an update request to store the query in the separated core. We use some deduplication (provided by Solr) to avoid storing the same query several times. We don't do what you're after but it would't be to hard to tag each query with a timestamp field and provide analytics. Thinking from the top of my head we could wrap this logic that is currently done in the frontend app in a custom SearchComponent that automatically send the search query into the other core for storing, abstracting all this logic from the client app. Keep in mind that the considerations regarding volume of data that Shawn has talked keeps being valid.
>
> Hope it helps,
>
> ----- Original Message -----
> From: "Shawn Heisey" <ap...@elyograg.org>
> To: solr-user@lucene.apache.org
> Sent: Sunday, February 8, 2015 11:03:33 AM
> Subject: [MASSMAIL]Re: Trending functionality in Solr
>
> On 2/7/2015 9:26 PM, S.L wrote:
>> Is there a way to implement the trending functionality using Solr , to give
>> the results using a query for say the most searched terms in the past hours
>> or so , if the most searched terms is not possible is it possible to at
>> least the get results for the last 100 terms?
>
> I'm reasonably sure that the only thing Solr has out of the box that can
> record queries is the logging feature that defaults to INFO. That data
> is not directly available to Solr, and it's not in a good format for
> easy parsing.
>
> Queries are not stored anywhere else by Solr. From what I understand,
> analysis is a relatively easy part of the equation, but the data must be
> available first, which is the hard part. Storing it in RAM is pretty
> much a non-starter -- there are installations that see thousands of
> queries every second.
>
> This is an area for improvement, but the infrastructure must be written
> from scratch. All work on this project is volunteer. We are highly
> motivated volunteers, but extensive work like this is difficult to fit
> into donated time.
>
> Many people who use Solr are already recording all queries in some other
> system (like a database), so it is far easier to implement analysis on
> that data.
>
> Thanks,
> Shawn
>
Re: [MASSMAIL]Re: Trending functionality in Solr
Posted by "S.L" <si...@gmail.com>.
Thanks for stating this in a simple fashion.
On Sun, Feb 8, 2015 at 6:07 PM, Jorge Luis Betancourt González <
jlbetancourt@uci.cu> wrote:
> For a project I'm working on, what we do is store the user's query in a
> separated core that we also use to provide an autocomplete query
> functionality, so far, the frontend app is responsible of sending the query
> to Solr, meaning: 1. execute the query against our search core and 2. send
> an update request to store the query in the separated core. We use some
> deduplication (provided by Solr) to avoid storing the same query several
> times. We don't do what you're after but it would't be to hard to tag each
> query with a timestamp field and provide analytics. Thinking from the top
> of my head we could wrap this logic that is currently done in the frontend
> app in a custom SearchComponent that automatically send the search query
> into the other core for storing, abstracting all this logic from the client
> app. Keep in mind that the considerations regarding volume of data that
> Shawn has talked keeps being valid.
>
> Hope it helps,
>
> ----- Original Message -----
> From: "Shawn Heisey" <ap...@elyograg.org>
> To: solr-user@lucene.apache.org
> Sent: Sunday, February 8, 2015 11:03:33 AM
> Subject: [MASSMAIL]Re: Trending functionality in Solr
>
> On 2/7/2015 9:26 PM, S.L wrote:
> > Is there a way to implement the trending functionality using Solr , to
> give
> > the results using a query for say the most searched terms in the past
> hours
> > or so , if the most searched terms is not possible is it possible to at
> > least the get results for the last 100 terms?
>
> I'm reasonably sure that the only thing Solr has out of the box that can
> record queries is the logging feature that defaults to INFO. That data
> is not directly available to Solr, and it's not in a good format for
> easy parsing.
>
> Queries are not stored anywhere else by Solr. From what I understand,
> analysis is a relatively easy part of the equation, but the data must be
> available first, which is the hard part. Storing it in RAM is pretty
> much a non-starter -- there are installations that see thousands of
> queries every second.
>
> This is an area for improvement, but the infrastructure must be written
> from scratch. All work on this project is volunteer. We are highly
> motivated volunteers, but extensive work like this is difficult to fit
> into donated time.
>
> Many people who use Solr are already recording all queries in some other
> system (like a database), so it is far easier to implement analysis on
> that data.
>
> Thanks,
> Shawn
>
>
Re: [MASSMAIL]Re: Trending functionality in Solr
Posted by Jorge Luis Betancourt González <jl...@uci.cu>.
For a project I'm working on, what we do is store the user's query in a separated core that we also use to provide an autocomplete query functionality, so far, the frontend app is responsible of sending the query to Solr, meaning: 1. execute the query against our search core and 2. send an update request to store the query in the separated core. We use some deduplication (provided by Solr) to avoid storing the same query several times. We don't do what you're after but it would't be to hard to tag each query with a timestamp field and provide analytics. Thinking from the top of my head we could wrap this logic that is currently done in the frontend app in a custom SearchComponent that automatically send the search query into the other core for storing, abstracting all this logic from the client app. Keep in mind that the considerations regarding volume of data that Shawn has talked keeps being valid.
Hope it helps,
----- Original Message -----
From: "Shawn Heisey" <ap...@elyograg.org>
To: solr-user@lucene.apache.org
Sent: Sunday, February 8, 2015 11:03:33 AM
Subject: [MASSMAIL]Re: Trending functionality in Solr
On 2/7/2015 9:26 PM, S.L wrote:
> Is there a way to implement the trending functionality using Solr , to give
> the results using a query for say the most searched terms in the past hours
> or so , if the most searched terms is not possible is it possible to at
> least the get results for the last 100 terms?
I'm reasonably sure that the only thing Solr has out of the box that can
record queries is the logging feature that defaults to INFO. That data
is not directly available to Solr, and it's not in a good format for
easy parsing.
Queries are not stored anywhere else by Solr. From what I understand,
analysis is a relatively easy part of the equation, but the data must be
available first, which is the hard part. Storing it in RAM is pretty
much a non-starter -- there are installations that see thousands of
queries every second.
This is an area for improvement, but the infrastructure must be written
from scratch. All work on this project is volunteer. We are highly
motivated volunteers, but extensive work like this is difficult to fit
into donated time.
Many people who use Solr are already recording all queries in some other
system (like a database), so it is far easier to implement analysis on
that data.
Thanks,
Shawn
Re: Trending functionality in Solr
Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/7/2015 9:26 PM, S.L wrote:
> Is there a way to implement the trending functionality using Solr , to give
> the results using a query for say the most searched terms in the past hours
> or so , if the most searched terms is not possible is it possible to at
> least the get results for the last 100 terms?
I'm reasonably sure that the only thing Solr has out of the box that can
record queries is the logging feature that defaults to INFO. That data
is not directly available to Solr, and it's not in a good format for
easy parsing.
Queries are not stored anywhere else by Solr. From what I understand,
analysis is a relatively easy part of the equation, but the data must be
available first, which is the hard part. Storing it in RAM is pretty
much a non-starter -- there are installations that see thousands of
queries every second.
This is an area for improvement, but the infrastructure must be written
from scratch. All work on this project is volunteer. We are highly
motivated volunteers, but extensive work like this is difficult to fit
into donated time.
Many people who use Solr are already recording all queries in some other
system (like a database), so it is far easier to implement analysis on
that data.
Thanks,
Shawn