Dynamically exclude particular field while querying an index


I have documents in my search index which contains tags field which has information about multiple fields.

I have a requirement wherein for some queries I should be able to exclude this tags field but for some other queries this field should be considered.

Can you please let me know how this can be achieved at the query time.

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