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.
Ensure that the Parse mode and searched fields option remains disabled for use with multiple Drupal views.
Confirm that each site displays results only from that particular site.
After completing the configuration process, your SearchStax app contains three indexes:
If a third site (Site C) must show search results from both Site A and Site B, keep the All Index and connect it to Site C with SearchStax's read-only API endpoint. If Site C is not required, 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}}"
}
}'
To clear and reindex content for a single site, use the SearchStax Solr API with curl to delete the specific index. Reference the provided curl example in the documentation.
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:{{Site Index Prefix}}{{All index machine name}}"
}
}'
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Mon Sep 15 2025 06:26:31 GMT+0000 (Coordinated Universal Time)