lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slly <sll...@126.com>
Subject Re:Use boolean operator "-", the result is incorrect
Date Wed, 08 Apr 2020 07:34:05 GMT






If the following query is executed, the result is different:


id:("1" "2") AND (-name_s:a)     --> numFound is 0 


id:("1" "2") AND -(name_s:a)    --> numFound is 1 








At 2020-04-08 14:56:26, "slly" <sllyjw@126.com> wrote:
>Hello Folks,
>We are using Solr 7.3.1,  I write the following two lines of data into collection:
>id, name_s, age_i
>1, a, 10
>2, b, 10
>Use the following query syntax:
>-name_s:a OR age_i:10
>
>
>I think we should return two pieces of data, but actually only one piece of data:
>id, name_s, age_i
>2, b, 10
>
>
>Did I get it wrong?  Looking forward to some valuable suggestions. Thanks.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message