1
Vote

Sorting breaks in Solr 1.4, here's the fix

description

The fix is to modify QueryBuilder.cs
 
Add this line near QueryBuilder.SOLR_PARAM_QUERY
 
/// <summary>
/// The url parameter used to sort the results
/// </summary>
public static readonly string SOLR_PARAM_SORT = "sort";
 
 
Change this line :
 
this._searchkeyvalues[QueryBuilder.SOLR_PARAM_QUERY] += ";" + string.Join(",", arSorts);
 
To:
 
this._searchkeyvalues[QueryBuilder.SOLR_PARAM_SORT] = string.Join(",", arSorts);

comments