You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
(1) |
2
(3) |
3
|
4
|
5
(2) |
6
(7) |
7
|
|
8
|
9
(1) |
10
|
11
|
12
|
13
(1) |
14
(2) |
|
15
(1) |
16
|
17
|
18
(12) |
19
(4) |
20
|
21
|
|
22
|
23
(2) |
24
|
25
(4) |
26
(3) |
27
(3) |
28
|
|
29
(1) |
30
(5) |
|
|
|
|
|
|
From: <php...@li...> - 2009-11-25 14:28:36
|
> What do you mean by "fetch directly from the backend"?
Use the require command I have given. Please fetch Java.inc directly
from the back end, use
<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc");
...
?>
Or make sure that the version of your Java.inc matches the version of
your back end.
> What's the backend here?
The PHP/Java Bridge application.
> can configure the path to the
> PHPjavaBridge installation in a variable
Which seems to be the problem here. You have probably confused the
versions. Or the Java daemon you have written crashes immediately.
> I'm not allowed to use a tomcat although I'd like to have it.
Interesting. I thought you were running the back end as a daemon.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-11-25 14:09:59
|
Thank you, Jost.
What do you mean by "fetch directly from the backend"? What's the
backend here?
I'm using a symfony PHP framework and can configure the path to the
PHPjavaBridge installation in a variable very easily.
That's the $this->javabridge_root variable. It contains a path to my bridge.
The java.inc is located in that directory.
I'm not allowed to use a tomcat although I'd like to have it.
Jost Boekemeier wrote:
Hi,
can you please fetch Java.inc directly from the back end (require_once("
http://localhost:8080/JavaBridge/java/Java.inc"
<http://localhost:8080/JavaBridge/java/Java.inc>) to make sure that your
back
end version matches the version of the Java.inc library?
BTW: Why don't you install tomcat to run java as a service?
Regards,
Jost Boekemeier
Thorsten Kummer schrieb:
> Hi all,
>
> I've set up the PHPJavaBridge standalone as a windows service to
> implement lucene search capabilities in my PHP application.
> After having started the Bridge with SERVLET_LOCAL:8080 the very first
> call to my script fails.
> Here's what I can see in my SOAP Client:
>
> <faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>Broken local connection handle fwrite() [<a
> href='function.fwrite'>function.fwrite</a>]: send of 6 bytes failed
> with errno=10054 Eine vorhandene Verbindung wurde vom Remotehost
> geschlossen.</faultstring>
>
> Which means an existing connection has been closed by the remote host.
> Every additional call is made with success, only the the first time
> fails. I assume the call to java_autoload(..) fails the first time.
>
> here's my PHP function that encapsulates lucene searching:
> ++++++++++++++++++++++++++++++++++++++++++++++
> public function SearchIndex ($maxrows, $searchstring) {
> /**
> * @desc Search in a lucene index
> * */
> try {
> require_once ($this->javabridge_root."/Java.inc");
> java_autoload("lucene-core-2.9.1.jar;lucene-analyzers-2.9.1.jar");
>
> $analyzer = new
> Java('org.apache.lucene.analysis.standard.StandardAnalyzer');
> $indexer = new
> Java('org.apache.lucene.search.IndexSearcher',$this->indexfilename);
>
> //Lese alle indizierten Felder aus dem Index aus
> $Felder_ind =
> java('org.apache.lucene.index.IndexReader$FieldOption')->INDEXED;
> $IndexReader =
> java('org.apache.lucene.index.IndexReader')->open($this->indexfilename);
>
> $AlleSuchfelder=java_values($IndexReader->getFieldNames($Felder_ind)->toArray());
>
> $IndexReader->close();
>
> //Eine Suche über alle im Index vorhandenen Suchfelder
> $parser = new
> Java('org.apache.lucene.queryParser.MultiFieldQueryParser',
> $AlleSuchfelder,$analyzer);
> } catch (Exception $e) {
> throw new Exception(utf8_encode($e));
> }
> $hits = array(); try {
> if ($searchstring) {
> $sortfield= new
> Java('org.apache.lucene.search.SortField','releasedate',3, true);
> $sorter= new
> Java('org.apache.lucene.search.Sort',$sortfield );
> //$sorter->setSort($sortfield);
> $query = $parser->parse($searchstring);
> $hits = $indexer->search($query,$sorter );
> $num=java_values($hits->length());
>
> //printf("3) Hits: %d\n", $num);
> if ($num < $maxrows) {
> $maxrows = $num;
> }
> $soapreturn = array();
> for ($i = 0; $i < $maxrows; $i++) {
> $found = $hits->doc($i);
> $si = new SOAPSearchResult();
> $si->wiretextId =
> utf8_encode($found->get('wiretextid'));
> $soapreturn[] = $si;
> }
> }
> }
> catch (Exception $e) {
> throw new Exception(utf8_encode($e));
> }
> if(SF_ENVIRONMENT == 'soap') return $soapreturn;
> }
>
> :
>
>
>
|
|
From: <php...@li...> - 2009-11-25 08:49:36
|
Hi,
can you please fetch Java.inc directly from the back end (require_once("
http://localhost:8080/JavaBridge/java/Java.inc") to make sure that your back
end version matches the version of the Java.inc library?
BTW: Why don't you install tomcat to run java as a service?
Regards,
Jost Boekemeier
25.11.2009 08:26 schrieb am <php...@li...>:
Hi all,
I've set up the PHPJavaBridge standalone as a windows service to
implement lucene search capabilities in my PHP application.
After having started the Bridge with SERVLET_LOCAL:8080 the very first
call to my script fails.
Here's what I can see in my SOAP Client:
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Broken local connection handle fwrite() [<a
href='function.fwrite'>function.fwrite</a>]: send of 6 bytes failed
with errno=10054 Eine vorhandene Verbindung wurde vom Remotehost
geschlossen.</faultstring>
Which means an existing connection has been closed by the remote host.
Every additional call is made with success, only the the first time
fails. I assume the call to java_autoload(..) fails the first time.
here's my PHP function that encapsulates lucene searching:
++++++++++++++++++++++++++++++++++++++++++++++
public function SearchIndex ($maxrows, $searchstring) {
/**
* @desc Search in a lucene index
*
*/
try {
require_once ($this->javabridge_root."/Java.inc");
java_autoload("lucene-core-2.9.1.jar;lucene-analyzers-2.9.1.jar");
$analyzer = new
Java('org.apache.lucene.analysis.standard.StandardAnalyzer');
$indexer = new
Java('org.apache.lucene.search.IndexSearcher',$this->indexfilename);
//Lese alle indizierten Felder aus dem Index aus
$Felder_ind =
java('org.apache.lucene.index.IndexReader$FieldOption')->INDEXED;
$IndexReader =
java('org.apache.lucene.index.IndexReader')->open($this->indexfilename);
$AlleSuchfelder=java_values($IndexReader->getFieldNames($Felder_ind)->toArray());
$IndexReader->close();
//Eine Suche über alle im Index vorhandenen Suchfelder
$parser = new
Java('org.apache.lucene.queryParser.MultiFieldQueryParser',
$AlleSuchfelder,$analyzer);
}
catch (Exception $e) {
throw new Exception(utf8_encode($e));
}
$hits = array();
try {
if ($searchstring) {
$sortfield= new
Java('org.apache.lucene.search.SortField','releasedate',3, true);
$sorter= new
Java('org.apache.lucene.search.Sort',$sortfield );
//$sorter->setSort($sortfield);
$query = $parser->parse($searchstring);
$hits = $indexer->search($query,$sorter );
$num=java_values($hits->length());
//printf("3) Hits: %d\n", $num);
if ($num < $maxrows) {
$maxrows = $num;
}
$soapreturn = array();
for ($i = 0; $i < $maxrows; $i++) {
$found = $hits->doc($i);
$si = new SOAPSearchResult();
$si->wiretextId =
utf8_encode($found->get('wiretextid'));
$soapreturn[] = $si;
}
}
}
catch (Exception $e) {
throw new Exception(utf8_encode($e));
}
if(SF_ENVIRONMENT == 'soap') return $soapreturn;
}
:
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-11-25 07:26:41
|
Hi all,
I've set up the PHPJavaBridge standalone as a windows service to
implement lucene search capabilities in my PHP application.
After having started the Bridge with SERVLET_LOCAL:8080 the very first
call to my script fails.
Here's what I can see in my SOAP Client:
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Broken local connection handle fwrite() [<a
href='function.fwrite'>function.fwrite</a>]: send of 6 bytes failed
with errno=10054 Eine vorhandene Verbindung wurde vom Remotehost
geschlossen.</faultstring>
Which means an existing connection has been closed by the remote host.
Every additional call is made with success, only the the first time
fails. I assume the call to java_autoload(..) fails the first time.
here's my PHP function that encapsulates lucene searching:
++++++++++++++++++++++++++++++++++++++++++++++
public function SearchIndex ($maxrows, $searchstring) {
/**
* @desc Search in a lucene index
*
*/
try {
require_once ($this->javabridge_root."/Java.inc");
java_autoload("lucene-core-2.9.1.jar;lucene-analyzers-2.9.1.jar");
$analyzer = new
Java('org.apache.lucene.analysis.standard.StandardAnalyzer');
$indexer = new
Java('org.apache.lucene.search.IndexSearcher',$this->indexfilename);
//Lese alle indizierten Felder aus dem Index aus
$Felder_ind =
java('org.apache.lucene.index.IndexReader$FieldOption')->INDEXED;
$IndexReader =
java('org.apache.lucene.index.IndexReader')->open($this->indexfilename);
$AlleSuchfelder=java_values($IndexReader->getFieldNames($Felder_ind)->toArray());
$IndexReader->close();
//Eine Suche über alle im Index vorhandenen Suchfelder
$parser = new
Java('org.apache.lucene.queryParser.MultiFieldQueryParser',
$AlleSuchfelder,$analyzer);
}
catch (Exception $e) {
throw new Exception(utf8_encode($e));
}
$hits = array();
try {
if ($searchstring) {
$sortfield= new
Java('org.apache.lucene.search.SortField','releasedate',3, true);
$sorter= new
Java('org.apache.lucene.search.Sort',$sortfield );
//$sorter->setSort($sortfield);
$query = $parser->parse($searchstring);
$hits = $indexer->search($query,$sorter );
$num=java_values($hits->length());
//printf("3) Hits: %d\n", $num);
if ($num < $maxrows) {
$maxrows = $num;
}
$soapreturn = array();
for ($i = 0; $i < $maxrows; $i++) {
$found = $hits->doc($i);
$si = new SOAPSearchResult();
$si->wiretextId =
utf8_encode($found->get('wiretextid'));
$soapreturn[] = $si;
}
}
}
catch (Exception $e) {
throw new Exception(utf8_encode($e));
}
if(SF_ENVIRONMENT == 'soap') return $soapreturn;
}
:
|