Excerpts not working on partial matches?

25 views
Skip to first unread message

Christophe Porteneuve

unread,
Oct 2, 2009, 7:20:24 AM10/2/09
to Thinking Sphinx
Hi all,

I've very recently got on the TS train, and am loving it. It sure
helps that in the past few years a lot of good doc's been written and
updated :-)

My app basically always works using partial matches (prefix only) with
a minimum matching length of 4. I don't require final users to type
in the star signs, and just add them internally to all the terms of
the query, which runs in expended match mode.

I do fetch all the fields displayed in the results page through
excerpts, to get highlighted matches (and configured TS to strip_html
before that). However, it seems that excerpts only work on full
matches, not on partial matches.

Ideally, I'd want to get full-word matches of my partial segments, and
less ideally, just partial-match excerpts.

For instance, if I search for "install" and it matches thanks to
"installation", I'd love to get the full word highlighted, or less
ideally, the "install" part of it.

Must I reprocess the returned excerpts myself to do this, or is there
a tiny config tweak I missed?

Thanks!

Pat Allan

unread,
Oct 2, 2009, 8:22:55 AM10/2/09
to thinkin...@googlegroups.com
Hi Christophe

If it's not working, it's a limitation in Sphinx, not Thinking
Sphinx... so I've gone searching on the Sphinx forums, sounds like it
*might* work with 0.9.9, but definitely not with 0.9.8.
http://sphinxsearch.com/forum/view.html?id=3462
http://sphinxsearch.com/forum/view.html?id=730

So, are you using the latest 0.9.9 release candidate (with the
sphinx-0.9.9 branch of TS)? If so, then it's probably worth posting on
the Sphinx forum. If not, sounds like upgrading is a good place to
start.

Cheers

--
Pat

Christophe Porteneuve

unread,
Oct 2, 2009, 10:25:27 AM10/2/09
to thinkin...@googlegroups.com
Hey Pat, thanks for your ever speedy reply!

This is my first TS deployment and I'm not so sure I want to rely on a
version not yet guaranteed as stable, from a client-explanation POV :-)
So I think in the meantime I *will* just manually rehighlight obtained
excerpts, and track 0.9.9's stable status.

Cheers!

Le 02/10/2009 14:22, Pat Allan a écrit :
>
> Hi Christophe
>
> If it's not working, it's a limitation in Sphinx, not Thinking
> Sphinx... so I've gone searching on the Sphinx forums, sounds like it
> *might* work with 0.9.9, but definitely not with 0.9.8.
> http://sphinxsearch.com/forum/view.html?id=3462
> http://sphinxsearch.com/forum/view.html?id=730
>
> So, are you using the latest 0.9.9 release candidate (with the
> sphinx-0.9.9 branch of TS)? If so, then it's probably worth posting on
> the Sphinx forum. If not, sounds like upgrading is a good place to
> start.
>
> Cheers
>


--
Christophe Porteneuve
Directeur technique, Ciblo.net
chris...@ciblo.net

Reply all
Reply to author
Forward
0 new messages