Thanks, this looks like an error in the documentation, I will check with the docs team.
What's your usecase? What feature do you want to extract? script_fields can not be used together with aggregations, because they are only applied to the result set, which is a limited (top n) set of results.
Thanks ,
my use case is trying to create transform index on my sales index .
which can have field like -
1 last visit ( which i am getting with max ( visitdate) )
2 week of last visit ( here i was trying to script , as i need to use last visit field to achieved this .)
i will try as per ur suggestion and will get back to you .
We fixed the documentation, I think with a max aggregation and a script, you should be able to implement 2. Once you have it, please share your solution.
Hi @Hendrik_Muhs ,
Thanks for your help ,yes i able to do that .
there some more condition will be , which team will put it .
but this is my basic input and output
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.