lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Hoerner <br...@bretthoerner.com>
Subject Confusion about location of + and - ?
Date Tue, 01 Jul 2014 18:51:29 GMT
Can anyone explain the difference between these two queries?

  text:(+"happy") AND -user:("123456789") = numFound 2912224

But

  text:(+"happy") AND user:(-"123456789") = numFound 0

Now, you may just say "then just put - infront of your field, duh!" Well,

  text:(+"happy") = numFound 2912224
  user:(-"123456789") = numFound 465998192

(FWIW there is no user named 123456789 in my index)

As you can see, the queries work alone, but when combined with an AND I
always get 0 results. If I move the - before the field in my query, it
works. What am I missing here?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message