Petani Posted October 25, 2013 Share Posted October 25, 2013 hi guys, i have problem write java class in php via php java bridge. i try write this java code in php: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. in DirectoryReader class, i found: public static DirectoryReader open(Directory directory) throws IOException { return StandardDirectoryReader.open(directory, null, 1); } but, when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", analyzer).parse(querystr); i write in php like below: $query = new Query\QueryParser($version->LUCENE_43,'content',$analyzer); $query->parse($querystr); it's no error. so, could you help me how to write it in php?? thanks in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.