Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      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
          9 kB
          Ryan McKinley
        2. SOLR-149-embeddable.patch
          7 kB
          Ryan McKinley
        3. SOLR-149-embeddable.patch
          4 kB
          Ryan McKinley

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: