Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
The latest version of the Solr module is 6.1.4.
Solr module compatibility with Apache Solr
This version contains changes in solrconfig.xml
and managed-schema
. Please read the notes below before updating.
magnolia-solr-workbench
. It provides a SolrContainer for list, search and thumbnail views in the content apps.managed-schema
New fields:
jcrname
( <field name="jcrname" type="string" stored="true" indexed="true"/>
).
nodetype
(<field name="nodetype" type="string" stored="true" indexed="true"/>
).
(dynamic) asset_*
( <dynamicField name="asset_*" type="text_general" indexed="true" stored="true" multiValued="false"/>
).
<copyField source="*" dest="_text_"/>
(replaced by CloneFieldUpdateProcessorFactory
in solrconfig.xml
, see also below).*_point
(in collision with the *_point
fields when parsed by Apache Tika in documents).*_id (Indonesian)
(in collision with the *_id
fields when parsed by Apache Tika in documents).solrconfig.xml
ExtractingRequestHandler
:asset_content
field).<str name="uprefix">ignored_</str>
).CloneFieldUpdateProcessorFactory
was added into the add-unknown-fields-to-the-schema
update request processor chain. This replaces <copyField source="*" dest="_text_"/>
, which was removed from the managed-schema
.uuid
, _version_
, id
, path
, workspace
, nodetype
, assetproviderid
, url
, type
and all ignored_*
fields are by default excluded from copying to the _text_
field.To update to version 5.2, refer to the Installing Apache Solr page. After a successful installation of Solr 7, retrigger the indexers (/modules/content-indexer/config/indexers/<indexer_name>
) by changing their property indexed to false
.
This version contains changes in solrconfig.xml
and managed-schema
please read the notes before update to 5.0.2.
Fixed na issue of two indexers/crawlers mutually overwriting the resulting index when indexing the same content. For example when one indexer was for indexing the English translation and other one for indexing the German translation. - MGNLEESOLR-102Getting issue details... STATUS
Problem was caused by using jcr uuid(indexers) and url(crawlers) as unique identifier for solr indexes. To fix this issue changes in solrconfig.xml
and managed-schema
were required.
<uniqueKey>
in managed-schema
was changed to uuid
.uuid
in info.magnolia.search.solrsearchprovider.logic.providers.FacetedSolrSearchProvider
.solrconfig.xml
now generates the uuid
field from a combination of type
and id
fields. The deduplication method is used to generate the uuid. For more details see the change in code diff.Option 1:
If you don't plan to index same content by two different indexers or crawlers then you don't need to update your solrconfig.xml
and managed-schema
for your solr core. Only change what you need to do is add uniqueKeyField
property with value id
into your solr sear result page.
Option 2:
Use new managed-schema and solrconfig.xml configuration files for your solr core and for $SOLR_HOME/server/solr/configsets/magnolia_data_driven_schema_config
.
It's needed to recreate all Solr indexes, because of the changes in configuration files. Probably the easiest way to do it is recreate the solr core and then retrigger indexing in Magnolia.
solrconfig.xml
and managed-schema
configuration files for $SOLR_HOME/server/solr/configsets/magnolia_data_driven_schema_config
Magnolia config set. Delete magnolia
core an create it again
cd $SOLR_HOME/bin ./solr delete -c magnolia ./solr create_core -c magnolia -d magnolia_data_driven_schema_configs
Retrigger the indexers, by changing their property indexed
to false
Solr Search Provider module version 5.0 brings support to Solr 5 (officially tested with version 5.3.1).
Full changelog for version 5.0 https://jira.magnolia-cms.com/browse/MGNLEESOLR/fixforversion/18141
Regarding the changes in the module it's recommended completely recreate the Solr indexes after to upgrade to version 5.0.
org.apache.solr.client.solrj.SolrServer is deprecated and was replaced by org.apache.solr.client.solrj.SolrClient in solr-solrj 5.x library. Because of that info.magnolia.search.solrsearchprovider.MagnoliaSolrBridge#getSolrServer method was changed to info.magnolia.search.solrsearchprovider.MagnoliaSolrBridge#getSolrClient method.
Solr Search Provider module version 3.0 delivers the following key fixes and enhancements:
magnolia-solr-search-provider-theme module has gone - MGNLEESOLR-66Getting issue details... STATUS
Full changelog for version 3.0 https://jira.magnolia-cms.com/browse/MGNLEESOLR/fixforversion/17434
Regarding the changes in the module it's recommended completely recreate the Solr indexes after to upgrade to version 3.0.