I have embedded solr skipping HTTP transport altogether. It was remarkably easy to link directly to request handlers skipping the dispatch filter and using the DocList and associated data in the SolrQueryResponse directly.
Assuming the existing TCP/IP interface is sending strings around, filling up the appropriate queries should be no problem. The only issue i have had is trying to to deal with Objects for as much as possible and get the FieldType to marshal the fields into and out of lucene. (SOLR-193) One goal with SOLR-20 is to get an interface that works the same with or without HTTP -- I know thats not what it was intended for, but solr makes lucene so much more manageable even without a server! On 4/2/07, Erik Hatcher <[EMAIL PROTECTED]> wrote:
I have a client need to embed Solr behind an already built custom TCP/ IP interface (currently for Lucene, but want to swap in Solr to benefit from its additional goodness of course). Have folks already done this? Experiences? Or perhaps there are some thoughts on why this may or may not be a good idea and any technical hurdles that might be encountered. My hunch is this should be possible, and fairly cleanly so. But I hesitate to exaggerate the ease of such a thing without asking first. Many thanks, Erik