Hello,
Are you sending in the same query to both? Frequency and word only get
printed when extendedResults == true. correctlySpelled only gets
printed when there is Index frequency information. For the
FileBasedSpellChecker, there is no Frequency information, so it isn't
returned.
Yes, I am using this request in both cases:
spellcheck?spellcheck=true&spellcheck.dictionary=title&spellcheck.q=gane&q=gane&spellcheck.extendedResults=true
Concerning FileBasedSpellChecker I wasn't able to find any online
documentation, is there any? For the start I was using "trial an error".
I'm still wondering which format the input file needs to have.
You write that there is no frequency information for
FileBasedSpellChecker. Does that mean, that every word in the index has
the same "weight" (besides the distance from the word being spell
checked)? Then how does spelling work? Every word in the index that is
close enough (distance) to the original is considered and the one with
the smallest distance is returned? What effext has
spellcheck.onlyMorePopular when there are no frequencies?
Sorry if this is answered somewhere in the docs, a link would be enough
for me in this case.
The logic for constructing this is all handled in the
SpellCheckComponent.toNamedList() method and is completely separated
from the individual SpellChecker implementations.
If I understand you correctly, this means that the output is just an
"image" of the used data structures? From the developer's view this is
very natural, but from the user's view it is annoying to have different
output depending on the handler used. Anyway, this is actually no big
problem for me, I was just wondering why my parser (used for
IndexBasedSpellChecker) didn't work for FileBasedSpellChecker.
Thanks,
Marcus