Re: Boolean filter query not working as expected

2015-04-23 Thread Shawn Heisey
On 4/22/2015 9:27 AM, Dhutia, Devansh wrote: > I don’t know if that’s completely true, or maybe I’m misunderstanding > something. > > If it doesn’t support purely negative subqueries, this shouldn't work, but > does: > q=*:*&fq=(-(field:V1)) It's Lucene that has no support for purely negative

Re: Boolean filter query not working as expected

2015-04-22 Thread Chris Hostetter
: Subject: Boolean filter query not working as expected : : I have an automated filter query builder that uses the SolrNet nuget package to build out boolean filters. I have a scenario where it is generating a fq in the following format: : : ((-(field:V1) AND -(field:V2)) AND -(field:V3)) : The f

Re: Boolean filter query not working as expected

2015-04-22 Thread Dhutia, Devansh
If I upgrade to using the edismax parser in my fq, I get the desired results. The default lucene parser on fq must not be able to parse the more complex nested clauses q=*:*&fq={!type=edismax}((-(field:V1) AND -(field:V2)) AND -(field:V3)) - Works On 4/22/15, 3:27 PM, "Dhutia, Devansh" w

Re: Boolean filter query not working as expected

2015-04-22 Thread Dhutia, Devansh
I don’t know if that’s completely true, or maybe I’m misunderstanding something. If it doesn’t support purely negative subqueries, this shouldn't work, but does: q=*:*&fq=(-(field:V1)) However, for me, the following is a summary of what works & what doesn’t. q=*:*&fq=(-(field:V1))

Re: Boolean filter query not working as expected

2015-04-22 Thread Jack Krupansky
A purely negative sub-query is not supported by Lucene - you need to have at least one positive term, such as "*:*, at each level of sub-query. Try: ((*:* -(field:V1) AND -(field:V2)) AND -(field:V3)) -- Jack Krupansky On Wed, Apr 22, 2015 at 10:56 AM, Dhutia, Devansh wrote: > I have an automa

Boolean filter query not working as expected

2015-04-22 Thread Dhutia, Devansh
I have an automated filter query builder that uses the SolrNet nuget package to build out boolean filters. I have a scenario where it is generating a fq in the following format: ((-(field:V1) AND -(field:V2)) AND -(field:V3)) The filter looks legal to me (albeit with extra parentheses), but the

Re: Query not working as expected

2009-08-18 Thread Matt Schraeder
Awesome that works great. Thanks a lot! >>> markrmil...@gmail.com 8/17/2009 5:32:46 PM >>> Matt Schraeder wrote: > I'm attempting to write a query as follows: > > ($query^10) OR (NOT ($query)) which effectively would return everything, but > if it matches the first query it will get a higher sc

Re: Query not working as expected

2009-08-17 Thread Mark Miller
Matt Schraeder wrote: I'm attempting to write a query as follows: ($query^10) OR (NOT ($query)) which effectively would return everything, but if it matches the first query it will get a higher score and thus be sorted first in the result set. Unfortunately the results are not coming back as e

RE: Query not working as expected

2009-08-17 Thread Matt Schraeder
s back. It is set by default to 10 I believe. -Original Message- From: Matt Schraeder [mailto:mschrae...@btsb.com] Sent: Monday, August 17, 2009 2:04 PM To: solr-user@lucene.apache.org Subject: Query not working as expected I'm attempting to write a query as follows: ($query^1

RE: Query not working as expected

2009-08-17 Thread Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]
The rows parameter would prevent you from getting all docs back. It is set by default to 10 I believe. -Original Message- From: Matt Schraeder [mailto:mschrae...@btsb.com] Sent: Monday, August 17, 2009 2:04 PM To: solr-user@lucene.apache.org Subject: Query not working as expected I&#

Query not working as expected

2009-08-17 Thread Matt Schraeder
I'm attempting to write a query as follows: ($query^10) OR (NOT ($query)) which effectively would return everything, but if it matches the first query it will get a higher score and thus be sorted first in the result set. Unfortunately the results are not coming back as expected. ($query) w