-
Notifications
You must be signed in to change notification settings - Fork 2
Apache Solr Search
Karanjit Singh Gill edited this page Jun 23, 2017
·
1 revision
Configuration steps:
- Install and Enable Apache Solr module in Drupal.
- Install Solr and make sure it is running.
- Goto Configuration -> Search and Metadata -> Apache Solr search
- Click +Add search environment.
- Enter solr server URL. For example http://localhost:8983/solr/{core_name}
- Add a description for the search environment.
- You can choose to make this search environment default if it is not already.
- Provide read and write access (Recommended).
- Click Test Connection to check if the solr is reachable.
- Click on Save.
- Switch to Default Index Tab.
- Under CONFIGURATION select the content-types to be indexed. For example Article,etc.
- Click on Save.
- Index Site
- Under Actions tap on Queue all content for re-indexing
- Then click on Index all queued content.
- Happy Searching!
Configuration steps:
- Skip to #3 if the File field is already set.
- Add a File field.
- Goto -> Structure -> Content-type -> {any content that needs an attachment} -> Manage Fields -> Add new field -> {field name} -> Select a field type -> FILE
- Open Edit tab for the field created above -> Enable Display Field -> Check the field displayed by default checkbox.
- Goto Configuration -> Search and Metadata -> Apache Solr Search -> Default Index -> Configuration -> Check the File checkbox -> Save.
- Install Apache Solr Attachments module in Drupal.
- For SQL 5.7 a change in schema is required(at the time of writing this manual).
- Get the patch file from https://www.drupal.org/node/2803667 or use the one here.
- Paste the patch in the sites/all/modules/apachesolr_attachments/
- Apply the patch to the apachesolr_attachments.install file with the following command
- patch apachesolr_attachments.install -i {pathfile}.patch
- Enable Apache Solr Attachments module.
- Download Apache Tika App jar from https://tika.apache.org/download.html. Ex. tika-app-1.15.jar
- Place jar file in the {drupal_root}/sites/all/libraries/{tika_dir} folder
- Goto Configuration -> Search and Metadata -> Apache Solr search -> Attachments
- Select Tika under Extract using.
- Enter the absolute path to the tika directory created in the step #3.
- Enter the name of the jar, Ex. tika-app-1.15.jar.
- Click Save.
- Under Action click on Test your tika extraction to check if the jar is reachable.
- Re-index your site.
- Happy Searching!
Home
- Introduction
- Content Publishing Workflow
- Localization support for Indian Languages
- Content Versioning
- User Reputation Model
- Content categorization
- Search and tagging
Getting Started
Further Developments