Java 如何在Lucene 6.5中使用InetAddressPoint?

Java 如何在Lucene 6.5中使用InetAddressPoint?,java,lucene,Java,Lucene,有人能给我解释一下为什么下面的方法不起作用吗 Document docObj = new Document(); InetAddress addr = null; try {addr = InetAddress.getByName("127.0.0.1");} catch (UnknownHostException e) {e.printStackTrace();} if (addr != null) docObj.add(new InetAddressPoint("ipAddress"

有人能给我解释一下为什么下面的方法不起作用吗

Document docObj = new Document();
InetAddress addr = null;
try {addr = InetAddress.getByName("127.0.0.1");}
catch (UnknownHostException e) {e.printStackTrace();}
if (addr != null)
    docObj.add(new InetAddressPoint("ipAddress", addr));

我正在导入
org.apache.lucene.document.InetAddressPoint
,并将../lucene-6.5.0/sandbox/lucene-sandbox-6.5.0.jar添加到我的项目中,但我的IDE(intellij)一直告诉我,
InetAddressPoint
未知。

1)检查导入是否正确,2)使用
jar-t…
检查jar文件是否包含该类,3)检查jar文件是否已正确添加;i、 它实际上在构建路径上。我已经检查过这个类没有被移动。我可以在6.0.0Javadocs和github(最新版本)的源代码中看到它。包和类名相同。它没有移动。我终于在
…\lucene-6.5.0\misc\lucene-misc-6.5.0.jar中找到了它。我使用此windows命令搜索当前文件夹及其所有子文件夹中的所有jar文件:
查找(*.jar)do@jar-tvf“%G”| find“InetAddressPoint”>NUL&&echo%G