DOCS

Post type Filters, Orders & Indexing

In the Filtering tab of the post type editor you can setup filters, search orders and configure indexing.

Search filters

Under this sub-tab, you can create and manage the filters for this post type. These filters can then be used to create search forms in front-end using Search form (VX) widget.

There are various filter types which can use as a source (filter) different field types:

  • Keyword
  • Date
  • Recurring date
  • Term
  • Location
  • Open now
  • Availability
  • Stepper
  • Range
  • Switcher
  • Author
  • Followed by
  • Following post (Profile CPT only)
  • Post relation
  • Post status

Learn more about Filters

Search order

While filters allow us to find results based on different parameters, Search Orders define the order in which they are shown on the search results:

There are multiple preset ordering options, pre-configured and ready to use:

  • Latest
  • Best rated
  • Priority
  • Relevant
  • Alphabetical
  • Random
  • Nearby

Other than presets, you can also add custom ordering options that let you create custom ordering based on a specific Date field, Number field, Text field, etc.

Orders can have one or multiple clauses. For example, you may want to order by post priority first, and if multiple posts are on the same priority level, you can add a secondary clause to then order them by another property, e.g. date created.

Indexing

In Voxel, all data used for filtering is stored in the database in a separate, “index” table. This table is automatically generated based on filters that you create and contains only necessary data. This allows us to store them in the most efficient and optimized format to achieve high performance and scalability even with high volume of posts.

When posts are created, edited, or deleted, the index table is automatically updated to reflect those changes.

By default, Published posts are included in the index, but you can include other post statuses as well.

Post statuses other than Published are non public and can only be accessed by their post authors in front-end. Including them in the index can be beneficial if you intend to build a front-end post management page as part of a user dashboard.

Indexing status

Shows an overview of the current indexing status for posts of this post type, like number of published posts, number of indexed posts and the name of the index table in your database.

Generally, indexing happens automatically and no action is required here, as long as your site meets minimum Voxel requirements, and the right database type you are using is selected in Voxel database settings

If indexing failed for some reason, and search results are not showing in front-end, you can manually click “Index status” to trigger a re-index. After this is complete, you can check the number of “Indexed posts” to verify the re-index was succesful.

Due to slight differences between MySQL and MariaDB, when switching database types it’s recommended to recreate the tables manually by clicking “Recreate table and index all posts”

Continue reading