Yeah, a bug report would be good.  But really this is a Sunspot bug report.  
Field names should NOT have :'s in them.  Field names should stick to standard 
Java identifier rules, otherwise it's escaping madness.  

You could try something like this as a workaround:

   bq=_val_:"dynamicfield\:value1"

I don't know if that'll do better than the bf issue you've hit, but it's 
another way of doing the same sort of thing.

        Erik

On May 21, 2012, at 08:01 , m...@nils-kaiser.de wrote:

> Hey,
> 
> I'm running solr (3.5.0.2011.11.30.16.37.06) and have encountered what I 
> think is a bug with the boost function (bf) parameter.
> 
> I've used sunspot (for use of solr with rails) which allows managing dynamic 
> fields, which by default creates fields like 
> "dynamicfield:value1","dynamicfield:value2", though using the : character in 
> the field name, which needs to be escaped.
> 
> If I use a query which includes "q=dynamicfield\:value1:6", everything works 
> fines and matches are found.
> 
> However, if I use the bf field with bf=dynamicfield\:value1, I get an error 
> message "undefined field dynamicfield", the same without escaping the :
> 
> Should I file a bug report?
> 
> Best,
> 
> Nils
> <solr_debug_normalquery.xml>

Reply via email to