How to do a Multi field - Phrase search in Lucene?

前端 未结 2 647
刺人心
刺人心 2021-01-14 04:27

Title asks it all... I want to do a multi field - phrase search in Lucene.. How to do it ?

for example : I have fields as String s[] = {\"title\",\"author\"

2条回答
  •  爱一瞬间的悲伤
    2021-01-14 05:20

    intensified googling revealed this :
    http://lucene.472066.n3.nabble.com/Phrase-query-on-multiple-fields-td2292312.html.
    Since it is latest and best, I'll go with his approach I guess.. Nevertheless, it might help someone who is looking for something like I am...

提交回复
热议问题