If you need to allow HTTP access to solr, then just use standard solr with your embedded stuff in a custom request handler (or something). Any other path, you will be re-inventing many wheels.

If at all possible, I reccomend checking out:
http://wiki.apache.org/solr/Solrj

this is nice because you can write the same code and use it in an embedded context or with an HTTP server depending on the needs (or if the needs change)

ryan



Jörg Kiegeland wrote:
Hi,
I have written code using the Embedded API from SOLR.
Now there is the requirement for access to a remote server, so I would need to use HTTP Post.
So is it possible to wrap Embedded API into HTTP Post calls?
If not, how difficult would it be in general to translate the example at http://wiki.apache.org/solr/EmbeddedSolr to using HTTP Post (because my implementation is based on it)? Is the example at http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/SimplePostTool.java the only example for HTTP Post?

Thanks
Jörg



Reply via email to