有什么方法可以使用“ import org.apache.lucene.document.Field.Index;”使用Apache lucene 8.6.0

问题描述

我想使用以下代码,但是在 Field.Index 上显示错误找不到符号,并且我正在使用 Apache lucene 8.6.0

 private static void addDoc(IndexWriter w,String v) throws IOException{
        Document doc = new Document();
        doc.add(new Field("",v,Field.Store.YES,Field.Index)); 
        w.addDocument(doc); 
    }

因此,有没有办法使用Field.Index或任何可以执行此功能的lucene类(版本8.6.0是强制性的

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)