I think it might be better as a convenience function somewhere, rather
than expanding the interface of SolrIndexSearcher even more.
ok... I came to a similar realization because in another use cases, I
really want an array or list, and it seems bad to clutter the
SolrIndexSearcher
rather
than expanding the interface of SolrIndexSearcher even more.
-Yonik
How do you all feel about adding this (or something like it) to
SolrIndexSearcher?
public Document getDocumentByUniqueKey( String id ) throws IOException
{
SchemaField uniqueKey = schema.getUniqueKeyField();
8:48 -0400
: From: Ryan McKinley <[EMAIL PROTECTED]>
: Reply-To: solr-dev@lucene.apache.org
: To: solr-dev@lucene.apache.org
: Subject: getDocumentByUniqueKey()
:
:
: I find myself wanting to get a single Document by ID often.
:
: How do you all feel about adding this (or something like it) to
: S
I find myself wanting to get a single Document by ID often.
How do you all feel about adding this (or something like it) to
SolrIndexSearcher?
public Document getDocumentByUniqueKey( String id ) throws IOException
{
SchemaField uniqueKey = schema.getUniqueKeyField();
if