Info: Performing the steps described in this article requires direct server access. Depending upon how your system is hosted and the level of access you have to that system, coordination may be required with your Partner or WoodWing Support team.
After adding a custom metadata property to Studio Server, it can be added to the Solr search index so that the time it takes to perform a search on that property is reduced.
For the following steps, assume that a custom property named MYSTRING of type 'string' is added to Solr.
Adding the property to the schema.xml file
Step 1. Open the schema.xml file.
Step 2. Locate the comment <!-- Custom property definitions -->.
Step 3. Add the following field outside the comments:
<field name="C_MYSTRING" type="onlySort" indexed="true" stored="true"/>
- For the name value, enter the name of the custom property, prefixed by a 'C_'.
- For the type value, see the comments in schema.xml file.
Step 4. (Optional) Add the property to the WW_CATCHALL field:
Step 4a. Locate the line <copyField source="Slugline" dest="WW_CATCHALL"/>.
Step 4b. Add the following definition after the last copyField line:
<copyField source="C_MYSTRING" dest="WW_CATCHALL"/>
Adding the property to the config_solr.php file
Step 5. Open the config_solr.php file.
- <Studio Server installation directory>/config/
Step 6. Locate the SOLR_INDEX_FIELDS option.
Step 7. Add 'C_MYSTRING' to the list.
Step 10. Restart Solr by restarting Tomcat server.
Step 11. In Studio Server, access the Search Server Maintenance page by doing the following:
Step 11a. In Studio Server, click Integrations in the Maintenance menu or on the Home page. A page with all integrated services appears.
Step 11b. Click Search Server.
The Search Server Maintenance page appears.
Figure: The Search Server Maintenance page.
Step 12. In the Indexing section, click Clear followed by Start.
Testing the new configuration
Step 13. Perform a search for a known value of the custom property and verify that it is part of the search results.
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
Please sign in to leave a comment.