Lucene Field.Store.YES versus Field.Store.NO

后端 未结 2 912
温柔的废话
温柔的废话 2020-12-30 05:01

Will someone please explain under what circumstance I may use Field.Store.NO instead of Field.Store.YES? I am extremely new to Lucene. And I am try

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 05:26

    Use Field.Store.YES when you need a document back from Lucene document. Use NO when you just need a search from document. Here is a link explained with a scenario. https://handyopinion.com/java-lucene-saving-fields-or-not/

提交回复
热议问题