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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -