Re: Problem related to Sorting in Solr1.4

2010-08-28 Thread Lance Norskog
Make the sort fields multiValued=false. This guarantees that the field is sortable. If there is one term more than the number of documents, you get an ArrayIndexOutOfBounds exception. Also, sorting works from the indexed terms, not the stored values. You don't need to store the _sort fields:

Problem related to Sorting in Solr1.4

2010-08-27 Thread deepak agrawal
Hi, I have one Text fileld in our schema i want to do the sorting for that column. field name=TITLE type=text indexed=true stored=true / field name=UPDBY type=text indexed=true stored=true / I have these two columns i want to use the SORT for these two columns. any one can please suggest what

Re: Problem related to Sorting in Solr1.4

2010-08-27 Thread Markus Jelsma
What seems to be the problem? Did you consult the wiki on this matter? http://wiki.apache.org/solr/CommonQueryParameters#sort On Friday 27 August 2010 15:14:06 deepak agrawal wrote: Hi, I have one Text fileld in our schema i want to do the sorting for that column. field name=TITLE

Re: Problem related to Sorting in Solr1.4

2010-08-27 Thread kenf_nc
the 'text' fieldType is not suitable for sorting. You need to use the copyField directive in your schema and at indexing time copy the data to your TITLE and UPDBY fields, and you need to create 2 new fields: field name=TITLE_sort type=string indexed=true stored=true / field name=UPDBY_sort