banana icon indicating copy to clipboard operation
banana copied to clipboard

Can I use fields if not exists in schema to solr?

Open suhyunjeon opened this issue 10 years ago • 1 comments

label:question I want to use a field does not exist in schema from banana.

  1. Added Add Custom Query in Queries panel like this.
&fq=extra_field":if(exists(tnx_abnormal_b),0,1)   
  1. Selected table to the term panel. Added Field "extra_field" in Panel tab.
  2. Got the bug
Cannot read the field in schema.  

Can I use fields if not exists in schema to solr?

suhyunjeon avatar Feb 10 '15 11:02 suhyunjeon

Yes, dynamic fields are supported in Banana. It could be an issue with custom query syntax, maybe it should be &fq=extra_field:"if(exists(tnx_abnormal_b),0,1)"

aadel avatar Feb 18 '15 10:02 aadel