issues with get path method in java lucene program -


I am using Lucene in Java to find rank documents against a query, but in the Getpath method code Error found:

  string directory name = "doc 50"; File folder = new file (DirectoryName); File [] listOfFiles = folder.listFiles (); To read files from the doc50 folder (int i = 0; iOffiles.length; i ++) // loop ... {if (listOfFiles [i] .isFile ()) // condition if the current file file type (Path path = file system .get default (). GetPath (directory name, listofffiles [i] .getName ()); String content = new string (files .readlibets (path), standard charsets.utf_8); / Read the entire document in the / single string addDoc (DocumentIndexer, content, listofffile [i] .getName ()); // indexed documents Add document}  

In the error, I get an exception in thread "main" java.lang.Error: missing compile problem: Type method in getPath (string, string []) file system logic (String, string)

Please help me.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -