On May 26, 2006, at 4:07 PM, Mike Baranczak wrote:

On May 26, 2006, at 3:15 PM, Yonik Seeley wrote:

Mike - thank you for your patience in refactoring what was already working for you into something more generalizable than you needed for the benefit of the >community. I personally will be experimenting with this new feature.

Seconded!  Thanks Mike!
Can you share how you are using pluggable response writers?

-Yonik


Basically, I wanted the ability to do some custom processing of the document fields before displaying them to the user. I thought it made sense to do it right in the search server, to avoid sending unnecessary data across the network; but I couldn't figure out a good way to do it within the existing architecture, so I made an XML output module that completely bypasses XMLWriter.

I thought about contributing some of this code as well, but it probably won't happen, since it contains a lot of stuff that only makes sense for our own system.

It seems the real need you had was to replace pieces of the XMLWriter output "pipeline" with custom data. I wanted to add highlighting in at the deep level but it would need to be sort of hard-coded in there. We need a way to have streaming output plugins, perhaps ala HiveMind which I'd like to eventually tinker with as a way to configure Solr. In my copious free time, of course.

My use of this would be to write out Ruby and YAML and compare their injesting time with the current XML schema from Ruby on Rails front- end. The quicker I can have usable data structures in the client, the better overall :) I have a hunch either of those formats will ingest faster than XML, but I'm a lousy guesser.

        Erik

Reply via email to