Re: span query with SHOUD semantic instead of MUST HAVE

2014-06-12 Thread wanggaohang
q.op=OR On 2014??06??06?? 20:48, ?? 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

Re: span query with SHOUD semantic instead of MUST HAVE

2014-06-08 Thread Erick Erickson
What is your problem? I mean what kind of real-world issue are you requiring this behavior for? Or is this mostly so you can understand scoring better? Very often this kind of question is a test artifact. As far as I know, the distance isn't part of the scoring, the fact that there's an extra

span query with SHOUD semantic instead of MUST HAVE

2014-06-06 Thread ??????
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

Re: span query with SHOUD semantic instead of MUST HAVE

2014-06-06 Thread Ahmet Arslan
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