Title: Algolia Support?
Last modified: December 10, 2018

---

# Algolia Support?

 *  Resolved [lazmo88](https://wordpress.org/support/users/lazmo88/)
 * (@lazmo88)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/algolia-support/)
 * Heya, we found out that exclude from search plugin won’t work when Algolia is
   used.
 * We would like to exclude single pages/posts, however this would require custom
   function that hooks up with the Algolia plugin.
 * That said, does the exclude from search plugin save the settings to custom field?
   If yes, we could use that to exclude Algolia indexing.
 * Can someone advise the custom field used by the plugin?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Falgolia-support%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [pronskiy](https://wordpress.org/support/users/pronskiy/)
 * (@pronskiy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/algolia-support/#post-10967641)
 * Hi!
 * Is this the plugin you are referring to? [https://wordpress.org/plugins/search-by-algolia-instant-relevant-results/](https://wordpress.org/plugins/search-by-algolia-instant-relevant-results/)
 * Search Exclude plugin uses options to store a list of excluded posts, I find 
   this way more flexible.
    You can retrieve an array of excluded posts like this:`
   get_option( 'sep_exclude', array() )`
 * Please let me know if this helps.
 * Cheers!
    Roman
 *  Thread Starter [lazmo88](https://wordpress.org/support/users/lazmo88/)
 * (@lazmo88)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/algolia-support/#post-10967758)
 * Thanks Roman!
 * Yes that’s the plugin indeed 🙂 What is the expected returned value from get_options?
 * function filter_post( $should_index, WP_Post $post )
    { if ( false === $should_index){
   return false; }
 *  return get_option( ‘sep_exclude’, array() ) == 1 ? false : true;
    }
 * // Hook into Algolia to manipulate the post that should be indexed.
    add_filter(‘
   algolia_should_index_searchable_post’, ‘filter_post’, 10, 2 );
 *  Plugin Contributor [pronskiy](https://wordpress.org/support/users/pronskiy/)
 * (@pronskiy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/algolia-support/#post-10968269)
 * It returns an array of post ids, so something like this should work:
 *     ```
       return false === array_search($post->ID, get_option('sep_exclude', array()));
       ```
   
    -  This reply was modified 7 years, 6 months ago by [pronskiy](https://wordpress.org/support/users/pronskiy/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Algolia Support?’ is closed to new replies.

 * ![](https://ps.w.org/search-exclude/assets/icon-256x256.png?rev=2916925)
 * [Search Exclude](https://wordpress.org/plugins/search-exclude/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-exclude/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-exclude/)
 * [Active Topics](https://wordpress.org/support/plugin/search-exclude/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-exclude/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-exclude/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [pronskiy](https://wordpress.org/support/users/pronskiy/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/algolia-support/#post-10968269)
 * Status: resolved