Hi all!

I use PositionIncrement attribute for finding words at some distance from each 
other. And I have two problems with that:
1) I want to search words within one sentence. A possible solution would be to 
set PositionIncrement of +INF (like 30 :) ) to the sentence break tag.
2) I want to use in my search both word-distance and sentence-distance between 
words (e.g. find the word "Putin" within 3 sentences after the word "Obama" or 
find the words "cheese" and "bacon" in one sentence within 3 words of each 
other).

For the 2nd problem, is there a way of storing multiple position information 
sources in the index and using them for searching? Say, at least choosing one 
of those for a query.


-- 
Best Regards,
Igor Shalyminov

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to