Hi Guys,
a little help here.
I am doing search with different queries in elastic search.I am also able to limit the no-of results in a search-result with includes/exclude's fields and filter aliases.
My situation here is to mask the result of an elastic search .I.e if am asking elastic search to return all user's account details.
i need results with account numbers as xxxxxxxxx123 and date of birth as 01/01/xxxx
is there a way in the filter-api to achieve this. by toggling a field/flag.I mean for admins i need to return full data.
i do not want to parse through all results and mask manually.is there any inbuilt functionality?
I guess you could use Scripting in ES to create new fields with custom values. It's perhaps not very performant in comparison to doing it yourself in the application handling the results, bit it should be possible at least.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.