Re: Response Writers and DocLists

2009-08-18 Thread Grant Ingersoll
On Aug 17, 2009, at 10:15 PM, Yonik Seeley wrote: Too high level for Lucene I think, and nothing is currently needed for Lucene - a user calls doc() to get the document and then they can modify or add fields however they want. An interface could be useful for Solr... but getting 1.4 out the

Re: Response Writers and DocLists

2009-08-18 Thread Grant Ingersoll
On Aug 18, 2009, at 8:25 AM, Grant Ingersoll wrote: On Aug 17, 2009, at 10:15 PM, Yonik Seeley wrote: Too high level for Lucene I think, and nothing is currently needed for Lucene - a user calls doc() to get the document and then they can modify or add fields however they want. An

Re: Response Writers and DocLists

2009-08-18 Thread Grant Ingersoll
On Aug 18, 2009, at 9:49 AM, Ryan McKinley wrote: Also, I'm thinking about having a real simple interface that would allow for, when materializing the Fields, to pass in something like a DocumentModifier, which would basically get the document right before it is to be returned (possibly

Re: Response Writers and DocLists

2009-08-18 Thread Ryan McKinley
On Aug 18, 2009, at 10:01 AM, Grant Ingersoll wrote: On Aug 18, 2009, at 9:49 AM, Ryan McKinley wrote: Also, I'm thinking about having a real simple interface that would allow for, when materializing the Fields, to pass in something like a DocumentModifier, which would basically get

Re: Response Writers and DocLists

2009-08-18 Thread Yonik Seeley
On Tue, Aug 18, 2009 at 11:20 AM, Ryan McKinleyryan...@gmail.com wrote: dooh, i mean pushing it out of 1.4 (or into 1.5) +1 - the feature will undoubtedly be very important in the future, but probably shouldn't be a blocker for 1.4 -Yonik

Response Writers and DocLists

2009-08-17 Thread Grant Ingersoll
I'm looking a little bit at https://issues.apache.org/jira/browse/SOLR-1298 and some of the other pseudo-field capabilities and am curious how the various Response Writers are handling writing out the Docs. The XMLWriter seems to have a very different approach from the others when it

Re: Response Writers and DocLists

2009-08-17 Thread Ryan McKinley
Ya, I like this idea. Adding a meta field is OK, but it may just be kicking the can. Also implementation wise, it works well when you have a SolrDocument, but when directly using DocList, it gets a bit messy. https://issues.apache.org/jira/browse/SOLR-705 Also with adding a meta field,

Re: Response Writers and DocLists

2009-08-17 Thread Erik Hatcher
On Aug 17, 2009, at 6:59 PM, Ryan McKinley wrote: Also with adding a meta field, I'm not sure I like that it is a double object like: doc.get( _meta_ ).get( distance) It'd be more like: doc.getMeta().get(distance), at least. And doc.get(distance) could be made to fetch first the main

Re: Response Writers and DocLists

2009-08-17 Thread Yonik Seeley
On Mon, Aug 17, 2009 at 6:00 PM, Grant Ingersollgsing...@apache.org wrote: I'm looking a little bit at https://issues.apache.org/jira/browse/SOLR-1298 and some of the other pseudo-field capabilities and am curious how the various Response Writers are handling writing out the Docs.  The