[ 
https://issues.apache.org/jira/browse/SOLR-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-212:
-------------------------------

    Attachment: SOLR-212-DirectSolrConnection.patch

Added header and fixed "Initialized" typo
(fixed the typo in Config r533207)

This approach differs from the one outlined in 
http://wiki.apache.org/solr/EmbeddedSolr in that it is strictly a text 
interface that mimics the request and response stream.  The other approach 
gives you direct access to the lucene Document class.  The text approach is 
nice because it means the same code would work if it needed to run across a 
network.



> Embeddable class to call solr directly
> --------------------------------------
>
>                 Key: SOLR-212
>                 URL: https://issues.apache.org/jira/browse/SOLR-212
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>            Priority: Minor
>         Attachments: SOLR-212-DirectSolrConnection.patch, 
> SOLR-212-DirectSolrConnection.patch
>
>
> For some embedded applications, it is useful to call solr without running an 
> HTTP server.  This class mimics the behavior you would get if you sent the 
> request through an HTTP connection.  It is designed to work nicely (ie 
> simple) with JNI
> the main function is:
> public class DirectSolrConnection 
> {
>   String request( String pathAndParams, String body ) throws Exception
>   {
>     ...
>   }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to