Re: weird sorting behavior

2009-12-31 Thread Joel Nylund
Thanks Erik, the null problem was introduced when I copied the example below, now I have the nulls excluded using (sortMissingLast="true"), in 1.5 using the suggested config below and im still not seeing the desired behavior. It seems to me that the default behavior of the Java Collator usi

Re: weird sorting behavior

2009-12-31 Thread Erick Erickson
have you tried setting sortMissingLast="true" in your schema.xml? Something like... or perhaps in your individual field definition instead. The schema.xml examples have additional information that you really should scan at least HTH Erick On Thu, Dec 31, 2009 at 8:53 AM, Joel Nylund wrote

Re: weird sorting behavior

2009-12-31 Thread Joel Nylund
Hi, After some further investigation, it turns out that null fields were sorting first, so if the title was null it was coming up first. This is true even with 1.5 and collatedROOT. (I tried on last nights build). So let me change my question, how do I make items with null values sort las

Re: weird sorting behavior

2009-12-30 Thread Joel Nylund
Hi, so this is only available in 1.5? I tried in 1.4 and got : org.apache.solr.common.SolrException: Error loading class 'solr.CollationKeyFilterFactory' Is there a way to do this in 1.4? The link Shalin sent is a 1.5 link I think. thanks Joel On Dec 25, 2009, at 10:52 PM, Robert Muir wro

Re: weird sorting behavior

2009-12-25 Thread Robert Muir
Hello, as Shalin said, you might want to try CollationKeyFilterFactory. Below is an example (using the multilingual root locale), where the spaces will sort after the letters and numbers as you mentioned, but it will still not be case-sensitive. This is because strength is 'secondary'. But are yo

Re: weird sorting behavior

2009-12-25 Thread Shalin Shekhar Mangar
On Thu, Dec 24, 2009 at 11:51 PM, Joel Nylund wrote: > update, I tried changing to datatype string, and it sorts the numerics > better, but the other sorts are not as good. > > Is there a way to control sorting for special chars, for example, I want > blanks to sort after letters and numbers. > >

Re: weird sorting behavior

2009-12-24 Thread Joel Nylund
update, I tried changing to datatype string, and it sorts the numerics better, but the other sorts are not as good. Is there a way to control sorting for special chars, for example, I want blanks to sort after letters and numbers. using alphaOnlySort - sorts nicely for alpha, but numbers do