嗨,我是java开发人员,正在学习Lucene。我有一个用来索引pdf(lucene_in_action_2nd_edition.pdf)文件的java类和一个用来从索引中搜索一些文本的search类。IndexSearcher提供了Document,它表明字符串是否存在于索引(lucene_in_action_2nd_edition.pdf)中。
但是现在I want to get searched data or metadata. i.e. I want to know that at which page string is matched, or few text around ma