Bitnami Apache Solr

NOTE: Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under "Start -> Bitnami APPNAME Stack -> Application console" (Windows). Learn more.

Apache Solr is a popular open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world's largest internet sites.

How to configure the Apache Solr server?

Obtain example configuration files by following these steps:

$ sudo installdir/ stop solr
  • Change directories to locate the files:

      $ cd installdir/apache-solr
  • Create Solr home directory installdir/apache-solr/example/techproducts/solr by executing the following command:

      $ sudo ./bin/solr -e techproducts

This action creates a set of example configuration files in installdir/apache-solr/example/techproducts/solr/techproducts/conf. These are configuration references. Modify these files depending on your server requirements.

  • Access the Solr administration interface via SSH or by opening the port 8983 in the server firewall. Refer to the FAQ for more information on how to configure your server firewall.

How to enable the Apache Solr logs?

The Apache Solr log files are not enabled by default after version 3.x. To enable the log files, uncomment the following section in the installdir/apache-solr/server/etc/jetty.xml file. Remember to restart the server for your changes to take effect.

<Ref id="Handlers">
  <Call name="addHandler">
      <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
        <Set name="requestLog">
          <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
            <Set name="filename">
            <Set name="filenameDateFormat">yyyy_MM_dd</Set>
            <Set name="retainDays">90</Set>
            <Set name="append">true</Set>
            <Set name="extended">false</Set>
            <Set name="logCookies">false</Set>
            <Set name="LogTimeZone">UTC</Set>
NOTE: When running the commands shown on this page, replace the installdir placeholder with the full installation directory for your Bitnami stack.

Bitnami Documentation