Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /guides/solr/setup_guide.md for this page in Markdown format</div>

Setting Up a New Client with Solr

This guide details the steps to set up a new client on a Solr server. The process involves connecting to an internal server, adding your IP address, creating a new core, configuring the web panel, and finally updating the client environment variables.

Prerequisites

  • Internal Server: You are connected to an internal server hosting the Solr instance.
  • Server Naming: The server has an ecommercen prefix (e.g., ecommercen1.advisable.gr).
  • Solr IP: The Solr server’s IP is 10.0.0.4.

Step-by-Step Instructions

1. Connect to the Solr Server

Log into the ecommercen1 server:

bash
ssh root@10.0.0.4

Note : if it asks for password check the Solr machine password from an admin.

2. Add Your IP Address

In order to access the Solr panel, first add your IP address:

  • Find Your IP Address: Identify your IP.
  • Run the Script: Replace HereGoesOurIp with your actual IP.
    bash
       ~/wip.sh HereGoesOurIp
  • Verify Addition: Check that your IP has been added:
    bash
     ~/wipls.sh

3. Create a New Core

  • To create a new core, run the following command:

    bash
    ~/mkv2solrcfg.sh myClientName_v2
  • Verify that the new core has been added:

    bash
    ls /var/solr/data -ls

4. Configure the Web Panel

  • Navigate to the Solr panel:

    bash
    http://116.203.246.246:16001/solr/#/
  • Configure the web panel by navigating to Core Admin > Add Core:

    • Set the core Name to: myClientName_v2
    • Set the base instanceDir to: myClientName_v2

5. Update Client Environment Variables

Ensure you include the following settings in the client environment configuration (.env):

APP_SOLR_ENABLED=true
APP_SOLR_PROTOCOL=http
APP_SOLR_HOST=10.0.0.4
APP_SOLR_PORT=16001
APP_SOLR_CORE={{myClientName_v2}}
APP_SOLR_AUTH_ENABLED=false
APP_SOLR_AUTH_USER=user
APP_SOLR_AUTH_PASS=pass
APP_SOLR_DEBUG=true

6. Verify correct configuration (optional)

  • Navigate to the Clients admin panel dashboard page and press Ευρετήριο. This will index the data.
  • To check if everything is running as supposed go to Solr panel.
  • http://116.203.246.246:16001/solr/#/~cores/{{myClientName_v2}&#125; and press reload.
  • Once the index is over the Index / current will be checked after the process is done.

7. Remove Your IP Address

  • To remove your IP address, run the following command:

    bash
    ~/dewip.sh
  • Verify that your IP address has been removed:

    bash
    ~/wipls.sh

Your IP should no longer be displayed.

More information here :

[https://drive.google.com/file/d/1EMSC4AWe3Sq749E5bNaWSueRqyUjtas4/view?usp=sharing] Disclaimer: Important note certain parts of the referenced video are Outdated. This markdown guide was created to ensure that you have up-to-date instructions. Also for version 2 check search_v2.md inside wiki for more details for front end and client setup from v4.