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

Make solr more embeddable

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment