Parent / child queries force default similarity #4977
@martijnvg it seems that #3822 may have introduced a regression with custom similarities as well as the non-default bm25 and drf similarities. For instance, if I were to use bm25 for a child doc field, the Top Children query will not use it. It reverts back to the default similarity.
Here is a set of curl statements for reproducing:
This affects every version from 0.90.6 all the way to 0.90.11-SNAPSHOT.
A proposed fix may be to carry over the similarity configured in the IndexSearcher passed to the createWeight() methods. See gpstathis@21d4a76 for an example. All