Skip to content

Commit

Permalink
Merge pull request ckan#8526 from ckan/brooks-eco-master
Browse files Browse the repository at this point in the history
Update solr.rst
  • Loading branch information
amercader authored Nov 13, 2024
2 parents 236db08 + 747e15c commit 4d5c4f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def write_substitutions_file(**kwargs):
current_release_version=current_release_version,
previous_release_version=previous_release_version,
previous_release_version_format=previous_release_version_format,
current_minor_version=current_minor_version,
latest_release_tag=latest_release_tag_value,
latest_release_version=latest_release_version,
latest_release_version_format=latest_release_version_format,
Expand All @@ -402,6 +401,10 @@ def write_substitutions_file(**kwargs):
**config_defaults_from_declaration()
)

rst_epilog += f'''
.. |current_minor_version| replace:: {current_minor_version}
'''


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
12 changes: 6 additions & 6 deletions doc/maintaining/installing/solr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ There are pre-configured Docker images for Solr for each CKAN version. Make sure

.. parsed-literal::
docker run --name ckan-solr -p 8983:8983 -d ckan/ckan-solr:2.10-solr9
docker run --name ckan-solr -p 8983:8983 -d ckan/ckan-solr:|current_minor_version|-solr9
You can now jump to the `Next steps <#next-steps-with-solr>`_ section.

Expand All @@ -38,15 +38,15 @@ follow the `official Solr documentation <https://solr.apache.org/guide/solr/late

sudo apt-get install openjdk-11-jdk

#. Download the latest supported version from the `Solr downloads page <https://solr.apache.org/downloads.html>`_. CKAN supports Solr version 9.x (recommended) and 8.x.
#. Download the latest supported *binary release* version from the `Solr downloads page <https://solr.apache.org/downloads.html>`_. CKAN supports Solr version 9.x (recommended) and 8.x.

#. Extract the install script file to your desired location (adjust the Solr version number to the one you are using)::

tar xzf solr-9.2.1.tgz solr-9.2.1/bin/install_solr_service.sh --strip-components=2
tar xzf solr-9.7.0.tgz solr-9.7.0/bin/install_solr_service.sh --strip-components=2

#. Run the installation script as ``root``::

sudo bash ./install_solr_service.sh solr-9.2.1.tgz
sudo bash ./install_solr_service.sh solr-9.7.0.tgz

#. Check that Solr started running::

Expand All @@ -60,7 +60,7 @@ follow the `official Solr documentation <https://solr.apache.org/guide/solr/late

.. parsed-literal::
sudo -u solr wget -O /var/solr/data/ckan/conf/managed-schema https://raw.githubusercontent.com/ckan/ckan/dev-v2.10/ckan/config/solr/schema.xml
sudo -u solr wget -O /var/solr/data/ckan/conf/managed-schema https://raw.githubusercontent.com/ckan/ckan/dev-v|current_release_version|/ckan/config/solr/schema.xml
#. Restart Solr::
Expand All @@ -78,7 +78,7 @@ To check that Solr started you can visit the web interface at http://localhost:8

If you followed any of the instructions above, the CKAN Solr core will be available at http://localhost:8983/solr/ckan. If for whatever reason you ended up with a different one (eg with a different port, host or core name), you need to change the :ref:`solr_url` setting in your :ref:`config_file` (|ckan.ini|) to point to your Solr server, for example::

solr_url=http://my-solr-host:8080/solr/ckan-2.10
solr_url=http://my-solr-host:8080/solr/ckan


.. _Solr: https://solr.apache.org/
Expand Down

0 comments on commit 4d5c4f6

Please sign in to comment.