Title: sbdev1stepan's Replies | WordPress.org

---

# sbdev1stepan

  [  ](https://wordpress.org/support/users/sbdev1stepan/)

 *   [Profile](https://wordpress.org/support/users/sbdev1stepan/)
 *   [Topics Started](https://wordpress.org/support/users/sbdev1stepan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sbdev1stepan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sbdev1stepan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sbdev1stepan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sbdev1stepan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sbdev1stepan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Merge custom post types into a single index](https://wordpress.org/support/topic/merge-custom-post-types-into-a-single-index/)
 *  [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/merge-custom-post-types-into-a-single-index/#post-17120940)
 * Got it! Thank you for the answer!
 * Do you have a timeframe for the development of this addon?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Merge custom post types into a single index](https://wordpress.org/support/topic/merge-custom-post-types-into-a-single-index/)
 *  [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/merge-custom-post-types-into-a-single-index/#post-17119658)
 * Hi! I also need to do the same thing 🙂
 * I need to render several Collections ( seperate post types ) as 1, whithout switcher
   by **CollectionMenu**.
 * As I understand I need to create another Collection with all post types togeter.
   I managed to do that. But faced with the issue that Post on update is not pushed
   its changes to Typesense. So I would have to manually **Delete and Index** all
   posts after a single change on any post.
 * Can you please give me a hint how to push single Post changes in update?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Additional Search Params](https://wordpress.org/support/topic/additional-search-params/)
 *  Thread Starter [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/additional-search-params/#post-17119624)
 * Hello [@codemanas](https://wordpress.org/support/users/codemanas/) ! Thank you
   for the answer)
 * Yes **setMutableTerms** and **setImmutableTerms** work. There are 2 filters set:
   
   1. mutable – `Article-topics: Residential`. Yes it can be closed2. immutable –`
   Article-types: tierra-grande` . It is hidden form user.
 * The issues I would like to improve :
   1. I have to add immutable terms on each**
   render** Event. `swtInstance.helper.addDisjunctiveFacetRefinement(taxSlug, term);`
   Maybe there is a way to add that params to the request.
 * 2. I can change filter request on **render** Event only. I have to call the following
   function several times in order to set my mutable/immutable terms
   `swtInstance.
   helper.search()` Maybe there is a better way to do it
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Additional Search Params](https://wordpress.org/support/topic/additional-search-params/)
 *  Thread Starter [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/additional-search-params/#post-17099722)
 * **( 3 )** When you change post type all changes are lost and don’t work again.
   Can you help with it eigther?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Additional Search Params](https://wordpress.org/support/topic/additional-search-params/)
 *  Thread Starter [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/additional-search-params/#post-17099114)
 * Here your are the [link](https://trercsite.wpengine.com/overview-filter-testing-dont-change/).
 * I have several taxonomies. I need to make some Terms to be mutable some immutable.
   Due to your help I managed to achieve this the following way :
 * 1. I store the mutable/immutable terms in data-attributes in **.cmswt-InstantSearch**.
 * 2. add params :
    1. for the first render I add mutable Terms **swtInstance.on(‘render’, setMutableTerms)**.
       Mutalbe means the user can close it.
    2.  on each search click I add immutable params **swtInstance.on(‘render’, setImmutableTerms)**.
       Immutable means the user can’t close it. And also hide HTML for **.cmswt-Filter**
       and **.ais-CurrentRefinements-item**.
 * 3. After adding mutable/immutable params call **swtInstance.helper.search();**
 * On the example page ( [link](https://trercsite.wpengine.com/overview-filter-testing-dont-change/))
   you can find both mutable and immutable Taxonomy terms.
 * But it in my opinion it is not the best way to do it.
 * **(1)** The filters are still there though invisible and there are several searches
 * **(2)** The search function is called several times on each click
 * Can you please help me with the above question?
    -  This reply was modified 2 years, 8 months ago by [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search with Typesense] Additional Search Params](https://wordpress.org/support/topic/additional-search-params/)
 *  Thread Starter [sbdev1stepan](https://wordpress.org/support/users/sbdev1stepan/)
 * (@sbdev1stepan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/additional-search-params/#post-17093442)
 * Thank you for the response!
 * The code you provided does the same as `swtInstance.renderState[postType].refinementList[
   taxSlug].refine(term);`
   So they are added to CurrentRefinements. And
    1. Is there a way to imitate the exact behaviour of `data-additional_search_params`?
    2. I need to do it on each Filter click. I found just `swtInstance.on('render',
       setPresetTerms);` Event. Maybe there is better Event for this purpose?
    3. Can you please share Docs for this plugin JS or Git if it is public? Because
       your [site](https://docs.wptypesense.com/) doesn’t containt detailed info and
       Instant search JS ( [site](https://www.algolia.com/doc/api-reference/widgets/instantsearch/js/))
       is not all present in the plugin script. Or the only way is to ask you?))

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