Hi, I am not sure if I can help you a lot but you can check how Nutch does this (although it does not do exactly what you want). See
*org.apache.nutch.summary.basic.BasicSummarizer * or *org.apache.nutch.summary.lucene.LuceneSummarizer* You should also check Highliter API ( http://lucene.apache.org/java/docs/api/org/apache/lucene/search/highlight/Highlighter.html#getBestFragment(org.apache.lucene.analysis.TokenStream,%20java.lang.String)<http://lucene.apache.org/java/docs/api/org/apache/lucene/search/highlight/Highlighter.html#getBestFragment%28org.apache.lucene.analysis.TokenStream,%20java.lang.String%29> ) Regards, Lukas On 3/11/07, ruchi thakur <[EMAIL PROTECTED]> wrote:
Am using lucene search. I have a field as "summary" in my Document, which is having large amount of content/data. In each search i want to get not more than 200 words from the field "summary". Now i want that in the 200 words that i get, there should be search String available. If this possible in lucene search to get the relevant search result having search String. Thanks and Regards, Ruchika