Re: SolrJ and Unique Doc ID

2008-02-14 Thread Chris Hostetter
: > How do I generate URLs to retrieve a document against any given Solr : > instance that I happen to be pointing at without knowing which field is the : > document id? : : One cool technique, not instead of your change to Luke RH (a needed change : IMO) but another way to go about it - we have

Re: SolrJ and Unique Doc ID

2008-02-12 Thread Erik Hatcher
On Feb 12, 2008, at 3:44 PM, Grant Ingersoll wrote: On Feb 12, 2008, at 2:10 PM, Chris Hostetter wrote: : > Honestly: i can't think of a single use case where client code would care : > about what the uniqueKey field is, unless it already *knew* what the : > uniqueKey field is. : : :-) Ab

Re: SolrJ and Unique Doc ID

2008-02-12 Thread Grant Ingersoll
On Feb 12, 2008, at 2:10 PM, Chris Hostetter wrote: : > Honestly: i can't think of a single use case where client code would care : > about what the uniqueKey field is, unless it already *knew* what the : > uniqueKey field is. : : :-) Abstractions allow one to use different implementations

Re: SolrJ and Unique Doc ID

2008-02-12 Thread Chris Hostetter
: > Honestly: i can't think of a single use case where client code would care : > about what the uniqueKey field is, unless it already *knew* what the : > uniqueKey field is. : : :-) Abstractions allow one to use different implementations. My : client/display doesn't know about Solr, it just kno

Re: SolrJ and Unique Doc ID

2008-02-12 Thread Grant Ingersoll
On Feb 11, 2008, at 11:24 PM, Chris Hostetter wrote: : Another option is to add it to the responseHeader Or it could be a quick : add to the LukeRH. The former has the advantage that we wouldn't have to make adding the info to LukeRequestHandler makes sense. Honestly: i can't think

Re: SolrJ and Unique Doc ID

2008-02-11 Thread Chris Hostetter
: Another option is to add it to the responseHeader Or it could be a quick : add to the LukeRH. The former has the advantage that we wouldn't have to make adding the info to LukeRequestHandler makes sense. Honestly: i can't think of a single use case where client code would care about what

Re: SolrJ and Unique Doc ID

2008-02-11 Thread Grant Ingersoll
Another option is to add it to the responseHeader Or it could be a quick add to the LukeRH. The former has the advantage that we wouldn't have to make extra calls at the cost of sending an extra string w/ every message. The latter would work by asking for it up front and then saving

Re: SolrJ and Unique Doc ID

2008-02-11 Thread Ryan McKinley
thoughts on requiring that for solrj? perhaps in 2.0? Not suggesting it is a good idea (yet)... but we may want to consider it. Yonik Seeley wrote: Hmmm, I should have just mandated that the id field be called "id" from the start :-) On Feb 11, 2008 5:51 PM, Grant Ingersoll <[EMAIL PROTECTE

Re: SolrJ and Unique Doc ID

2008-02-11 Thread Yonik Seeley
Hmmm, I should have just mandated that the id field be called "id" from the start :-) On Feb 11, 2008 5:51 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote: > What's the best way to retrieve the unique key field from SolrJ? From > what I can tell, it seems like I would need to retrieve the schema an

Re: SolrJ and Unique Doc ID

2008-02-11 Thread Ryan McKinley
right now you need to know the unique key name to get it... I don't think we have any easy way to get that besides parsing the schema With debugQuery=true, the uniqueKey is added to the 'explain' info: ... this gets parsed into the QueryResults _explainMap and _docIdMap but i'm not

SolrJ and Unique Doc ID

2008-02-11 Thread Grant Ingersoll
What's the best way to retrieve the unique key field from SolrJ? From what I can tell, it seems like I would need to retrieve the schema and then parse it and get it from there, or am I missing something? Thanks, Grant