Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-149

Make solr more embeddable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2
    • None
    • None

    Description

      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 );

      Attachments

        1. SOLR-149-embeddable.patch
          4 kB
          Ryan McKinley
        2. SOLR-149-embeddable.patch
          7 kB
          Ryan McKinley
        3. SOLR-149-embeddable.patch
          9 kB
          Ryan McKinley

        Activity

          People

            Unassigned Unassigned
            ryantxu Ryan McKinley
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: