i try write this java code in php using php java bridge:
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.
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.