Re: Solr Field name restrictions

2011-06-06 Thread Marc SCHNEIDER
Hi, Using Solr 3.1 I'm getting errors when trying to sort on fields containing dashes in the name... So that's true stay away from dashes if you can. Marc. On Sun, Jun 5, 2011 at 3:46 PM, Erick Erickson wrote: > I'd stay away from dashes too. It's too easy for the query parsers > to mistake the

Re: Solr Field name restrictions

2011-06-05 Thread Erick Erickson
I'd stay away from dashes too. It's too easy for the query parsers to mistake them for the NOT operator on a URL. You've really got two issues here: 1> what is allowable in the field name 2> what causes grief with some query parser. To avoid <2>, I'd really just stick with characters and undersco

Re: Solr Field name restrictions

2011-06-04 Thread François Schiettecatte
Underscores and dashes are fine, but I would think that colons (:) are verboten. François On Jun 4, 2011, at 9:49 PM, Jamie Johnson wrote: > Is there a list anywhere detailing field name restrictions. I imagine > fields containing periods (.) are problematic if you try to use that field > when

Solr Field name restrictions

2011-06-04 Thread Jamie Johnson
Is there a list anywhere detailing field name restrictions. I imagine fields containing periods (.) are problematic if you try to use that field when doing faceted queries, but are there any others? Are underscores (_) or dashes (-) ok?