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:
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
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
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