Is it possible using Zend Lucene to properly trim the text?

Who did the search using Lucene how to search results to crop the text so that it remains highlighted search phrase. Let me explain. The search is by title and category description. The description can be very high in the search results you want to crop. But you need to trim the piece of text which contains the search word, not just the first 100 characters.
July 2nd 19 at 13:43
0 answer

Find more questions by tags PHPYii