On Wed, Jan 16, 2013 at 6:42 PM, Walter Underwood <wun...@wunderwood.org> 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&boost=product(log(max(2,1)),if(exists('school'='1579535');5;1))

{
  "responseHeader":{
    "status":400,
    "QTime":4,
    "params":{
      "q":"*:*",
      "boost":"product(log(max(2,1)),if(exists('school'='1579535');5;1))",
      "defType":"edismax"}},
  "error":{
    "msg":"org.apache.solr.search.SyntaxError: Expected ',' at
position 40 in 'product(log(max(2,1)),if(exists('school'='1579535');5;1))'",
    "code":400}}

http://localhost:8983/solr/select?q=*:*&defType=edismax&boost=product(log(max(2,1)),if(foobar('school'='1579535');5;1))

{
  "responseHeader":{
    "status":400,
    "QTime":1,
    "params":{
      "q":"*:*",
      "boost":"product(log(max(2,1)),if(foobar('school'='1579535');5;1))",
      "defType":"edismax"}},
  "error":{
    "msg":"org.apache.solr.search.SyntaxError: Unknown function foobar
in FunctionQuery('product(log(max(2,1)),if(foobar('school'='1579535');5;1))',
pos=32)",
    "code":400}}


-Yonik
http://lucidworks.com

Reply via email to