'edismax Multi-field query mm parameter in solr does not work properly
My document data is as follows:
{
field1 : "0603",
field2: "0402"
}
I used solr's edismax syntax, and my parameters are as follows:
q=0603/0402
qf=field1 field2
tie=1
mm=100%
0603/0402 will be tokenizer split two words:
0603 0402
After I turn on debugQuery parsing, parsedquery is
+DisjunctionMaxQuery((((field1:0603 field1:0402)~2) | ((field2:0603 field2:0402)~2))~1.0)
When I change the q parameter to 0603 OR UNIOHM, the parsedquery is
+(DisjunctionMaxQuery((field1:0603 | field2:0603)~1.0) DisjunctionMaxQuery((field1:0402 | field2:0402)~1.0))~2
When mm=100%, q=0603/0402 can't get any document data, q=0603 OR 0402 can get document data, what I want is q=0603/0402 can return document data, how can I do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
