Restricting fields dynamically in the search request

Is there any way by which we can restrict the fields to only those in which the searched string was found ,when looked in entire document?


this would require a static configuration. Either you do source filtering (which can be circumvented) or use field level security (which is part of the commercial offering though). Still, both need configuration.