[
https://issues.apache.org/jira/browse/SOLR-2656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yonik Seeley updated SOLR-2656:
-------------------------------
Attachment: SOLR-2656.patch
Here's a draft patch (no tests yet) that tracks the latest reader in SolrCore
and keeps track of a virtual clock and compares that to the virtual clock of
the update handler.
To try it out, add a document without committing, and then
http://localhost:8983/solr/get?id=SOLR1000
You can also use the "fl" param...
http://localhost:8983/solr/get?id=SOLR1000&fl=id,name
{code}
<response>
<doc name="doc">
<str name="id">SOLR1000</str>
<str name="name">Solr, the Enterprise Search Server</str>
</doc>
</response>
{code}
The "id" param accepts a single id (but you can have multiple parameters)
You can also use an "ids" param, which is a comma separated list of ids. If
you use "ids" or multiple "id" parameters, then the response will look like a
normal doclist.
> realtime get
> ------------
>
> Key: SOLR-2656
> URL: https://issues.apache.org/jira/browse/SOLR-2656
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Yonik Seeley
> Assignee: Yonik Seeley
> Attachments: SOLR-2656.patch
>
>
> Provide a non point-in-time interface to get a document.
> For example, if you add a new document, you will be able to get it,
> regardless of if the searcher has been refreshed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]