Toolset Views add-on

323 views December 8, 2018 January 14, 2020 admin 0

Works now for archives and views!

The Toolset Views add-on for WPSOLR is deceptively simple.

Configure WPSOLR as usual, activate the add-on, and that’s it.

All your Toolset Views and Archives are now accelerated as if by magic. No extra-setup, no knowledge of Elasticsearch or Solr are even required.

Below are explained the steps to activate the add-on. Notice that most steps are optional.

If you prefer watching the full tutorial showing the setup of WPSOLR with Toolset archive Views (since version 20.1):

1) Create an index

For Elasticsearch:

Video: Create an Elasticsearch index automatically

For Solr:

Video: Create an Apache Solr index semi-automatically

For SolrCloud:

Video: Create an Apache SolrCloud index automatically

You can also want to search for more informations on index creation, Elasticsearch, Apache Solr, or Elasticsearch/Solr hosting providers. Or just browse the Elasticsearch/Solr forums.


2) Activate the Toolset Views add-on

The only action required for the add-on is to activate it. The add-on will then operate in the background to transform views’ SQL in Elasticsearch or Solr queries. Therefore, no other Toolset Views configuration is necessary.

Toolset Views add-on activation

Toolset Views add-on activation


3) Select the archive types to speed up

If you created several Toolset archive type views, you can pick those you want to accelerate with WPSOLR, among the 8 archive types.

WordPress Archive pages selection


4) Index some custom fields (Optional)

This step is optional, and required only if you want to add custom field sorts in your Toolset Views. Or if you want to use the custom field as a filter in WPSOLR’s Facets Widget.

Select a post type’s custom field in screen 2.2: it will be indexed, and only then can be used as a sort in Elasticsearch or Solr.

Toolset Views add-on custom fields

Toolset Views add-on: index a custom field


Then, use the custom field as a primary, or secondary, “order by” sort:

Toolset Views add-on Order by custom field

Toolset Views add-on: use a custom field as “Order by” sort


5) Configure facets (Optional)

Facets are the dynamic filters you probably saw on WooCommerce sites like Amazon. You can select any of the custom fields and taxonomies you previously chose in screen 2.2.

a) First add the facets:

Add a facet

Add a facet

b) Save the facets

c) Configure each facet:

Configure a facet

Configure a facet


6) Add WPSOLR facets widget (Optional)

Once you configured the facets in screen 2.4, you can add the WPSOLR Facets Widget to each archive type sidebar.

Add facets widget

Add facets widget


Here is how the facets widget look like on the front-end, with its related Toolset View (after you indexed all your documents):

Image wpsolr-front-toolset-views-addon-facets-widget.png of Toolset Views add-on

Toolset Views results with their facets widget


7) Index your content

You created your index, configured it. It’s now time to fill it with your data (selected in screen 2.2):

Index the data

Index the data


8) Nothing else!

Yes, that’s it. From now on, WPSOLR will replace your Toolset Views SQL with fast Elasticsearch/Solr queries.

Was this helpful?

Join Our weekly Newsletter

Receive our latest news once a week, each Thursday afternoon.
Your email is kept 100% private, and you will not receive other stuff in your mailbox.

We keep your data private and share your data only with third parties that make this service possible. Read our Privacy Policy.