Re: getDocumentByUniqueKey()

2007-05-09 Thread Ryan McKinley
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

Re: getDocumentByUniqueKey()

2007-05-09 Thread Yonik Seeley
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();

Re: getDocumentByUniqueKey()

2007-05-06 Thread Chris Hostetter
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

getDocumentByUniqueKey()

2007-05-05 Thread Ryan McKinley
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