Hello users, I am right now developing an algorithm to calculate the shortest snippet from the search results for a given keyword of length n (from user query).
From the lucene source I found that there is a method getBestFragments
which would do the same. However its very hard to interpret the algorithm you used for that purpose. Therefore it would be great if you can share any pointers to an pseudo algorithm which would calculate the shortest snippet from search results so that it will be useful for me (I am planning to implement the algorithm in scripting languages like python).
Thanks, S.Prasanna -- S.Prasanna (ME Comp Science and Engg) http://www.pythonprasanna.com http://blogs.sun.com/prasanna http://www.livejournal.com/~sprasanna199