RE: Need Help: Lucene with PHP/Java Bridge

2010-10-24 Thread Uwe Schindler
- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: dian puma [mailto:dianp...@gmail.com] > Sent: Monday, October 25, 2010 6:03 AM > To: java-user@lucene.apache.org > Subject: Re: Need Help: Lucene with PHP

Re: Need Help: Lucene with PHP/Java Bridge

2010-10-24 Thread dian puma
Hi. I still have problem with it My code worked well when I run it by command line, ex."php srcLucene.php" But it didn't work on web browser, still got an error like this. indexing ... Exception occured: [[o:Exception]:"java.lang.Exc

Re: Need Help: Lucene with PHP/Java Bridge

2010-10-24 Thread dian puma
Ahaaa, you're right, I used lucene-core-3.0.1.jar and I got an error on it cause the IndexWriter Constructor cannot work. When I try to use the lower version, it works. Thank alot On Sun, Oct 24, 2010 at 6:52 AM, Uwe Schindler wrote: > Are you sure that you use the same Lucene version? If you u

RE: Need Help: Lucene with PHP/Java Bridge

2010-10-23 Thread Uwe Schindler
Are you sure that you use the same Lucene version? If you use latest (3.0.x) now, then your IndexWriter ctor cannot work, because you have to call FSDirectory.open() in java code first. Directly passing a native java.io.File to IW is no longer possible. So maybe it simply does not find the correct

RE: Need Help: Lucene with PHP/Java Bridge

2010-10-23 Thread Zhang, Lisheng
Hi, Have you compared your java version in these two boxes? Also PHP version? Did you run indexer from command line or from browser? I used Zend java bridge before and found java version too low may cause problem? Best regards, Lisheng -Original Message- From: dian puma [mailto:dianp.