Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
archipelago:fe_search [2019/02/06 15:25]
giancarlo created
archipelago:fe_search [2019/02/28 11:49] (current)
giancarlo
Line 1: Line 1:
 ====== Drupal Solr connector ====== ====== Drupal Solr connector ======
  
-  * Ubuntu server 18.04 LTS (from ISO) +  * Install modules search_api and search_api_solr
-  * Set IPv4 and IPv6+
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
-nano -/etc/netplan/50-cloud-init.yaml +cd /var/www/siteDir 
-netplan apply+ 
 +# sudo -u www-data composer require drupal/search_api 
 +# sudo -u www-data vendor/drush/drush/drush en search_api 
 + 
 +# sudo -u www-data composer require drupal/search_api_solr 
 +# sudo -u www-data vendor/drush/drush/drush en search_api_solr 
 +</code> 
 +</WRAP> 
 +  * Configure server 
 +Browse to admin/config/search/search-api and click Add server 
 +<WRAP prewrap center> 
 +<code> 
 +Server name solr_server_name 
 +Enabled YES 
 + 
 +Backend Solr 
 +Configure Solr backend Standard 
 +Configure Standard Solr connector 
 + HTTP protocol http 
 + Solr host solrVM.domain.com 
 + Solr port 8983 
 + Solr path /solr 
 + Solr core archipelago 
 + 
 +Advanced 
 +Retrieve result data from Solr YES 
 +Retrieve highlighted snippets YES 
 +</code> 
 +</WRAP> 
 +  * Configure index 
 +Browse to admin/config/search/search-api and click Add index 
 +<WRAP prewrap center> 
 +<code> 
 +Index name solr_index_name 
 +Data sources 
 + Content YES 
 +Server solr_server_name 
 +Enabled YES 
 +Description Basic Content 
 +</code> 
 +</WRAP> 
 +  * Check server conf 
 +Browse to admin/config/search/search-api/server/solr_server_name 
 +<WRAP prewrap center> 
 +<code> 
 +Status enabled (disable) 
 +Backend class Solr 
 +Search indexes solr_index_name 
 +Solr connector plugin Standard 
 +Solr server URI http://solrVM.domain.com:8983/solr/ 
 +Solr core URI http://solrVM.domain.com:8983/solr/#/archipelago 
 +Server Connection The Solr server could be reached. 
 +Core Connection The Solr core could be accessed (latency: 7.0372091064453 ms). 
 +Configured Solr Version 7.6.0 
 +Detected Solr Version 7.6.0 
 +Indexed 0 items (69 bytes on disk) 
 +Delay 10 sec before updates are processed. 
 +Schema drupal-6.0-solr-7.x 
 +Solr Core Name archipelago 
 +Targeted content domain generic 
 +</code> 
 +</WRAP> 
 +  * Check index conf 
 +Browse to admin/config/search/search-api/index/solr_index_name 
 +<WRAP prewrap center> 
 +<code> 
 +Status enabled (disable) 
 +Datasource Content (0/0 indexed) 
 +Tracker Default 
 +Server solr_server_name 
 +Server index status There are 0 items indexed on the server for this index. (More information) 
 +Cron batch size During cron runs, 50 items will be indexed per batch. 
 +</code> 
 +</WRAP> 
 +  * Update search_api_solr to 3.x-dev 
 +<WRAP prewrap center> 
 +<code> 
 +cd /var/www/siteDir 
 + 
 +sudo -u www-data composer require "drupal/search_api_solr:3.x-dev" --dev "solarium/solarium:^4.3.0-alpha.2" --dev 
 +sudo -u www-data composer update "strawberryfield/strawberryfield" 
 +sudo -u www-data vendor/drush/drush/drush cr 
 +sudo -u www-data vendor/drush/drush/drush updatedb 
 +sudo -u www-data vendor/drush/drush/drush cr 
 +sudo -u www-data vendor/drush/drush/drush search-api-clear 
 +sudo -u www-data vendor/drush/drush/drush search-api-index
 </code> </code>
 </WRAP> </WRAP>
 
 
archipelago/fe_search.1549463102.txt.gz · Last modified: 2019/02/06 15:25 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki