Re: 400 error with boost and exists()

2013-01-16 Thread Yonik Seeley
On Wed, Jan 16, 2013 at 6:42 PM, Walter Underwood wrote: > Ah, that would be it. Does 4.0 also give a stack trace if you call a function > that doesn't exist? Stack trace still appears in the logs, but the error message returned seems OK: http://localhost:8983/solr/query?q=*:*&defType=edismax&b

Re: 400 error with boost and exists()

2013-01-16 Thread Walter Underwood
Ah, that would be it. Does 4.0 also give a stack trace if you call a function that doesn't exist? I can achieve most of what I want with bq, though that has IDF, which I'd rather avoid here. wunder On Jan 16, 2013, at 3:38 PM, Yonik Seeley wrote: > On Wed, Jan 16, 2013 at 6:35 PM, Walter Unde

Re: 400 error with boost and exists()

2013-01-16 Thread Chris Hostetter
: None of the variants worked. I started with that syntax for both : exists() and if(). All gave the same stack trace. --wunder ... : We're running Solr 3.3 and I have a function query for boosting that : works with bq but not ...i'm very confused. All of the "boolean" functions (lik

Re: 400 error with boost and exists()

2013-01-16 Thread Yonik Seeley
On Wed, Jan 16, 2013 at 6:35 PM, Walter Underwood wrote: > None of the variants worked. I started with that syntax for both exists() and > if(). All gave the same stack trace. --wunder These boolean functions are new for 4.0, but it looks like you're using 3.3? -Yonik http://lucidworks.com

Re: 400 error with boost and exists()

2013-01-16 Thread Walter Underwood
None of the variants worked. I started with that syntax for both exists() and if(). All gave the same stack trace. --wunder On Jan 16, 2013, at 3:32 PM, Yonik Seeley wrote: > On Wed, Jan 16, 2013 at 6:11 PM, Walter Underwood > wrote: >> I got the syntax from: >> http://lucidworks.lucidimagina

Re: 400 error with boost and exists()

2013-01-16 Thread Yonik Seeley
On Wed, Jan 16, 2013 at 6:11 PM, Walter Underwood wrote: > I got the syntax from: > http://lucidworks.lucidimagination.com/display/solr/Function+Queries Oops, I've alerted our tech writers! It should be fixed now. exists(field|function) returns true if a value exists for a given document. Exam

Re: 400 error with boost and exists()

2013-01-16 Thread Walter Underwood
First, that works as "bf". I got the syntax from: http://lucidworks.lucidimagination.com/display/solr/Function+Queries Various documentation has different syntax for exists(). wunder On Jan 16, 2013, at 3:00 PM, Jack Krupansky wrote: > Maybe it's the semicolons in the "if", which should be co

Re: 400 error with boost and exists()

2013-01-16 Thread Jack Krupansky
Maybe it's the semicolons in the "if", which should be commas. Also, you're using some odd syntax in the "exists" value data source which expects a field name or a function. -- Jack Krupansky -Original Message- From: Walter Underwood Sent: Wednesday, January 16, 2013 1:28 PM To: solr