: - /suggest?q=suggest_terms:lap*&fq=type:P&fq=(-type:B)
: numFound=1
: doc, so adding a doc will also fulfill right?
: /suggest?q=suggest_terms:lap*&fq=type:P&fq=(-type:B OR name:aa)
: numFound=0
:
: is there a logical explanation??
http://www.lucidimagination.com/blog/2011/12/28/why-not-and-o
oh yeah, forgot about negatives and *:*...
thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/adding-an-OR-to-a-fq-makes-some-doc-that-matched-not-match-anymore-tp3983775p3983863.html
Sent from the Solr - User mailing list archive at Nabble.com.
> that does not change the results for
> me:
>
> -suggest?q=suggest_terms:lap*&fq=type:P&fq=((-type:B))&debugQuery=true
> -found 1
>
> -suggest?q=suggest_terms:lap*&fq=type:P&fq=((-type:B)+OR+name:aa)&debugQuery=true
> -found 0
>
Negative clause and OR clause does not work like this.
fq=+*:* -t
that does not change the results for me:
-suggest?q=suggest_terms:lap*&fq=type:P&fq=((-type:B))&debugQuery=true
-found 1
-suggest?q=suggest_terms:lap*&fq=type:P&fq=((-type:B)+OR+name:aa)&debugQuery=true
-found 0
looks like a bug?
xab
--
View this message in context:
http://lucene.472066.n3.nab
Don't forget to uuencode the spaces as "+" or "%20".
Playing around, I noticed that putting parens around the negative term
changed the results:
I'm not sure whether that is a bug or not.
In any case, try:
/suggest?q=suggest_terms:lap*&fq=type:P&fq=((-type:B)+OR+name:aa)
-- Jack Krupansky