Re: Sort not working as expected

2015-10-30 Thread Erick Erickson
bq: Is there no way that the existing field can be used? In a word, "no". The indexed terms are being used for sorting. You have a document that has the title "aardvark zebra". The actual _tokens_ are aardvark zebra solr/Lucene has no way of knowing whether these should be sorted by "a" or "z".

Re: Sort not working as expected

2015-10-30 Thread davidphilip cherian
You can create a copy field with string type and make it copy from this existing field, and sort on this new one. That way, you can still continue doing text search on existing one and sort on this new field. On Fri, Oct 30, 2015 at 3:04 PM, Brian Narsi wrote: > Is there no way that the exis

Re: Sort not working as expected

2015-10-30 Thread Brian Narsi
Is there no way that the existing field can be used? On Fri, Oct 30, 2015 at 1:42 PM, Ray Niu wrote: > you should use string type instead of text if you want to sort > alphabetically > > 2015-10-30 11:12 GMT-07:00 Brian Narsi : > > > I have a fieldtype setup as > > > > positionIncrementGap= >

Re: Sort not working as expected

2015-10-30 Thread Ray Niu
you should use string type instead of text if you want to sort alphabetically 2015-10-30 11:12 GMT-07:00 Brian Narsi : > I have a fieldtype setup as > > "100"> "solr.StandardTokenizerFactory"/> "solr.LowerCaseFilterFactory"/> minGramSize="3" maxGramSize="25"/> < > tokenizer class="solr.Sta

Sort not working as expected

2015-10-30 Thread Brian Narsi
I have a fieldtype setup as < tokenizer class="solr.StandardTokenizerFactory"/> When I sort on this field type in ascending order I am not getting results sorted alphabetically as expected. Why is that? What should I do to get the sort on? Thanks