With Alfresco 5.2 we are introducing Alfresco Search Services and Solr 6.3, read more about Solr 6.3 and the new features here.
With Solr 6 there is a significant change - it's now a standalone application powered by a jetty server. In this post we will cover the additional steps required to configure and setup Alfresco and Solr 6.
NB if using SSL please also refer to this post
Download Alfresco Solr 6 distribution from here, unpack and move to a preferred location.
Start Solr 6 using the command below.
$SOLR_HOME/solr/bin/solr start
Open a browser (assuming you're in the same server where Solr 6 is installed) and navigate to:
http://localhost:8983/solr/
You should see Solr's admin screen - in here you can see the Solr version in use is 6.x.
Edit the alfresco-global.properties file as shown below to disable SSL, then restart Alfresco.
solr.secureComms=none
http://localhost:8080/alfresco/s/enterprise/admin/admin-systemsummary
Upload and apply the appropriate license.
Restart Alfresco, and once it's restarted return to the Admin Console.
Select "Search Service" from the navigation.
Select Solr 6 from the "Search Service In Use" dropdown and review the details.
Click on Save to set Solr 6 as the default Search Engine.
To create the new cores, select "Index Server Sharding" from the navigation.
Select the "Dynamic Shard Instance Registration" check box and click 'Save'.
Click on Manage, which will launch the Index Server Shard Management popup.
Enter the Solr 6 ip address, port and context (for example http://127.0.0.1:8983/solr) and click Add.
You can also configure and setup Solr shards at this stage, this will be covered fully in another blog
Scroll down to Manage Default Indexes and click on Create Alfresco to create Alfresco Core.
Click on Create Archive to create the Archive Core.
Scroll down to the Report section to see a response.
Congratulation! You've now configured Alfresco to work with Solr 6.
Now it's time to verify that it has created Alfresco and an Archive core. Open a browser (assuming you're in the same server where Solr 6 is installed) and navigate to:
http://localhost:8983/solr/
In the Solr Admin UI select the core selector dropdown and verify that both Alfresco and Archive are present in the dropdown.
Allow a few minutes for the content to be searchable on Solr 6.
### Solr indexing ###
index.subsystem.name=solr6
solr.host=localhost
solr.port=8983
solr.port.ssl=8984
solr.secureComms=none
ALFRESCO_HOME/solr6/solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
For your interest, we would like to submit to your attention another tutorial fromAxel Faust about using Solr6 in Alfresco Community Edition 5.2 (201612 GA).