Return docs selected using the maximal marginal relevance.
Maximal marginal relevance optimizes for similarity to query AND diversity among selected documents.
Number of Documents to return. Defaults to 4.
Number of Documents to fetch to pass to MMR algorithm.
Number between 0 and 1 that determines the degree of diversity among the results with 0 corresponding to maximum diversity and 1 to minimum diversity. Defaults to 0.5.
Other fields to get from elasticsearch source. These fields will be added to the document metadata.