The full text function ft:mark() puts a mark around each of the words that
occur in a match, starting from the first matching word to the last,
including stop words, except for punctuation characters. Is it possible to
check for the kind of characters (or strings) that ft:mark() will skip when
marking matches? Or, would it be possible to ask ft:mark() to put one
marker for the whole match?

The case I am using it for is to get the sequence of matching words within
a match, and sometimes, for long strings, there may be several sequences. A
contiguous sequence of marked elements maybe assumed to make up a match,
while non contiguous do not. One marker around the match solves the
problem, as would detecting characters that are never marked.

Regards
Lars G Johnsen
National Library of Norway

Reply via email to