简体   繁体   中英

Lucene: Searching for phrases in specific order

Using lucene I want to search for phrases (of multiple words) in specific order. I came across examples of spanquery for searching for single terms in specific order but that does not suit my requirements because I want to search for "phrases" occurring in specific order in a document when slop is not necessarily zero. So do we have any such feature in lucene? Or can we use spanquery to search for phrases in specific order?

Thanks in advance.

您在寻找PhraseQuery吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM