Foros de discusión

solr-web 5.2.01 does not work with liferay 5.2.3

Tobias Rübner, modificado hace 14 años.

solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 10 Fecha de incorporación: 20/01/09 Mensajes recientes
Hello,

I think the implementation of the solr-web plugin v5.2.0.1 is broken with the new release of liferay.
It worked perfectly with liferay 5.2.2 (but this version does not work with LDAP) and now we are getting a NullPointerException when trying to search with the search-portlet.
I double checked this behavior with a clean liferay-portal-5.2.3-tomcat-6.0.18 version. Just installed the solr.war and deployed the solr-web plugin.
Does anyone have the same issue or a workaround?

14:16:17,528 ERROR [SolrReaderMessageListener:47] Unable to process message {destination=liferay/search_reader, responseDestination=liferay/search_reader/response, responseId=edd1a
a4b-ebe9-45c0-8e6d-a5666b2d232d, payload={command=SEARCH, companyId=1, id=null, doc=null, query=+(+portletId:36) +(title:test content:test tagsEntries:test), sorts=[Lcom.liferay.po
rtal.kernel.search.Sort;@9d509b, start=0, end=5}, values=null}
com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
at com.liferay.portal.search.solr.SolrIndexSearcherImpl.search(SolrIndexSearcherImpl.java:99)
at com.liferay.portal.search.solr.SolrSearchEngineUtil.search(SolrSearchEngineUtil.java:79)
at com.liferay.portal.search.solr.messaging.SolrReaderMessageListener.doCommandSearch(SolrReaderMessageListener.java:86)
at com.liferay.portal.search.solr.messaging.SolrReaderMessageListener.doReceive(SolrReaderMessageListener.java:68)
at com.liferay.portal.search.solr.messaging.SolrReaderMessageListener.receive(SolrReaderMessageListener.java:44)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:60)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.apache.solr.client.solrj.SolrQuery.toSortString(SolrQuery.java:497)
at org.apache.solr.client.solrj.SolrQuery.addSortField(SolrQuery.java:293)
at com.liferay.portal.search.solr.SolrIndexSearcherImpl.search(SolrIndexSearcherImpl.java:88)
... 9 more
Tobias Rübner, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 10 Fecha de incorporación: 20/01/09 Mensajes recientes
Does no one have the same error?
thumbnail
Bruno Farache, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Liferay Master Mensajes: 603 Fecha de incorporación: 14/05/07 Mensajes recientes
This was fixed by

http://issues.liferay.com/browse/LPS-2885

Plugins compatible with 5.2.3 weren't released yet, but I think we are close to releasing them.
thumbnail
Denis Signoretto, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
Hi Burno, do you know if the solr-web plugin for 5.2.3 is ready?
I also need to know wich version of solr it support (1.2 or 1.3)?

Thanks,
Denis.
Ken Horn, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 4 Fecha de incorporación: 13/07/09 Mensajes recientes
Hi,

Is the new Solr-Web plugin ready for release?
Thank you.
Camilo Aguilar, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 9 Fecha de incorporación: 20/07/09 Mensajes recientes
I have the same issue, any updates ?
Camilo Aguilar, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 9 Fecha de incorporación: 20/07/09 Mensajes recientes
I have solr-web updated from the last changes but when I am deploying it on liferay I got the follow error:

