Have you tried url-encoding? http://localhost:8180/solr/test-public/select/?q=test-id:1&sort=test%2Did+asc
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 19. mai 2011, at 10.50, Marc SCHNEIDER wrote: > Hi, > > I have a field called test-id but I can't use it when sorting, for example : > Doesn't work : ("undefined field test") > http://localhost:8180/solr/test-public/select/?q=test-id:1&sort=test-id+asc > http://localhost:8180/solr/test-public/select/?q=test-id:1&sort=test\-id+asc > > When removing the sort parameter then it works... > > Is there a way of escaping the field name in sort parameter? > > Thanks in advance, > Marc.