: So, it looks like it is trying to parse the "-" in the field name as an
: operator instead of as part of the field name.  Is it bad form to include a
: hyphen in a field name... I've never had issues with it anywhere else in the
: past.  FYI, I've confirmed this behavior on 1.4 nightly builds from both
: 6/16 and 8/6 and both forms of the function query syntax ({!func} and
: _val_).  Also, I have this problem with seemingly all function queries (ord,
: sum, etc.), not just "product."

At the lowest level, Solr Let you have any characters you want in 
the field names in the index (even whitespace and unprintable characters) 
but in practice some features don't work well with some characters in 
fieldnames because of the syntax -- ie: the sort param doesn't work well 
with fields that have whitespace or commas in their names because the sort 
syntax uses whitespace and comma characters.

: Is there any way to escape the field name, or is this just a bug?

I'm a little suprised that the function syntax would freak out about a 
dash in a field name ... off the top of my head i can't think of any 
reason why the syntax would split on a dash like that when looking for a 
field name (comma in a fieldname would definitely cause a problem) ... i 
would go ahead and file a bug, but it might be a neccessarily limitation 
that i'm just not aware of.


-Hoss

Reply via email to