Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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 );

      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

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hoss Man made changes -
        Fix Version/s 1.2 [ 12312235 ]
        Yonik Seeley made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Ryan McKinley made changes -
        Attachment SOLR-149-embeddable.patch [ 12351412 ]
        Ryan McKinley made changes -
        Attachment SOLR-149-embeddable.patch [ 12350885 ]
        Ryan McKinley made changes -
        Field Original Value New Value
        Attachment SOLR-149-embeddable.patch [ 12350696 ]
        Ryan McKinley created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development