8:20:30,503 INFO [[/solr-web]] Set web app root system property: 'solr-web.root' = [/opt/jboss/liferay/jboss-5.1.0.GA/server/default/deploy/solr-web.war/]
08:20:30,535 INFO [[/solr-web]] Initializing Spring root WebApplicationContext
08:20:30,535 INFO [ContextLoader] Root WebApplicationContext: initialization started
08:20:30,576 INFO [XmlWebApplicationContext] Refreshing org.springframework.web.context.support.XmlWebApplicationContext@d151d21: display name [Root WebApplicationContext]; startup date [Thu Aug 20 08:20:30 COT 2009]; root of context hierarchy
08:20:30,727 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/META-INF/solr-spring.xml]
08:20:30,858 INFO [XmlWebApplicationContext] Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@d151d21]: org.springframework.beans.factory.support.DefaultListableBeanFactory@35fe55e8
08:20:30,896 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@35fe55e8: defining beans [solrServer,indexSearcher.solr,indexWriter.solr,searchEngine.solr,messageListener.solr_reader,messageListener.solr_writer,messagingConfigurator]; root of factory hierarchy
08:20:31,012 INFO [ContextLoader] Root WebApplicationContext: initialization completed in 476 ms
08:20:31,047 ERROR [STDERR] Exception in thread "liferay/search_writer"
08:20:31,047 ERROR [STDERR] java.lang.ExceptionInInitializerError
08:20:31,048 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:292)
08:20:31,048 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
08:20:31,048 ERROR [STDERR] at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
08:20:31,048 ERROR [STDERR] at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:97)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.search.solr.SolrIndexWriterImpl.deleteDocument(SolrIndexWriterImpl.java:62)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.search.solr.SolrIndexWriterImpl.updateDocument(SolrIndexWriterImpl.java:92)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.search.solr.messaging.SolrWriterMessageListener.doReceive(SolrWriterMessageListener.java:87)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.search.solr.messaging.SolrWriterMessageListener.receive(SolrWriterMessageListener.java:43)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70)
08:20:31,048 ERROR [STDERR] at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:54)
08:20:31,048 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
08:20:31,048 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
08:20:31,048 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
08:20:31,048 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
08:20:31,048 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
08:20:31,048 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
08:20:31,048 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
08:20:31,048 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
08:20:31,048 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
08:20:31,048 ERROR [STDERR] at org.apache.commons.httpclient.HttpMethodBase.<clinit>(HttpMethodBase.java:104)
08:20:31,048 ERROR [STDERR] ... 13 more


My libs in WEB-INF/lib
apache-solr-common-1.3.0.jar
apache-solr-core-1.3.0.jar
commons-codec-1.2.jar
commons-httpclient-3.1.jar
commons-logging.jar

and in my liferay-plugin-package.properties I have:

name=Solr Search Engine
module-group-id=liferay
module-incremental-version=1
recommended-deployment-context=solr-web
tags=
short-description=This is the Solr Search Engine implementation.
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=MIT

portal-dependency-jars=\
spring.jar


Anybody can help me please ?
thumbnail
Anderson Souza, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 4 Fecha de incorporación: 9/05/09 Mensajes recientes
I was having problem with this issue too, and after I saw this thread I decided to work on the code to correct the problem.
The steps executed to create a working code for liferay 5.2.3 were:

1- get the latest plugin code from svn (http://svn.liferay.com/repos/public/plugins/branches/5.2.x/webs/solr-web)
2- add missing classes (messaging classes and SolrSearchEngineUtil) using classes avalable on released plugin (http://downloads.sourceforge.net/lportal/solr-web-5.2.0.1.war)
3- add missing import for com.liferay.portal.kernel.search.SearchEngineUtil on SolrSearchEngineImpl
4- add missing methods init(), isRegistered(), register() and unregister(), on SolrSearchEngineImpl
5- add missing attributes _name and _registered on SolrSearchEngineImpl
6- remove _indexReadOnly and isIndexReadOnly method from SolrSearchEngineImpl
7- remove method isIndexReadOnly() on SolrSearchEngineUtil
8- remove method doCommandIndexOnly() and the "if (command.equals(SearchRequest.COMMAND_INDEX_ONLY))" test existing on SolrReaderMessageListener.
9- use solr-spring.xml from downloaded plugin and comment the properties "name" and "indexReadOnly" for bean "searchEngineUtil".

My solr-spring.xml look like this:


<!--?xml version="1.0" encoding="UTF-8"?-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
	<bean id="solrServer" class="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer">
		<constructor-arg type="java.lang.String" value="http://server/solr" />
	</bean>
	<bean id="indexSearcher.solr" class="com.liferay.portal.search.solr.SolrIndexSearcherImpl">
		<property name="solrServer" ref="solrServer" />
	</bean>
	<bean id="indexWriter.solr" class="com.liferay.portal.search.solr.SolrIndexWriterImpl">
		<property name="solrServer" ref="solrServer" />
	</bean>
	<bean id="searchEngineUtil" class="com.liferay.portal.search.solr.SolrSearchEngineUtil">
		<property name="searchEngine">
			<bean class="com.liferay.portal.search.solr.SolrSearchEngineImpl" init-method="init" destroy-method="destroy">
				<property name="searcher" ref="indexSearcher.solr" />
				<property name="writer" ref="indexWriter.solr" />
			</bean>
		</property>
	</bean>
	<bean id="messageListener.solr_reader" class="com.liferay.portal.search.solr.messaging.SolrReaderMessageListener" />
	<bean id="messageListener.solr_writer" class="com.liferay.portal.search.solr.messaging.SolrWriterMessageListener" />
	<bean id="messagingConfigurator" class="com.liferay.portal.kernel.messaging.config.PluginMessagingConfigurator" depends-on="searchEngineUtil" init-method="init" destroy-method="destroy">
		<property name="messageListeners">
			<map key-type="java.lang.String" value-type="java.util.List">
				<entry key="liferay/search_reader">
					<list value-type="com.liferay.portal.kernel.messaging.MessageListener">
						<ref bean="messageListener.solr_reader" />
					</list>
				</entry>
				<entry key="liferay/search_writer">
					<list value-type="com.liferay.portal.kernel.messaging.MessageListener">
						<ref bean="messageListener.solr_writer" />
					</list>
				</entry>
			</map>
		</property>
	</bean>
</beans>


This worked fine for me.
The eclipse project with obtained code is attached on this post.

Archivos adjuntos:

thumbnail
Jonas Yuan, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Liferay Master Mensajes: 993 Fecha de incorporación: 27/04/07 Mensajes recientes
Good job! Thank you, Anderson, to share fixes.

The downloading (solr-web.zip) is very slow .... even it is unreachable ... but got it finally.

Jonas Yuan

-----------------
Liferay Books

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Camilo Aguilar, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 9 Fecha de incorporación: 20/07/09 Mensajes recientes
Great job Anderson, thanks !

I have all these settings in 5.2.3 community edition and it does not work for me, but,
when I got Liferay EE 5.2.5 this issue disappeared mysteriously...
Igor Barma, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 16 Fecha de incorporación: 30/09/09 Mensajes recientes
Hi,
Is anyone have more informations about a release of SOLR-Web pluggin fully fonctionnal with liferay 5.2.3.
Thanks
Igor
Carlos del Castillo, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 21 Fecha de incorporación: 28/08/08 Mensajes recientes
Thanks Anderson for sharing this.

I tried this on liferay 5.2.3 but did not work. When deploying the plugin I get the following error:

17:32:55,180 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class 
[com.liferay.portal.search.solr.server.BasicAuthSolrServer] for bean with name 'solrServer' 
defined in ServletContext resource [/WEB-INF/classes/META-INF/solr-spring.xml]; 
nested exception is java.lang.ClassNotFoundException: 
com.liferay.portal.search.solr.server.BasicAuthSolrServer



Any ideas?

Thanks!
Darren Govoni, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 17 Fecha de incorporación: 10/12/09 Mensajes recientes
Has anyone gotten solr-web 5.2.01 to work with LR 5.2.3 yet? If so, can you post the .war please?
I tried the .zip above, but it doesn't work. LR doesn't seem to recognize the plugin.

thanks!!
thumbnail
Albert J Carter-Corbin, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Regular Member Mensajes: 123 Fecha de incorporación: 12/09/06 Mensajes recientes
I think I was able to get Solr-Web branch svn (12/18/09) to work with the liferay branch svn (12/18/09) by modifying the SolrIndexSearcherIndex.java code with the following:

I changed the following:

solrQuery.setQuery(query.toString());


To the following:

String queryStr = query.toString();
while( queryStr.indexOf( ":*") > -1 ) {
String str1 = queryStr.substring( 0, queryStr.indexOf( ":*") +1 );
String str2 = queryStr.substring( queryStr.indexOf( ":*") + 2 );
queryStr = str1 + str2;
}
solrQuery.setQuery(queryStr);

solr doesn't like the '*' character to begin a keyword search.
Tor Iver Wilhelmsen, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Junior Member Mensajes: 60 Fecha de incorporación: 3/12/08 Mensajes recientes
com.liferay.portal.search.solr.server.BasicAuthSolrServer


Yes, it seems the zip-file is incomplete; what I did was checking out the branch source (user "guest", no password) then adding his changes to that as a patch then building in the plugin SDK.
Darren Govoni, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 17 Fecha de incorporación: 10/12/09 Mensajes recientes
Hey guys. Could one of you kind folk mind posting the modified .class or .war for this patch please?

Many thanks!!
thumbnail
Madhu Yadav, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Regular Member Mensajes: 118 Fecha de incorporación: 23/01/09 Mensajes recientes
I have attached the patched .war file to this post. Its working for liferay 5.2.3,tomcat 6.0.18 and solr 1.4.0

I followed previous posts in this thread here but in the order as mentioned here.
The only modifications to those steps:
  • Updated xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" in solr-spring.xml
  • And in the same file,kept the arg for solrServer bean by default as http://localhost:8080/solr
thumbnail
Madhu Yadav, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Regular Member Mensajes: 118 Fecha de incorporación: 23/01/09 Mensajes recientes
Has anyone tried displaying search results which are not liferay web content items but something else which was indexed..i.e a file system or afresco repo etc?
Mike Davis, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 2 Fecha de incorporación: 16/02/10 Mensajes recientes
Is this solr-web-5.2.3.1.war only for Tomcat 6.0.18? I'm trying to deploy to JBoss 5.1 and not having any luck.
thumbnail
Madhu Yadav, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Regular Member Mensajes: 118 Fecha de incorporación: 23/01/09 Mensajes recientes
shouldn't matter..anything different in logs?
Rastislav Papp, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 7 Fecha de incorporación: 11/03/10 Mensajes recientes
hi, I've managed to get the 5.2.3.1 plugin to work, but everytime I start the Liferay server, Solr starts doing this:

......
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=2
11.3.2010 18:26:33 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {delete=[PluginPackageIndexer_PORTLET_liferay/sevencogs-theme/5.2.0.1/war]} 0 0
11.3.2010 18:26:33 org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=0
11.3.2010 18:26:34 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[PluginPackageIndexer_PORTLET_liferay/sevencogs-theme/5.2.0.1/war]} 0 2
11.3.2010 18:26:34 org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=2
11.3.2010 18:26:34 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {delete=[PluginPackageIndexer_PORTLET_liferay/sevencogs-hook/5.2.2.1/war]} 0 0
11.3.2010 18:26:34 org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=0
11.3.2010 18:26:35 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[PluginPackageIndexer_PORTLET_liferay/sevencogs-hook/5.2.2.1/war]} 0 2
11.3.2010 18:26:35 org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=2
11.3.2010 18:26:35 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {delete=[PluginPackageIndexer_PORTLET_liferay/sevencogs-hook/5.2.0.1/war]} 0 0
11.3.2010 18:26:35 org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=javabin&version=2.2} status=0 QTime=0
11.3.2010 18:26:36 org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[PluginPackageIndexer_PORTLET_liferay/sevencogs-hook/5.2.0.1/war]} 0 2
11.3.2010 18:26:36 org.apache.solr.core.SolrCore execute
......

and it goes on and on for like 10 minutes.

Also when it finishes, I'm able to search in the portal using Solr, but for the search string 'a' it throws an exception:

org.apache.solr.common.SolrException: Bad Request

Bad Request

request: http://localhost:8081/solr/select?q=+(+portletId:36) +(() () ())&fl=score&start=0&rows=5&sort=score asc,modified desc&wt=javabin&version=2.2
thumbnail
Madhu Yadav, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Regular Member Mensajes: 118 Fecha de incorporación: 23/01/09 Mensajes recientes
What you see in the logs is that solr is indexing liferay content..
While for the bad request error:
1. what is the output on the screen - search results??
2. is this error only for the string 'a'?
3. a longer stacktrace to this??
Vanita Chawla, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 23 Fecha de incorporación: 25/03/10 Mensajes recientes
Thanks to everyone's help on this post, I have Solr working with 5.2.3 on Tomcat 5.5.

I do get an error when searching for Users with advanced search on screen name and other attributes. I am importing users from LDAP.

Any help is much appreciated.

The stack trace is:
SEVERE: org.apache.solr.common.SolrException: org.apache.lucene.queryParser.ParseException: Cannot parse '+(+portletId:125) +(+screenName:*test*)': '*' or '?' not allowed as first character in WildcardQuery
at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:108)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse '+(+portletId:125) +(+screenName:*test*)': '*' or '?' not allowed as first character in WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:205)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:78)
at org.apache.solr.search.QParser.getQuery(QParser.java:131)
at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89)
... 19 more
thumbnail
Brian Ko, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Junior Member Mensajes: 70 Fecha de incorporación: 11/02/10 Mensajes recientes
I am trying to install solar-web 5.2.3.1 or 5.2.0.1 with Liferay 6.0.1. However, I have method not found error since the unregister method in com.liferay.portal.kernel.search.SearchEngineUtil class (liferay 5.2.3) is not there any more.
Have anyone tried solr with 6.0.1?

Brian Ko
thumbnail
Brian Ko, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Junior Member Mensajes: 70 Fecha de incorporación: 11/02/10 Mensajes recientes
Please disregard my previous posting. I found there is an wiki about that subject. (I was supposed to use solr-web 6.0.1 or 6.1.1)

http://www.liferay.com/community/wiki/-/wiki/Main/Integrate%20Solr%20with%20Liferay%20portal

Brian Ko
Vanita Chawla, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 23 Fecha de incorporación: 25/03/10 Mensajes recientes
I see this issue was already reported below:

http://issues.liferay.com/browse/LPS-3120

Does anyone know which version is this fix in? It is not clear from what I see.

Thanks for all your help!
thumbnail
Brian Ko, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Junior Member Mensajes: 70 Fecha de incorporación: 11/02/10 Mensajes recientes
I found solr 5.2.3 was not working with liferay 6.0.1 as the API was changed on Liferay. When I installed solr-web 6.0.1, it worked. Therefore, I suggest you to try solr-web-5.2.3.1.war. I do not remember the download site, but you can find that version somewhere on the web.

Brian Ko
Vanita Chawla, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 23 Fecha de incorporación: 25/03/10 Mensajes recientes
Thanks Brian. I am using Liferay 5.2.3 with solr-web-5.2.3.1.war and still running into an issue.
Sriram Gopalan, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Junior Member Mensajes: 39 Fecha de incorporación: 13/07/08 Mensajes recientes
I was using 5.2.3 with sol-web had some issues.
Then I took latest of 5.2.x branch, which again broke solr-web. I fixed manually most of them.
Then I found issues with roleIds, with the help of the forum and source of 6.x, I fixed most of them.
What is the issue you are facing ? I have been testing with the above setup and its been working.
I can share my code with you so we can get more feedback and post it back to the community.
Carlos del Castillo, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 21 Fecha de incorporación: 28/08/08 Mensajes recientes
Just wondering if the solr-plugin will be released for 5.2.3 and if you have any timeframe.

Thanks!
Oana Tudorascu, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

New Member Mensajes: 3 Fecha de incorporación: 16/06/09 Mensajes recientes
Hello!

You mentioned that you have managed to deploy the solr-plugin v. 5.2.0.1 successfully in Liferay 5.2.2. I am trying to do the same thing at the moment and I get the following error:

Caused by: java.lang.ClassCastException: java.lang.String
at org.apache.solr.common.util.NamedListCodec.unmarshal(NamedListCodec.java:89)
at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:385)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:97)
at com.liferay.portal.search.solr.SolrIndexWriterImpl.deleteDocument(SolrIndexWriterImpl.java:61)


Do you know what the problem might be?

Thank you!
thumbnail
Denis Signoretto, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
I got the same error and I'm still waiting an looking for a working solution. Did solved the problem?
Which version of Solr are you using?

Thanks,
D.
thumbnail
Wilson Man, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Liferay Master Mensajes: 581 Fecha de incorporación: 21/06/06 Mensajes recientes
you can try getting the latest from SVN under plugins / web
thumbnail
Denis Signoretto, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
Hi wilson I downloaded the current solr web sources from here
http://svn.liferay.com/repos/public/plugins/branches/5.2.x/webs/solr-web/
but at compile I get 3 errors:

com.liferay.portal.search.solr.SolrSearchEngineImpl is not abstract and does not override abstract method unregister(java.lang.String) in com.liferay.portal.kernel.search.SearchEngine

Only implementing these methods the compilation works, but I don't know if an empty impelmentation it's good.

public boolean isRegistered() {
return false;
}

public void register(String string) { }

public void unregister(String string) { }

Also in trunk these methods are missing.

Do you know wich version of Solr is currently supported by 5.2.x plugin?

Thansk,
Denis.
thumbnail
Denis Signoretto, modificado hace 14 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
I'm replying to myself. liferay it's using solr 1.3 since 5.2 version (http://issues.liferay.com/browse/LPS-397). Actually I get solr-web working on Liferay 5.2.3 after downloading solr-web plugin, appliyng differences of http://issues.liferay.com/browse/LPS-2885 (as bruno wrote, and it correspond to 30120 svn version) recompilig and redeploying it.

At the moment users search it's borken due to the issue: http://issues.liferay.com/browse/LPS-3120

Bye!
D.
thumbnail
Sandeep Nair, modificado hace 13 años.

RE: solr-web 5.2.01 does not work with liferay 5.2.3

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
I believe, atleast all the official plugins should have a version for current community version. That way it would be easy.

Regards,
Sandeep