: But how do we avoid this error?
: Is there anyway to tweak the query and return empty result instead of null
: pointer exception?

did you look at the issue i linked to?

: >> probably this bug: https://issues.apache.org/jira/browse/SOLR-6540


>> A workarround in some contexts can be to wrap the strdist function in 
>> an "if" that checks exists(fieldname) and returns some suitable default 
>> if it's not found.
>> 
>> THIS:        if(exists(field_name_s),strdist("literal",field_name_s,edit),0)
>> INSTEAD OF:  strdist("literal",field_name_s,edit)




-Hoss
http://www.lucidworks.com/

Reply via email to