Re: Sorting not working on a string field

2010-09-13 Thread noel
Thanks. - Noel -Original Message- From: "Jan Høydahl / Cominvent" Sent: Monday, September 13, 2010 5:31am To: solr-user@lucene.apache.org Subject: Re: Sorting not working on a string field Hi, May you show us what result you actually get? Wouldn't it make more sense to

Re: Sorting not working on a string field

2010-09-13 Thread Jan Høydahl / Cominvent
Hi, May you show us what result you actually get? Wouldn't it make more sense to choose a numeric fieldtype? To get proper sort order of numbers in a string field, all number need to be exactly same length since order will be lexiographical, i.e. "10" will come before "2", but after "02". -- J

Sorting not working on a string field

2010-09-10 Thread noel
Hello, I seem to be having a problem with sorting. I have a string field (time_code) that I want to order by. When the results come up, it displays the results differently from relevance which I would assume, but the results aren't ordered. The data in time_code came from a numeric decimal with