Search: AI, Hybrid, Classic

  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Menu
  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Search
Search
Search
Search

Home » Actions and Filters (Hooks) » Index – SQL statement

Index - SQL statement

506 views 0 October 11, 2016 Updated on July 13, 2019

Name


WPSOLR_Events::WPSOLR_FILTER_SQL_QUERY_STATEMENT


Short description

Modify the SQL statement that retrieves post types to be indexed.

Long description

A SQL statement is build by the plugin.
You want to change the SQL, for instance to add SQL joins with other WP tables.

Cinematic of WordPress filter to change sql statement which retrieves posts to sent to Solr for indexing
Cinematic of WordPress filter to change sql statement which retrieves posts to send to Solr for indexing

 


Examples

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

Was this helpful?

Yes  No
Related Articles
  • Video – WPSOLR PRO + ACF PRO + Choice Types + TwentySixteen + Elasticsearch
  • Search results – Replace facets HTML
  • Search results – Replace the default WP search by WPSOLR search
  • Index – Sanitize value
  • Search query – Query
  • index – embedded files

Didn't find your answer? Contact Us

Previously
Search results – Replace facets HTML
Up Next
Search results – Posts
Expand All Collapse All
  • Actions and Filters (Hooks)
    • Index - Custom fields
    • Index - Document
    • Search results - Replace facets HTML
    • Index - SQL statement
    • Search results - Posts
    • Search results - Custom html
    • Search query - Fields list
    • Options - Custom fields
    • Options - Solr dynamic field types
    • Options - Default sort list
    • Search results - Sort fields
    • Search results - Replace the default WP search by WPSOLR search
    • Search results - Default sort
    • Search results - Javascript parameters
    • index - embedded files
    • Search query - Query
    • Index - Sanitize value
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap