Vizrt forum

Go Back   Vizrt forum > Vizrt Online
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-05-2012, 10:05 AM   #1
sullivanb
Forum user
 
Name: Bill
Company: Valtech Ltd

Country: United Kingdom
Default Search not working using search widget

Escenic Engine 5.3.4.8
WF 1.10.0.0

I am getting the below error while hitting the following url I am just simply using search widget.
Query not working: http://10.80.1.101:8080/demo-core/se...rchString=test

I can see the results when hitting the following url.

http://10.80.1.101:8080/solr/select/...s=10&indent=on


2012-04-02 07:51:13,218 ERROR [http-8080-12] (com.escenic.framework.search.solr.SolrSearchEngine) solr search failed
org.apache.solr.client.solrj.SolrServerException: java.net.ConnectException: Connection refused


Thanks for your time.

Bill.
sullivanb is offline   Reply With Quote
Old 04-11-2012, 09:02 PM   #2
jamesk
Active Forum user
 
Name: JamesK
Company: Trinity Mirror

Country: United Kingdom
Default

Hi Bill,

Have you checked the configuration for the search engine? It's actually set in various different locations (for the different ways solr is used), but the list is:

/com/escenic/lucy/LucySearchEngine.properties
/com/escenic/webservice/search/DelegatingSearchEngine.properties
/com/escenic/framework/search/solr/SolrSearchEngine.properties
/opt/tomcat/conf/context.xml

possibly SolrSearchEngine.properties is pointing to a URL that doesn't exist (the default is 127.0.0.1 8080 I think)

James.
jamesk is offline   Reply With Quote
Old 04-12-2012, 10:50 AM   #3
sullivanb
Forum user
 
Name: Bill
Company: Valtech Ltd

Country: United Kingdom
Default

Hi James K,

Thank you for taking the time to respond to me.

We are using lucy-dist-4.1.6.0.zip, i have gone through ( again ) the lucy-guide.pdf ( installation & configuration sections ).

We do have localhost:8080 / 127.0.0.1:8080 because Escenic is installed on a single instance of tomcat.

Regarding the files that you mentioned, on searching for them it is a little strange because they exist in different locations on our file-system.

/opt/escenic/engine-5.3.4.8/plugins/lucy/siteconfig/localconfig/com/escenic/lucy/LucySearchEngine.properties
/opt/escenic/engine-5.3.4.8/siteconfig/config-skeleton/com/escenic/webservice/search/DelegatingSearchEngine.properties
/etc/escenic/engine/common/com/escenic/webservice/search/DelegatingSearchEngine.properties

/opt/escenic/engine-5.3.4.8/plugins/widget-framework-common/misc/siteconfig/com/escenic/framework/search/solr/SolrSearchEngine.properties

I would have thought that they should all be under /etc/ since they are all relating to Escenic configuration ( ? )

Anyway, on checking these files, that they were all set to localhost:8080, restarting the server and retesting search/solr, we still see the same exception(s) in the logs.

2012-04-12 11:28:30,572 ERROR [http-8080-8] (com.escenic.framework.search.solr.action.SearchAction) Error while executing search
java.lang.NullPointerException

2012-04-12 11:28:30,565 ERROR [http-8080-8] (com.escenic.framework.search.solr.SolrSearchEngine) solr search failed
org.apache.solr.client.solrj.SolrServerException: java.net.ConnectException: Connection refused


I do totally agree that it is a configuration issue, the problem seems to be that when solr tries to query the service, the url is bad or not configured, maybe the .properties files are not found or not in the correct location on the file-system ?

Thanks for your time with this matter.

Kind regards,

Bill.
sullivanb is offline   Reply With Quote
Old 04-12-2012, 03:12 PM   #4
jamesk
Active Forum user
 
Name: JamesK
Company: Trinity Mirror

Country: United Kingdom
Default

Hi Bill,

The different locations you mention split into two categories:

/opt/escenic/engine-5.3.4.8/plugins/lucy/siteconfig/localconfig/com/escenic/lucy/LucySearchEngine.properties
/opt/escenic/engine-5.3.4.8/siteconfig/config-skeleton/com/escenic/webservice/search/DelegatingSearchEngine.properties
opt/escenic/engine-5.3.4.8/plugins/widget-framework-common/misc/siteconfig/com/escenic/framework/search/solr/SolrSearchEngine.properties

these are the example configuration files that ship with the various plugins or with the content engine itself

/etc/escenic/engine/common/com/escenic/webservice/search/DelegatingSearchEngine.properties

this is the actual configuration file that will be loaded on startup by escenic. The easiest way to see what the actual values are that escenic is using is to look in the component browser in escenic-admin. That will show you the run time values of various properties. For example, if I look at:

http://my-vm-ip:8080/escenic-admin/b...lrSearchEngine

I can see that my dev escenic instance is using a solrServerURI of http://localhost:8080/solr . That screen also tells you the names of the configuration files that escenic loads to determine the end values for the properties which can be very helpful.

One other tip would be to go into the 'logging levels' screen in escenic-admin and set the log level to DEBUG for com.escenic.framework.search.solr.SolrSearchEngine and org.apache.solr.client. You may (hopefully!) see some helpful debug in your outlog then.
jamesk is offline   Reply With Quote
Old 04-13-2012, 11:36 AM   #5
sullivanb
Forum user
 
Name: Bill
Company: Valtech Ltd

Country: United Kingdom
Default

Hi James K,

Thanks for your tips.

Yes, I now understand that Escenic will read its configuration files from /etc/escenic/engine/common/

I checked in /escenic-admin/ like you said, changed to the URL of the solrServerURI to include 8080 and it all started to work.

I even created new directory & config file under /etc/escenic/engine/common for the SolrSearchEngine.properties, now when Escenic is started it sets the correct values of the properties variables.

Thank you for showing me this, it has helped a great deal and we are now confident with the configuration of Escenic engine.

Kind regards,

Bill.
sullivanb is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:15 PM.


provided by Molden Media GmbH

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.