作者:菜鸟自学编程 | 来源:互联网 | 2023-09-06 10:12
ImusingLucenewithjavatoindexsometextdocuments.Now,afterIgetsometopdocumentsforak
I'm using Lucene with java to index some text documents. Now, after I get some top documents for a keyword search, I want to further refine my search and search only those top documents with some additional keywords, so each document once. Can somebody tell me on how I can search a specific document with a specific keyword, not the whole index, but lets say just 123.xml with keywords "bla blah".
我正在使用Lucene和java来索引一些文本文档。现在,在我获得关键字搜索的顶级文档之后,我想进一步优化我的搜索并仅搜索那些带有一些额外关键字的顶级文档,因此每个文档一次。有人可以告诉我如何使用特定关键字搜索特定文档,而不是整个索引,但可以说只有123.xml,关键字为“bla blah”。
thanx in advance
提前
1 个解决方案