Documentation

Select a category on the left, to get your answers quickly

In order to use Opensolr with Omeka, you will need the following:

  • Create your Opensolr Index.
  • Upload the Omeka Solr Configuration Archive to your Opensolr Index Control Panel.
  • Download the Omeka-S-module-SearchSolr module.
  • Setup the SearchSolr module and any other submodules for your search in Omeka following the installation procedures on their manual pages.
  • Edit the Solr server configuration file in Omeka, which is at:
    $ Omeka-S-module-SearchSolr/data/solr_cores/default.php

    In default.php, enter the Opensolr connection information, as per your Opensolr Index Control Panel. The values that changed from the default ones are maked in green.

    return [
        '@context' => null,
        '@id' => null,
        '@type' => 'o:SolrCore',
        'o:id' => null,
        'o:name' => 'Default',
        'o:settings' => [
            'client' => [
                'scheme' => 'https',
                'host' => 'SERVER.OPENSOLR.COM',
                'port' => 443,
                'path' => '/',
                // 'collection' => null,
                'core' => 'OPENSOLR_INDEX_NAME',
                'secure' => true,
                'username' => OPENSOLR_INDEX_USERNAME,
                'password' => OPENSOLR_INDEX_PASSWORD,
                'bypass_certificate_check' => true,
            ],
            'support' => '',
            'server_id' => '',
            'resource_languages' => '',
            'query' => [
                'minimum_match' => '',
                'tie_breaker' => '',
            ],
        ],
    ];
    
  • Run the following command on your Opensolr Index, in order to add the copy field to your Solr managed-schema.
    curl --user 'INDEX_USERNAME:INDEX_PASSWORD' -X POST --data-binary '{"add-copy-field":{"source":"*","dest":"_text_" }}' 'https://SERVER.OPENSOLR.COM/solr/INDEX_NAME/schema'
  • Start re-indexing your website data from the Omeka Search Solr module, and your search should work.




Review us on Google Business
Close Check out the Fully Automated Solr server setup for Drupal & WordPress.