This guide describes how to configure multiple Drupal sites to use a single SearchStax app, with each site managing its own search index. This approach is recommended for scenarios such as managing separate development, staging, and production environments.
curl to clear indexed search data.SiteA_Dev, SiteB_Dev, SiteA_Test, SiteB_Test.Locate the SearchStax Server and click Edit.
Click Advanced and confirm that the All index prefix field is empty.
Click Multi-site compatibility and check the box for Retrieve results for this site only.
On the SearchStax server page, find the Search indexes section and select your search index.
If the index contains zero items, click Index now. Wait five minutes, then click the Edit tab. If all items are already indexed, proceed to the Edit tab.
Click Solr specific index options and expand the Advanced section.
Under the Which Drupal search settings should be ignored? section, uncheck all boxes.
Confirm that each site displays results only from that particular site.
After completing the configuration process for two sites, your SearchStax app contains three indexes:
Delete the All Index using the SearchStax API:
curl -X POST \
'https://searchcloud-{{region-identifier}}.searchstax.com/{{Number}}/{{Application-ID}}/update?commit=true' \
-H 'Content-type:application/json' \
-H 'Authorization: Token {{Token}}' \
-d '{
"delete": {
"query": "index_id:{{All index machine name}}"
}
}'If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.