Thanks Ahmet, I used that approach and it is working well. -----Original Message----- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Wednesday, April 21, 2010 2:36 PM To: solr-user@lucene.apache.org Subject: Re: sorting on text field fails
> I have a field configured as text type (default text type - > with stemming enabled on both index and query time): > > <field name="MyTitle" type="text" indexed="true" > stored="true" /> > > When I try to sort on this field, it is throwing the > exception: > > HTTP Status 500 - there are more terms than documents in > field "MyTitle", but it's impossible to sort on tokenized > fields > > How can I sort on a tokenized field? Simply you cannot. You can copy your (tokenized) field into a string typed (un-tokenized) field. Similar question: http://search-lucene.com/m/uDxTF1scW0d2/sort+on+a+tokenized+field