sh 截断Acquia SOLR核心

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 截断Acquia SOLR核心相关的知识,希望对你有一定的参考价值。

# D8 Search API Solr: Wipe a Solr core completely NEEDS EDITING
drush --uri=[domain] ev '
  $search_api_server_machine_name = "acquia_search_server"; ## EDIT THIS IF NEEDED
  $backend = Drupal\search_api\Entity\Server::load($search_api_server_machine_name)->getBackend();
  $connector = $backend->getSolrConnector();
  # Code based on \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::deleteAllIndexItems()
  $query = "solrfieldname:solrfieldvalue";    ## REPLACE "solrfieldname:solrfieldvalue" WITH "*:*" TO DELETE EVERYTHING
  $update_query = $connector->getUpdateQuery();
  $update_query->addDeleteQuery($query);
  $update_query->addOptimize();
  $connector->update($update_query);
'

以上是关于sh 截断Acquia SOLR核心的主要内容,如果未能解决你的问题,请参考以下文章

sh Flush Acquia memcache

如何将 solr 字符串字段截断为 10 个字符?

sh solr-provision.sh

php Acquia D7示例Memcache配置

php Acquia D8 Memcache示例配置

markdown Acquia搜索设置 - BLT / DrupalVM等