[nycphp-talk] PHP/Java Bridge
Daniel Krook
krook at us.ibm.com
Thu Dec 4 12:00:38 EST 2008
Hi Donald,
> From: "Donald J. Organ IV" <dorgan at donaldorgan.com>
> To: NYPHP Talk <talk at lists.nyphp.org>
> Date: 12/03/2008 03:48 PM
> Subject: [nycphp-talk] PHP/Java Bridge
>
> So I am trying to use Apache Lucene to add searching to a
> site I am working on. And so far I have been able to use
> the PHP/Java Bridge for this.
>
> http://php-java-bridge.sourceforge.net/pjb/
>
> Has anyone used this before??
>
> For the most part I have this working but I am trying to
> impletement MultiFieldQueryParser but not sure how to pass
> the fields. I have tried the following:
>
> $parser = new Java(
> 'org.apache.lucene.queryParser.MultiFieldQueryParser',array
> ('name','description'),$analyzer );
>
> I have also tried:
> $parser = new Java(
>
'org.apache.lucene.queryParser.MultiFieldQueryParser',"name,description",
> $analyzer );
>
> AND
> $parser = new Java(
> 'org.apache.lucene.queryParser.MultiFieldQueryParser',"name
> description",$analyzer );
>
> And I am not getting anything, has anyone done this before??
>
> Thanks,
>
> Donald
I was going to recommend you post this over to the PHP/Java Bridge list,
but I see you've already done that :)
I have not used Lucene before, but there are some resources I came across
when building a Project Zero/WebSphere sMash app recently. They may be
of use:
http://www.projectzero.org/blog/index.php/2008/10/28/searching-for-information-with-php-java-and-apache-lucene/
http://www.ibm.com/developerworks/websphere/library/techarticles/0809_phillips/0809_phillips.html
Thanks,
-Dan
Daniel Krook
Senior IT Specialist - Content Tools Developer, Global Solutions, ibm.com
IBM Certified IT Specialist, SCSA, SCJP, SCWCD, ZCE, ICDAssoc., ICAD
More information about the talk
mailing list