Index - Sanitize value

229 views October 14, 2016 July 13, 2019 admin 0

Name


WPSOLR_Events::WPSOLR_FILTER_INDEX_SANITIZE_FIELD


Short description

Sanitize a field value.


Long description

Control that a field value matches it’s expected Solr type definition. Often, your custom fields contain some historical irrelevant values, like a string when a number is expected, which can lead to Solr errors while indexing. With this filter, you can stop the indexing, or simply ignore the field value.

Cinematic of WordPress filter to sanitize a custom field before it is sent to Solr for indexing

Cinematic of WordPress filter to sanitize a custom field before it is sent to Solr for indexing



Examples

Search in the plugin's code (we eat our own dog food).

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.