Re: sort question

2012-05-22 Thread Ian Lea
Sorting beats scoring - that's what it's for. If you want scoring to win, don't sort. If you want particular searches to score higher than others, look at boosting. If you want to mix and match you can do that too: run multiple searches, with or without sorting, your choice, and merge the result

Re: sort question

2012-05-21 Thread Chaoqing Li
Sorry for the confusion. It's the first one you mentioned below. We have a sort on discount field, and if the keyword match the name field, we need it's important than sorting. if don't sort, how can we implement this request? I'm stuck here. and the discount has been convert to number already, t

Re: sort question

2012-05-21 Thread Ian Lea
I'm not clear what you are asking. Are you saying that you want keyword matching to be more important than sorting? If that's the case, don't sort. Or are you saying that sorting of null values isn't doing what you want? Use an actual value instead of null, whatever makes sense in your applicati