The document describes
sort: An array of SortFields describing how to sort the results.
I have created index with two fields: ‘file’ and ‘content’
When I give SortField name as ‘file’ while searching, it results into
The exact command given by me:
index.search_each(“sleepless AND dreams”, :num_docs => 100, :sort =>
do |doc, score|
My question is how do I give field name for sorting.
Thanks and Regards,
P L Patodia