Forums / Extensions / eZ Find / 2ezpublish 1 server - How many ezfind

2ezpublish 1 server - How many ezfind

Author Message

Fabien GALLARD

Tuesday 22 March 2011 7:44:10 am

Hello,

On my server i have two ezpublish : one with ezpublish 4.2 and ezfind 2.1 ; the other one is ezpublish 4.4 and ezfind 2.3.

The ezfind search actually work on the first install.

I'm trying to install ezfind on the other install. I follow this tutorial : http://doc.ez.no/Extensions/eZ-Find/2.3/Installation

I try a $search=fetch( 'ezfind', 'search', hash( query, $search_text, limit, '9999'))
but i have this error in debug log :

Got invalid result from search engine.<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 400 </title> </head> <body><h2>HTTP ERROR: 400</h2><pre>undefined field meta_installation_id_ms</pre> <p>RequestURI=/solr/select</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>  

In $search|attribute(show) i got :

SearchResult boolean false
SearchCount integer 0
StopWordArray array Array(0)
SearchExtras object[ezfSearchResultInfo] Object
>facet_fields NULL  
>facet_queries NULL  
>engine string 'eZ Find 2.3 search plugin © 1999-2010 eZ Systems AS, powered by Apache Solr 1.5-dev'
>hasError boolean true
>error string 'Server not running'
>responseHeader NULL  
>spellcheck boolean false
>spellcheck_collation boolean false

So i try to run this command :

java -Dezfind -jar start.jar

and it get this error :

2011-03-22 14:54:34.586::WARN: failed SocketConnector @ 0.0.0.0:8983
java.net.BindException: Address already in use

How can i get this to work

Thanks

Fabien

Ivo Lukac

Tuesday 22 March 2011 8:14:51 am

Two services can't use the same port so the easiest thing would be to change the port setting of the second solr instance to some other port, not 8983.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Philippe VINCENT-ROYOL

Tuesday 22 March 2011 8:22:16 am

"

Two services can't use the same port so the easiest thing would be to change the port setting of the second solr instance to some other port, not 8983.

"

just edit jetty.xml on the second instance :) You can change port number...

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Marko Žmak

Wednesday 23 March 2011 12:27:11 am

See here some info on how to change the port:

Note that the official and recommended way of changing the port is to use a command line parameter:

-Djetty.port=12345

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth