Fields selection in querystring search

Hi ,
Can someone help me to write query for following scenario.
I have 10 fields in index, I want to exclude 2 fields while searching . I tried with Source (with include & exclude) but it is excluding in returned data as well( i need all 10 in return data). When I tried to use fields , I am getting error ..
Please help me.

hi @srikanthkadem ,

can you send me your tried query , you need to get the all the data in index or exclude two fields
?

yeah basically I need all the data .but search should be excluded in those 2 fields (this is just an example though)..
Note: I am writing nest queries , will post once I am able to convert them to plain ES queries.

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