Use the Schema API and a Read/Write token to modify a SearchStax App schema, or use SearchStax's Drupal schema management script. The script applies Drupal schema changes to the App's schema files.
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