Quoting from the new trunk example schema:

"field names should consist of alphanumeric or underscore characters only and
     not start with a digit.  This is not currently strictly enforced,
but other field names will not have first class support from all components
     and back compatibility is not guaranteed."

In other words, don't do it. Replace the colon with an underscore in your field names.

-- Jack Krupansky

-----Original Message----- From: m...@nils-kaiser.de
Sent: Monday, May 21, 2012 8:01 AM
To: solr-user@lucene.apache.org
Subject: boost function parameter (bf) ignores character escaping

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

Reply via email to