intra-mart Accel Platform / Quick Setup Guide

Version 3 2014-08-01

«  5.3. Apache Cassandra   ::   Contents   ::   6. WAR File Creation  »

5.4. Apache Solr

5.4.1. Prerequisites

  • When you set up [Apache Solr] on [Resin], [Resin] should be already installed.

  • If you select [Standard Application]-[IM-ContentsSearch for Accel Platform] module on IM-Juggling and
    use [IM-ContentsSearch for Accel Platform], [Apache Solr] server should be built.

5.4.2. Apache Solr Setup

  1. Expand <solr_setup.zip> file which is included in the media to the arbitrary path.

    [Apache Solr] setup tool can also be downloaded from the URL below.

    Note

    The directory below is specified as an example in this document.

    [C:/solr]

  2. Open command prompt and move to the next path.

    C:/solr/solr_setup

  3. Enter the following command.

    If you press <Enter> key, setup tool would be executed and setup tool command list and its description would be displayed.

    C:/solr/solr_setup> setup.bat
    C:\solr\solr_setup>
    C:\solr\solr_setup> setup.bat
    Buildfile: C:\solr\solr_setup\build\build.xml
    
    usage:
         [echo] Welcome to the Apache Solr Installation!
         [echo] Use '' to display usage
         [echo] Use 'usage' to display usage
         [echo] Use 'jetty' to download the jetty zip file, solr zip file and the solr.war and unzip the zip files and config the jetty port
         [echo] Use 'jetty.start' to download the jetty zip file, solr zip file and the solr.war and unzip the zip files and config the jetty port and start the jetty
         [echo] Use 'resin' to download the solr zip file and the solr.war for resin and unzip the zip file
         [echo] Use 'tomcat' to download the solr zip file and the solr.war for tomcat and unzip the zip file
    
    BUILD SUCCESSFUL
    Total time: 1 second
    
    C:\solr\solr_setup>
    
  4. Set up to Resin.

    If you execute C:/solr/solr_setup> setup.bat resin, resin directory will be created in ./dist directory.

    Note

    Shown below is a part of screen which is displayed after setup. bat resin is executed.

          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ....................................................
          [get] ...........
          [get] last modified = Thu Sep 27 01:25:24 JST 2012
    
    md.resin.webapps:
         [echo] make resin webapps dir(../dist/resin/resin/webapps)...
        [mkdir] Created dir: C:\solr\solr_setup\dist\resin\resin\webapps
    
    copy.resin.solr.war:
         [echo] copy the solr.war from ./download/solr.war to ../dist/resin/resin/webapps...
         [copy] Copying 1 file to C:\solr\solr_setup\dist\resin\resin\webapps
    
    common.display.readme:
         [echo] ==========================================================================================================
         [echo] [*] Definition
         [echo]     Directory which <%resin_home%>:Application Server Resin is installed
         [echo]
         [echo] [*] Placement and setting of Solr
         [echo]     Copy /dist/resin_solr/resin/*.* to <%resin_home%>.
         [echo]
         [echo] [*] Solr home location setting
         [echo]     Add the contents of /dist/resin_solr/env-entry.txt to <%resin_home%>/conf/resin.xml.
         [echo]
         [echo]     Copy env-entry.txt contents before </resin> of resin.xml.
         [echo]
         [echo] ==========================================================================================================
         [echo] C:\solr\solr_setup\dist\resin\readme.txt
    
    BUILD SUCCESSFUL
    Total time: 11 seconds
    
    C:\solr\solr_setup>
    
  5. When setup tool execution is completed, file group which is necessary for the setup will be output to ./dist directory.

    Then, please execute the steps stated in readme.txt in the file (same with the contents displayed at command completion).

    Note

    Resin which should be set up by Apache Solr
    also operates in the same environment with Resin which sets up intra-mart Accel Platform.
  6. This completes the setup.

    If you need to know more details about the settings, please refer to [ Solr Administrator Guide ].

5.4.3. [Apache Solr] Startup, Connection to Admin Screen, and Stoppage

  1. Start up Resin which sets up [Apache Solr].

  2. Connect to Admin screen of [Apache Solr] and check if the [search] button operates normally.

    http://localhost:8080/solr/default/admin/

    [*] Screen below is just an example.

Go to [ WAR File Creation ].

«  5.3. Apache Cassandra   ::   Contents   ::   6. WAR File Creation  »