ok, im building a search engine. and the search module able to extract the relevant words. and now i have a list of words and their offset in original source text.is it a bad idea to use levenshtein distance to compute difference between the query string and the portion of source text ( begin at given word's offset and up to query string's length). ask i was thinking this would help me generate excerpt faster.
it doesnt need a proximity search etc., only normal 'ANY' and 'ALL' modes. btw, the results already sorted so im only looking into a excerpt generation now. thanks.