Is this still true? Assuming that I know that there hasn't been updates or
that I don't care to see a different version of the document, are the term
QP or the raw QP faster than the real-time get handler?

On Fri, Mar 11, 2011 at 3:12 PM, Yonik Seeley <yo...@lucidimagination.com>wrote:

> On Fri, Mar 11, 2011 at 5:58 PM, onlinespend...@gmail.com
> <onlinespend...@gmail.com> wrote:
> > what's the quickest and most efficient way to access a doc by its primary
> > key? suppose I already know a document's unique id and simply want to
> fetch
> > it without issuing a sophisticated query.
>
> Bypassing the normal lucene query parser does give a speed up.
>
> If you're id field is of type string, try the "raw" query parser, or
> if you're on trunk, try the "term" query parser for other field types
> (like numerics) that need a translation from external to internal
> format.
>
> Example: q={!raw f=id}MYDOCUMENTID
>
> -Yonik
> http://lucidimagination.com
>

Reply via email to