Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
It seems that when we pass multiple field names with mlt.fl parameter, it is ORing them to find the MLT documents.
Is there a way to specify AND operator? Means if mlt.fl=language,year, then we should return back the MLT documents which has language AND year field values as same as the main query result document.
The above query should return those documents whose field values (language, year) are exactly matching with the document id:111111111.
Is this possible thru any config or param? If not, I think it's worth having as a feature because we don't know the values of those fields to apply as FQ.
was looking at the code and found that it is hard coded to Occur.SHOULD in MoreLikeThisQuery.
I customized the code to pass a new parameter mlt.operator=AND/OR based on that it computes the MLT documents. Default operator is set to OR.
And I also want to have mlt.sort option, So I will be trying for that as well.
Do you guys think, we should make this part of the MLT feature?
Please share your ideas. I can submit this change.