I have Es index with multiple type and each type caters it's own filter parameters. Now we are building a Global Search on Es for multiple type and I am bit confused how to use type specific where clause to be included in NEST. Elastic Search -> Type 1 (where x=1) -> Type 2 (where y=1)
Now we are building a search query
var result = client.Search<ISearchDto>(s => s
.From(from)
.Size(PageSize)
.Types(lstTypes)
.Query(q => q.QueryString(qs => qs.Query(query)))
);
*lstTypes will have Type 1 and Type 2
Now how can i add the where clause for all type 1 items with x=1 and for all type 2 items with y=1 in NEST.
Hope the question is clear, any help on this will be highly appreciated.