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:
O
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:
then you Search on TITLE but Sort on TITLE_sort
--
View this message in context:
h
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.
>
>
>
>
>
> I ha
Hi,
I have one Text fileld in our schema i want to do the sorting for that column.
I have these two columns i want to use the SORT for these two columns.
any one can please suggest what should i need to do for that.
I am currently using Solr1.4.
--
DEEPAK AGRAWAL
+91-9379433455
GOOD LUCK...