You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/02/18 04:34:05 UTC
[jira] Resolved: (SOLR-149) Make solr more embeddable
[ https://issues.apache.org/jira/browse/SOLR-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-149.
-------------------------------
Resolution: Fixed
Committed. Thanks Ryan!
> Make solr more embeddable
> -------------------------
>
> Key: SOLR-149
> URL: https://issues.apache.org/jira/browse/SOLR-149
> Project: Solr
> Issue Type: Improvement
> Reporter: Ryan McKinley
> Priority: Minor
> Attachments: SOLR-149-embeddable.patch, SOLR-149-embeddable.patch, SOLR-149-embeddable.patch
>
>
> With a few simple changes, solr can be an easily embedded in a custom jetty app.
> With this patch, one can run solr from the jar file using:
> server = new Server( port );
>
> // Initalize home (without JNDI)
> Config.setInstanceDir(home);
>
> // Initalize the servlets
> Context root = new Context( server, "/", Context.SESSIONS );
> root.addServlet( SolrServlet.class, "/select" );
> root.addServlet( SolrUpdateServlet.class, "/update" );
> root.addFilter( SolrDispatchFilter.class, "*", Handler.REQUEST );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.