lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wanggaohang <gaohangw...@gmail.com>
Subject Re: span query with SHOUD semantic instead of MUST HAVE
Date Thu, 12 Jun 2014 09:29:05 GMT
设置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 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.


Mime
View raw message