the filter is not recognized in the TermsStatsFacets ** this is a bug
One more question: when using "doc.score" the result for my data is a
bit disappointing. E.g. when no query string is specified all docs
have score == 1 ... so, is it possible to access the document position
in the result and use it within the script?
I would like to give values which comes 'more earlier' in the result a
greater influence and sort the facets against that. This way when the
user sorts the result also the facets will be reordered and show
probably more meaningful values.