Shalin Shekhar Mangar wrote:
And to come back to my last question: There seems to be no case in which
"onlyMorePopular=false" makes sense (provided Grant's assumption is
correct). Do you see one?

Here's a use-case -- you provide a mis-spelled word and you want the closest
suggestion by edit distance (frequency does not matter).

Hm, when I try searching for "grand" using onlyMorePopular=false I do not get any results. Same when trying "gran". It seems that there will be no results at all when using onlyMorePopular=false. Without onlyMorePopular there are suggestions for both terms, so there are suggestions close enough to the original word(s). Have you tested your example case?

Anyway, if you look at it from the user's point of view: The wiki says "spellcheck.onlyMorePopular -- Only return suggestions that result in more hits for the query than the existing query." This implies that if onlyMorePopular=false I will get even results with less hits. So when I'm checking "grand" I would expect to get the suggestion "gran" which is less frequent in the index. But it seems this is not the case.

But even if just the documentation is wrong or unclear:
1) I could not find a case in which onlyMorePopular=false works at all.
2) It would be nice if one could get suggestion with lower frequency than the checked word (which is, to me, what onlyMorePopular=false implies).

Thanks,
Marcus

Reply via email to