I have already used that but want I want to achieve is not to have a variable length teaser. For example I could set the max number of fragments to the 5 and the fragment size to 100 as I want to get a teaser of 500 characters in total. Now it's possible that I get returned only 3 fragments (all with 100 character) - So is there a way to dynamically adjust it to return the 3 fragments but with 150 characters? The Juniper engine in FAST ESP allows for setting the maximum size of characters produced in the final teaser.
I think for mimicking this "auto sizing fragments to a static total size" feature it would require digging into the open source code of the highlighter and add this feature...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.