What is the Toolset types add-on
The Toolset types add-on is the extension for the toolset types plugin. Toolset types allows you to create custom post types, taxonomy and fields. The WPSOLR add-on allows you to use these newly create post types as facets on the front-end to help filter your search.
Install the Toolset types plugin
Click on “Add New”.
Then on “Upload Plugin”.
Then activate the newly installed plugin.
Create a Toolset Type facet
Click on “Toolset” > “Dashboard”.
Then click on “Add custom fields” in the “Products” post type if you want to add a custom field that applies to products.
If you want to create a regular custom field, click on “Toolset” > “Custom Fields” in the sidebar.
Then click on “Add New Group”. But here I chose to use the first option.
You should then see this screen after choosing the first option.
After choosing a field, Fill in the name and the description. Other options are available if you want to further customize the new field.
Then edit a product and fill in our newly created field. When you’re done save and configure WPSOLR.
Click on “Define your search”.
Then click on “Data” in the sidebar.
Select the newly created field.
Then choose “Filter” in the sidebar.
And select the field we chose earlier.
Choose a label and a layout, then save.
Click on “Send your data” in the menu bar.
Then click on “Index selected post types in index”.
Test website search. As you can see a new filter has appeared.
We can see the email we entered earlier.
Create a WPSOLR index
Click on “Connect your indexes” in the menu bar.
Then click on this button to connect to a search server.
Fill in the information next. Choose a search engine and a hosting service. Then choose a language and choose a WPSOLR index name. The search engine index name can not have spaces. The words must be separated by an underscore. Fill in the Endpoint URL and leave the default number of shards and replicas. Fill in the user and the password. When you’re done save.
Add the Toolset Types add-on
Click on “Activate extensions” in the menu bar.
Then click on “Toolset Types” in the sidebar.
Click on the first checkbox to activate the plugin. Click on the second one if you want to replace custom field names by custom field labels on the WPSOLR facets in the front end part of the website. If you want to have more choices when customizing your facets, install the “Theme” extension.
Click on “Theme” in the sidebar.
then click on the checkbox to activate the extension.
Configure WPSOLR
Click on “Define your search with ‘No index selected'”
Then click on the “Search” checkbox and select the select the search engine index we connected to earlier. Then save.
Click on “Data” in the sidebar.
Then click on “Products” and select the Taxonomies you want to use.
Then select the fields you would like to use. Here I chose to activate the price, stock and stock status fields. I used floating point number and integer number for price and stock respectively, because I am going to display these fields in the form of a slider. The slider does not work with text fields.
Then click on “Filter” in the sidebar.
Select the fields we chose earlier, then save.
Then go to the first field and fill in a label and choose a layout. I chose the “Range Slider”.
Then scroll down and choose a label and a layout. Just like before, I’m going to use the “Range Slider”.
Lastly, enter the label for the stock status filter and chose a layout. And save.
If you want you also change the skin of the slider after saving your changes. Save your changes.
Index the content
Click on “Send your data” in the menu bar.
Click on “Index selected post types” to index the products.
Add the WPSOLR facet widget on the frontend
Click on “Customize” at the top of the window on the front part of the website.
Then click on “Widgets”.
Then click on “Sidebar”.
And on “Add a Widget”.
Type in WPSOLR in the search box and select “WPSOLR Facets”.
You should then see this. Publish your changes.
Test website search
Search is working as intended