How to add search_type in settings

Hello,

I am pretty new to ES and i use templates for search. we have separate settings file to add analyzers and all. I am trying to add search_type in same file. is it possible to add search_type in settings file?

i tried "index.routing.search_type:dfs_query_then_fetch" or "search_type:dfs_query_then_fetch" but nothing worked.

thanks,

Hi @prashantreddy

The search_type is a parameter Search API.

1 Like

so i should send as a parameter and cannot be added in settings?

Yes, you should use as query parameter.

1 Like

Thanks, i added it as a parameter it works.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.