Title: Additional Documentation
Last modified: January 7, 2022

---

# Additional Documentation

 *  Resolved [wpdevhalo](https://wordpress.org/support/users/wpdevhalo/)
 * (@wpdevhalo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/)
 * Firstly, thank you for the plugin. I’ve managed to index CPTs for now using the
   available documentation and I have a few questions to ask
 * 1.) How to add additional attributes that don’t belong to a Custom Post type.
   I’ll add the code of how I used to get it done using “WP search with Algolia”
   plugin.
 *     ```
       /* Algolia customisations */
       /* Indexing Grade */
       add_filter( 'algolia_post_shared_attributes', 'grade_post_attributes', 10, 2 );
       add_filter( 'algolia_searchable_post_shared_attributes', 'grade_post_attributes', 10, 2 );
   
       /**
        * @param array   $shared_attributes
        * @param WP_Post $post
        *
        * @return array
        */
       function grade_post_attributes( array $shared_attributes, WP_Post $post ) {	
       	if ( 'book-review' !== $post->post_type ) {
       		// We only want to add an attribute for the 'resource' post type.
       		// Here the post isn't a 'resource', so we return the attributes unaltered.
       		return $shared_attributes;
       	}
       	$shared_attributes['grade'] = get_post_meta( $post->ID, 'wpcf-book-grade', true );
       	// Always return the value we are filtering.
       	return $shared_attributes;
       }
       ```
   
 * I want to know how to do it with this plugin.
 * 2. How do I add InstantSearch Widgets or use their API to add searchable filters
   etc to the widgets using additional parameters ?
 * thanks

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

 *  Plugin Contributor [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15234195)
 * Hi [@wpdevhalo](https://wordpress.org/support/users/wpdevhalo/) ,
 * Currently all facets are automatically shown in the refinement list.
    So if you
   have marked something as a facet then it will automatically show up.
 * As for customizations and additional widgets there isn’t a way to add additional
   widgets via the shortcode at the moment – can you give me some use cases of what
   you are looking to add ?
    -  This reply was modified 4 years, 4 months ago by [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/).
 *  Thread Starter [wpdevhalo](https://wordpress.org/support/users/wpdevhalo/)
 * (@wpdevhalo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15238238)
 * [https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/](https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/)
 * Here this refinement-list widget has the option of adding a “searchable: boolean”.
 * I’m asking if this is possible because i saw it on one of the demo’s
 * [https://books-search.typesense.org](https://books-search.typesense.org)
 *  Plugin Contributor [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15239230)
 * Hi [@wpdevhalo](https://wordpress.org/support/users/wpdevhalo/) ,
 * Not all of the refinement options are available right now.
    Since the refinement
   lists are from js, it’s a bit difficult to allow all the options to be shown.
   Giving user too many shortcode options may confuse them.
 * We have create a new idea on our [github](https://github.com/codemanas/cm-typesense-docs/issues/2)
   and we will see if we can have some kind of support for this in future releases
 *  Plugin Contributor [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15247192)
 * Hi [@wpdevhalo](https://wordpress.org/support/users/wpdevhalo/) ,
    The ability
   to customize refinementList and sortby has been added as of plugin version 1.1.4–
   please see documentation here [https://codemanas.github.io/cm-typesense-docs/customizing-instant-search-widgets/](https://codemanas.github.io/cm-typesense-docs/customizing-instant-search-widgets/)
 *  Thread Starter [wpdevhalo](https://wordpress.org/support/users/wpdevhalo/)
 * (@wpdevhalo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15251610)
 * Hello [@digamberpradhan](https://wordpress.org/support/users/digamberpradhan/),
   
   Thank you for being so swift with the implementation, much appreciated 👍

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

The topic ‘Additional Documentation’ is closed to new replies.

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

## Tags

 * [instantsearch](https://wordpress.org/support/topic-tag/instantsearch/)

 * 5 replies
 * 2 participants
 * Last reply from: [wpdevhalo](https://wordpress.org/support/users/wpdevhalo/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/additional-documentation/#post-15251610)
 * Status: resolved