Hi
I'm glad, that TNTSearch can use russian morphology and match of words variations
But... When I'm try highlight finding part - I'm get empty string
When I'm open some empty results, I'm find another variations of my word. And TNT-search found exactly this words! Not full match.
So...
Can I'm highlight finding part with morphology and with all match of words variations, that TNTSearch know?
$findThis = 'лестница';
$fullText = 'царь спускается по лестнице. но никто не видит лестницы. в остальном лестницу уже унесли.';
echo "<br><br><b>fullText:</b> $fullText<br> <u>snippet result</u>: " . $this->tnt->snippet($findThis, $fullText, 50);
$fullText = 'а всё, что было нужно - это наша лестница.';
echo "<br><br><b>fullText:</b> $fullText<br> <u>snippet result</u>: " . $this->tnt->snippet($findThis, $fullText, 50);
$fullText = 'царь спускается по лестнице. но никто не видит лестницы. в остальном лестницу уже унесли. а всё, что было нужно - это наша лестница.';
echo "<br><br><b>fullText:</b> $fullText<br> <u>snippet result</u>: " . $this->tnt->snippet($findThis, $fullText, 50);
Hi I'm glad, that TNTSearch can use russian morphology and match of words variations But... When I'm try highlight finding part - I'm get empty string When I'm open some empty results, I'm find another variations of my word. And TNT-search found exactly this words! Not full match.
So... Can I'm highlight finding part with morphology and with all match of words variations, that TNTSearch know?
PS: and how you cant see - snippet not right show position of finding word, how I'm wrote early: https://github.com/teamtnt/tntsearch/issues/101