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 Romita Saha <Ro...@sg.panasonic.com> on 2012/11/21 09:50:08 UTC
user session id / cookie to record search query
Hi All,
Do anyone have an idea how to use user session id / cookie to record
search query from that particular user.
Thanks and regards,
Romita
Re: user session id / cookie to record search query
Posted by Paul Libbrecht <pa...@hoplahup.net>.
Record?
E.g. output the cookie value of a given name in the log?
Provided you use Apache mod_proxy, we do this by a special log-format.
paul
Le 21 nov. 2012 à 09:50, Romita Saha a écrit :
> Hi All,
>
> Do anyone have an idea how to use user session id / cookie to record
> search query from that particular user.
>
> Thanks and regards,
> Romita
Re: user session id / cookie to record search query
Posted by Romita Saha <Ro...@sg.panasonic.com>.
Hi,
Thanks a lot. Will follow the same.
Thanks and regards,
Romita
From: Rafał Kuć <r....@solr.pl>
To: solr-user@lucene.apache.org,
Date: 11/21/2012 05:34 PM
Subject: Re: user session id / cookie to record search query
Hello!
What Solr are you using ? If not 4.0, information on logging can be
found on wiki - http://wiki.apache.org/solr/SolrLogging
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> Hello Rafał Kuć
> Thanks a lot for you guidance. I am not quite sure how to i collect the
> logs. Could you please help.
> Romita
> From: Rafał Kuć <r....@solr.pl>
> To: solr-user@lucene.apache.org,
> Date: 11/21/2012 04:57 PM
> Subject: Re: user session id / cookie to record search query
> Hello!
> You want it to be written into logs ? If that is the case you can just
> add additional parameter, that is not recognized by Solr, for example
> 'userId' and send a query like this:
> http://localhost:8983/solr/select?q=*:*&userId=user1
> In the logs you should see something like that:
> INFO: [collection1] webapp=/solr path=/select
> params={q=*:*&userId=user1} hits=0 status=0 QTime=1
Re: user session id / cookie to record search query
Posted by Rafał Kuć <r....@solr.pl>.
Hello!
What Solr are you using ? If not 4.0, information on logging can be
found on wiki - http://wiki.apache.org/solr/SolrLogging
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> Hello Rafał Kuć
> Thanks a lot for you guidance. I am not quite sure how to i collect the
> logs. Could you please help.
> Romita
> From: Rafał Kuć <r....@solr.pl>
> To: solr-user@lucene.apache.org,
> Date: 11/21/2012 04:57 PM
> Subject: Re: user session id / cookie to record search query
> Hello!
> You want it to be written into logs ? If that is the case you can just
> add additional parameter, that is not recognized by Solr, for example
> 'userId' and send a query like this:
> http://localhost:8983/solr/select?q=*:*&userId=user1
> In the logs you should see something like that:
> INFO: [collection1] webapp=/solr path=/select
> params={q=*:*&userId=user1} hits=0 status=0 QTime=1
Re: user session id / cookie to record search query
Posted by Romita Saha <Ro...@sg.panasonic.com>.
Hello Rafał Kuć
Thanks a lot for you guidance. I am not quite sure how to i collect the
logs. Could you please help.
Romita
From: Rafał Kuć <r....@solr.pl>
To: solr-user@lucene.apache.org,
Date: 11/21/2012 04:57 PM
Subject: Re: user session id / cookie to record search query
Hello!
You want it to be written into logs ? If that is the case you can just
add additional parameter, that is not recognized by Solr, for example
'userId' and send a query like this:
http://localhost:8983/solr/select?q=*:*&userId=user1
In the logs you should see something like that:
INFO: [collection1] webapp=/solr path=/select
params={q=*:*&userId=user1} hits=0 status=0 QTime=1
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> Hi All,
> Do anyone have an idea how to use user session id / cookie to record
> search query from that particular user.
> Thanks and regards,
> Romita
Re: user session id / cookie to record search query
Posted by Rafał Kuć <r....@solr.pl>.
Hello!
You want it to be written into logs ? If that is the case you can just
add additional parameter, that is not recognized by Solr, for example
'userId' and send a query like this:
http://localhost:8983/solr/select?q=*:*&userId=user1
In the logs you should see something like that:
INFO: [collection1] webapp=/solr path=/select
params={q=*:*&userId=user1} hits=0 status=0 QTime=1
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> Hi All,
> Do anyone have an idea how to use user session id / cookie to record
> search query from that particular user.
> Thanks and regards,
> Romita