To search for documents in the Site Manager, Studio or custom client applications, you need to configure the CoreMedia Search Engine with the CoreMedia Content Server. The CoreMedia Content Server connects to the CoreMedia Search Engine to handle search requests for its clients.
Caution | |
---|---|
Configure in the following files below
|
Configuring the Search Engine Location
In file search-solr.properties
configure the property search.solr.urls
with the URL of
the Apache Solr core. For example
http://localhost:8081/solr/studio
. If you change this setting, you have to restart the server. You can also
configure multiple comma-separated URLs in this property if you want to use multiple Solr servers for failover and
simple load balancing, but note that Studio always uses only the first configured URL.
If the Apache Solr web application has been secured and needs HTTP Basic authentication, you must also configure
the required user name and password in the properties search.solr.username
and
search.solr.password
.
Configuring the Search Engine Collection
In file search-solr.properties
configure the property search.solr.collection
with the
name of the CoreMedia Search Engine collection.
search.solr.collection=studio
The Content Feeder stores the collection name in the field
collection
of Solr index documents. A search result only contains documents belonging
to the same collection. To achieve this, the content server automatically adds the collection name to a user
query. If you change this setting, you have to restart the server.
Enable or Disable Search
Search functionality is enabled by default. You can disable it by setting property
cap.server.search.enable
to false
in the file contentserver.properties
. If
disabled in the Content Management Server, no search dialog will be
available in the Site Manager. Note that
Studio requires search to be enabled in the
Content Management Server.
Configuring the CoreMedia Search Engine Timeout
In file search-solr.properties
configure the property search.solr.connection.timeout
with a timeout value in milliseconds used in HTTP requests to the search engine. The default value is 0, which
means no timeout is applied.
search.solr.connection.timeout=0