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 Furkan KAMACI <fu...@gmail.com> on 2013/07/24 11:07:26 UTC

Usage Of Real Time Get Handler Of Solr

Hi;

There is a real time get handler at Solr:

  <!-- realtime get handler, guaranteed to return the latest stored fields of
       any document, without the need to commit or open a new searcher.  The
       current implementation relies on the updateLog feature being enabled. -->
  <requestHandler name="/get" class="solr.RealTimeGetHandler">
     <lst name="defaults">
       <str name="omitHeader">true</str>
       <str name="wt">json</str>
       <str name="indent">true</str>
     </lst>
  </requestHandler>

    <updateLog>
      <str name="dir">${solr.ulog.dir:}</str>
    </updateLog


Whenever I check that URL:

:8983/solr/get?q=*:*

the response is always:


{
  "doc":null}

What is real time get handler for? And why it is a feauture of NoSQL databases?

RE: Usage Of Real Time Get Handler Of Solr

Posted by Markus Jelsma <ma...@openindex.io>.
Because it's a get and not a search handler. It takes the id parameter and returns the "latest stored fields of" document with the specified ID. 
 
-----Original message-----
> From:Furkan KAMACI <fu...@gmail.com>
> Sent: Wednesday 24th July 2013 11:07
> To: solr-user@lucene.apache.org
> Subject: Usage Of Real Time Get Handler Of Solr
> 
> Hi;
> 
> There is a real time get handler at Solr:
> 
>   <!-- realtime get handler, guaranteed to return the latest stored fields of
>        any document, without the need to commit or open a new searcher.  The
>        current implementation relies on the updateLog feature being enabled. -->
>   <requestHandler name="/get" class="solr.RealTimeGetHandler">
>      <lst name="defaults">
>        <str name="omitHeader">true</str>
>        <str name="wt">json</str>
>        <str name="indent">true</str>
>      </lst>
>   </requestHandler>
> 
>     <updateLog>
>       <str name="dir">${solr.ulog.dir:}</str>
>     </updateLog
> 
> 
> Whenever I check that URL:
> 
> :8983/solr/get?q=*:*
> 
> the response is always:
> 
> 
> {
>   "doc":null}
> 
> What is real time get handler for? And why it is a feauture of NoSQL databases?
> 

Re: Usage Of Real Time Get Handler Of Solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
Details here:
http://wiki.apache.org/solr/RealTimeGet

-- Jack Krupansky

-----Original Message----- 
From: Furkan KAMACI
Sent: Wednesday, July 24, 2013 5:07 AM
To: solr-user@lucene.apache.org
Subject: Usage Of Real Time Get Handler Of Solr

Hi;

There is a real time get handler at Solr:

  <!-- realtime get handler, guaranteed to return the latest stored fields 
of
       any document, without the need to commit or open a new searcher.  The
       current implementation relies on the updateLog feature being 
enabled. -->
  <requestHandler name="/get" class="solr.RealTimeGetHandler">
     <lst name="defaults">
       <str name="omitHeader">true</str>
       <str name="wt">json</str>
       <str name="indent">true</str>
     </lst>
  </requestHandler>

    <updateLog>
      <str name="dir">${solr.ulog.dir:}</str>
    </updateLog


Whenever I check that URL:

:8983/solr/get?q=*:*

the response is always:


{
  "doc":null}

What is real time get handler for? And why it is a feauture of NoSQL 
databases?