Highlighting complex queries

Post Reply
kzinda
Posts: 62
Joined: Fri Nov 30, 2001 6:18 am

Highlighting complex queries

Post by kzinda »

We are executing complex queries such as:

('word1 word2 w/50' or wrd3 wrd4 w/sent) AND ('word5 word6 @0')

When we run the results through the higlighter, we often get highlights for such terms as word5 alone. How can we make the highlighter only highlight the terms as instructed by the boolean relationship, i.e. how texis marks a hit?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Highlighting complex queries

Post by mark »

Since you've effectively thrown out proximity by using 'word5 word6 @0' (in terms of what to highlight anyhow) you can ignore proximity for everything and just highlight every term with 'word1 word2 wrd3 wrd4 word5 word6 @0'.

Otherwise you would have to run the text through %mb for each AND clause.
Post Reply