20 Jan
2005
20 Jan
'05
1:50 p.m.
Jonathan Hobbs wrote:
You have to grab the text from the search result objects and do your own matching (regex works). Be careful to match for the same terms used in the index (ie. if you have done any kind of stemming you need to take this into consideration). This is exactly what we have done for one of our sites (shopwiser.com - you can see how it works by entering a search term and seeing your search term highlighted in the results).
to get the same query terms the catalog matched you'd probably best to match the terms against the lexicon of the zctextindex (after all that's what the catalog query machinery does as well). The lexicon may be queried separately. The list of terms may also be useful for user feedback Rik Hoekstra