When migrating an existing search project to SearchStax Site Search, you may need to manage configurations that aren't available in the SearchStax user interface. You can create an App and specify the platform, which will automatically install the default schema for that platform. However, if you need additional customization, you'll need access to modify the search schema.
Modify Schema with the Schema API
You can modify your schema by using the Schema API along with a Read/Write token for the App you want to modify.
Use the schema endpoint for schema changes. Search query endpoints and document update endpoints don't apply schema commands.
A common spellcheck migration task is to make sure the spellcheck source field (text_spellcheck) receives content from the fields that should power spelling suggestions. If needed, add copy-field rules through the Schema API.
After changing schema rules, run a full re-index so existing documents populate the updated fields.
See Spell Check for feature behavior and Reducing Nested Clauses with Copy Fields for copy-field examples.
Use the Schema Management Script
For Drupal users, SearchStax has created a schema management script that handles the migration of all schema files in your Drupal configuration. The script identifies differences in your schema and applies the changes to your App's schema files.
The script manages these schema files:
- schema.xml
- schema_extra_types.xml
- schema_extra_fields.xml
You can find the schema management script on GitHub: searchstax-schema-management