At 10:46 PM -0800 2/21/07, Ryan McKinley wrote:
>the 'explicit' parameter would be sending an empty string for 'sort'
>
>In the existing implementation of QueryParsing.parseSort( ):
> null, "", and "score"  all return a 'null' (default) SortSpec
>
>so, one way to disable ; parsing for all queries would be to add a
>default empty parameter for "sort"

Don't you have that backwards?  QueryParsing.parseSort takes the standard 
approach of equating missing/null and empty/"".  Since it also equates those to 
"score" (something which breaks the snippet I just sent) it seems to me there 
is no way to explicitly specify default sort without ; parsing, without 
changing that logic by differentiating present/non-present from empty (uncool 
IMHO) or introducing another control parameter as Hoss suggested.  Or did I 
miss something?

Reply via email to