lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-149) Make solr more embeddable
Date Thu, 08 Feb 2007 20:35:05 GMT

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

Ryan McKinley updated SOLR-149:
-------------------------------

    Attachment: SOLR-149-embeddable.patch

This patch

1. Adds "isInstanceDirInitalized()" to Config
2. SolrDispatchFilter only initalizes the directory if it is not already set
3. Adds a function to SolrDispatchFilter that can be easily extended to put custom attributes
in the SolrQueryRequest context



> 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
>
>
> 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.


Mime
View raw message