How can i modify my search query by adding some dynamic filters

I want the specific data from my indice based on some attributes. How can i get that?

Hi @amit_u,

Welcome to the Algolia Community!

I believe you are interested in Filtering by Attributes as described in this documentation:

Let us know how this works for you or if you have more questions!

@cindy.cullen - yes, I want to use

but I am unable to place the code in the right place can you help me with that.

Where to add this in my instantsearch.js
index.search({
query: ‘query’,
filters: ‘price:100 TO 200’
});

Hello @amit_u,

What you are describing here is the javascript interface without using a framework such as instantsearch.js.
If you are using instantsearch and want to filter out results, you will have to use either one of these:

  1. Filter out some items from the widget: https://www.algolia.com/doc/guides/building-search-ui/widgets/customize-an-existing-widget/js/#filtering
  2. Configure your widget to apply a filter automatically: https://www.algolia.com/doc/guides/building-search-ui/widgets/customize-an-existing-widget/js/#filters-your-results-in-a-way-that-is-not-covered-by-any-widget

Please let us know if this works.
Best regards,
Joris Valette