Can please somebody explain to me why the following doesn't work?
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));
I'm importing org.apache.lucene.document.InetAddressPoint and I added the .../lucene-6.5.0/sandbox/lucene-sandbox-6.5.0.jar to my project, but my IDE (intellij) keeps on telling me that InetAddressPoint is unknown.