Hi there
I have a search index with documents that are structurally organized as a tree - i.e. each document has a field with a list of its ancestor document ids.
My goal is to use rescoring to assign a lower score to any document for which one of its ancestors is also part of the search results to be rescored (i.e. if 10 document results are to be rescored, any of these having one of the other 9 results as an ancestor should get a lower score).
To formulate my question generally: Is it possible to define a rescoring function that uses actual values from the set of results?