Why do I get different results when running FT.EXPLAINCLI
and FT.SEARCH
one with Field Modifier and one without:
FT.EXPLAINCLI test "@title:(hello world)=> { $weight: 20.0; $slop: 1; $inorder: false; $phonetic: true}"
@title:INTERSECT {
@title:UNION {
@title:hello
@title:+hello(expanded)
}
@ title:UNION {
@title:world
@title:+world(expanded)
}
} => { $weight: 20; $slop: 1; $inorder: false; }
and without Field modifier:
FT.EXPLAINCLI test "(hello world)=> { $weight: 20.0; $slop: 1; $inorder: false; $phonetic: true}"
INTERSECT {
UNION {
hello
<HL(expanded)
+hello(expanded)
}
UNION {
world
<ARLT(expanded)
+world(expanded)
}
} => { $weight: 20; $slop: 1; $inorder: false; }
There is only one field indexed in test
index:
FT.CREATE test SCHEMA title TEXT PHONETIC dm:en extraName TEXT NOINDEX latitude NUMERIC NOINDEX longitude NUMERIC NOINDEX geo GEO
I am also getting different result with FT.SEARCH
once using Field modifier.