Apache Solr Documentation

6.5 Ref Guide (PDF Download)
Solr Tutorial
Solr Community Wiki

Older Versions of this Guide (PDF)

Ref Guide Topics

Meta-Documentation

*** As of June 2017, the latest Solr Ref Guide is located at https://lucene.apache.org/solr/guide ***

Please note comments on these pages have now been disabled for all users.

Skip to end of metadata
Go to start of metadata

Solr uses Jetty internally to power its HTTP stack, but beginning with Solr 5.0, Support for deploying Solr as a WAR in standalone servlet containers like Jetty is no longer supported.

For information on how to install Solr as a standalone server, please see Installing Solr.

 

 

 

  • No labels

5 Comments

  1. Another way to override the default port is to specify the following system property on the command line

    -Djetty.port=8984

    This is useful in testing situations where you want to run multiple solr instances to test core or collection configurations without modify the jetty config

  2. "Installing Solr" link is inactive.

    1. Thanks Emmanuel, I fixed the link.

  3. How to set a safely login on jetty?

    1. 1.modify “server\etc\jetty.xml

      <Call name="addBean">

            <Arg>

              <New class="org.eclipse.jetty.security.HashLoginService">

                <Set name="name">Test Realm</Set>

                <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>

                <Set name="refreshInterval">0</Set>

              </New>

            </Arg> </Call>

      2. create /etc/realm.properties add 

      admin: admin123,core

      3.modify server\etc\webdefault.xml

      <security-constraint>

          <web-resource-collection>

            <web-resource-name>Solr authenticated application</web-resource-name>

            <url-pattern>/</url-pattern>

          </web-resource-collection>

      <auth-constraint>

            <role-name>core</role-name>

          </auth-constraint>

        </security-constraint>

       

        <login-config>

          <auth-method>BASIC</auth-method>

          <realm-name>Test Realm</realm-name>

        </login-config>

      then restart solr