Hi,

How come query "aa bb" returns document b?



On Friday, June 6, 2014 3:48 PM, 郑华斌 <huabin.zh...@qq.com> wrote:
hi,


I have two docs, 
    a) "aa bb cc" and,
    b) "aa cc bb". 
The query is "aa bb". What I expected is the doc a comes first with a higher 
score than doc b because the term distance in query and that in doc a are more 
similar. 
After google for a while I get it down with the span query q: "aa bb"~10. 
However, when I change my query into "aa bb dd"~10, the span query return 
nothing 
hits becuase dd can not be found in any doc. So what's a solution to this 
problem? 


Thanks.

Reply via email to