-Re: boost function parameter (bf) ignores character escaping
Erik Hatcher 2012-05-21, 12:36
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:
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.
On May 21, 2012, at 08:01 , [EMAIL PROTECTED] wrote:
> I'm running solr (188.8.131.52184.108.40.206.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?