组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
solr-web 5.2.01 does not work with liferay 5.2.3 Tobias Rübner 2009年5月28日 上午7:25
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Tobias Rübner 2009年6月11日 上午3:45
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Bruno Farache 2009年6月11日 上午4:11
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009年7月28日 上午9:51
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Ken Horn 2009年8月17日 下午10:39
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009年8月18日 下午3:23
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009年8月20日 上午6:23
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Anderson Souza 2009年9月2日 下午12:43
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Jonas Yuan 2009年9月2日 下午12:56
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009年9月2日 下午1:16
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Igor Barma 2009年10月13日 上午2:00
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Carlos del Castillo 2009年11月9日 上午9:46
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Darren Govoni 2009年12月15日 下午6:29
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Albert J Carter-Corbin 2009年12月21日 上午9:45
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Tor Iver Wilhelmsen 2010年5月19日 上午11:11
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Darren Govoni 2010年1月10日 上午9:42
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010年2月28日 上午2:21
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010年3月1日 上午4:46
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Mike Davis 2010年3月1日 下午3:22
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010年3月4日 上午9:17
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Rastislav Papp 2010年3月12日 上午1:28
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010年3月16日 下午10:53
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010年5月17日 下午2:37
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010年5月17日 下午4:05
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010年5月17日 下午4:25
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010年5月19日 上午11:02
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010年5月19日 上午11:09
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010年5月19日 上午11:22
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Sriram Gopalan 2010年5月20日 上午12:05
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Carlos del Castillo 2009年11月9日 上午9:37
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Oana Tudorascu 2009年6月17日 上午12:09
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009年7月28日 上午9:53
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Wilson Man 2009年7月28日 上午11:10
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009年7月29日 上午12:15
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009年8月3日 上午6:32
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Sandeep Nair 2010年5月20日 上午12:11
Tobias Rübner
solr-web 5.2.01 does not work with liferay 5.2.3
2009年5月28日 上午7:25
答复

Tobias Rübner

等级: New Member

帖子: 10

加入日期: 2009年1月20日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年6月11日 上午3:45
答复

Tobias Rübner

等级: New Member

帖子: 10

加入日期: 2009年1月20日

最近的帖子

Does no one have the same error?
Bruno Farache
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年6月11日 上午4:11
答复

Bruno Farache

LIFERAY STAFF

等级: Liferay Master

帖子: 586

加入日期: 2007年5月14日

最近的帖子

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.
Oana Tudorascu
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年6月17日 上午12:09
答复

Oana Tudorascu

等级: New Member

帖子: 3

加入日期: 2009年6月16日

最近的帖子

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!
Denis Signoretto
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年7月28日 上午9:51
答复

Denis Signoretto

等级: Expert

帖子: 311

加入日期: 2009年4月21日

最近的帖子

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.
Denis Signoretto
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年7月28日 上午9:53
答复

Denis Signoretto

等级: Expert

帖子: 311

加入日期: 2009年4月21日

最近的帖子

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.
Wilson Man
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年7月28日 上午11:10
答复

Wilson Man

LIFERAY STAFF

等级: Liferay Master

帖子: 580

加入日期: 2006年6月21日

最近的帖子

you can try getting the latest from SVN under plugins / web
Denis Signoretto
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年7月29日 上午12:15
答复

Denis Signoretto

等级: Expert

帖子: 311

加入日期: 2009年4月21日

最近的帖子

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.
Denis Signoretto
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年8月3日 上午6:32
答复

Denis Signoretto

等级: Expert

帖子: 311

加入日期: 2009年4月21日

最近的帖子

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.
Ken Horn
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年8月17日 下午10:39
答复

Ken Horn

等级: New Member

帖子: 4

加入日期: 2009年7月12日

最近的帖子

Hi,

Is the new Solr-Web plugin ready for release?
Thank you.
Camilo Aguilar
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年8月18日 下午3:23
答复

Camilo Aguilar

等级: New Member

帖子: 9

加入日期: 2009年7月20日

最近的帖子

I have the same issue, any updates ?
Camilo Aguilar
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年8月20日 上午6:23
答复

Camilo Aguilar

等级: New Member

帖子: 9

加入日期: 2009年7月20日

最近的帖子

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 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 Root WebApplicationContext: initialization completed in 476 ms
08:20:31,047 ERROR Exception in thread "liferay/search_writer"
08:20:31,047 ERROR java.lang.ExceptionInInitializerError
08:20:31,048 ERROR at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:292)
08:20:31,048 ERROR at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
08:20:31,048 ERROR at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
08:20:31,048 ERROR at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:97)
08:20:31,048 ERROR at com.liferay.portal.search.solr.SolrIndexWriterImpl.deleteDocument(SolrIndexWriterImpl.java:62)
08:20:31,048 ERROR at com.liferay.portal.search.solr.SolrIndexWriterImpl.updateDocument(SolrIndexWriterImpl.java:92)
08:20:31,048 ERROR at com.liferay.portal.search.solr.messaging.SolrWriterMessageListener.doReceive(SolrWriterMessageListener.java:87)
08:20:31,048 ERROR at com.liferay.portal.search.solr.messaging.SolrWriterMessageListener.receive(SolrWriterMessageListener.java:43)
08:20:31,048 ERROR at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70)
08:20:31,048 ERROR at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:54)
08:20:31,048 ERROR at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
08:20:31,048 ERROR at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
08:20:31,048 ERROR at java.lang.Thread.run(Thread.java:619)
08:20:31,048 ERROR 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 at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
08:20:31,048 ERROR at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
08:20:31,048 ERROR at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
08:20:31,048 ERROR at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
08:20:31,048 ERROR at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
08:20:31,048 ERROR at org.apache.commons.httpclient.HttpMethodBase.<clinit>(HttpMethodBase.java:104)
08:20:31,048 ERROR ... 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 ?
Anderson Souza
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年9月2日 下午12:43
答复

Anderson Souza

等级: New Member

帖子: 4

加入日期: 2009年5月9日

最近的帖子

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:

 1
 2<?xml version="1.0" encoding="UTF-8"?>
 3<beans
 4    xmlns="http://www.springframework.org/schema/beans"
 5    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 6    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
 7>
 8    <bean id="solrServer" class="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer">
 9        <constructor-arg type="java.lang.String" value="http://server/solr" />
10    </bean>
11    <bean id="indexSearcher.solr" class="com.liferay.portal.search.solr.SolrIndexSearcherImpl">
12        <property name="solrServer" ref="solrServer" />
13    </bean>
14    <bean id="indexWriter.solr" class="com.liferay.portal.search.solr.SolrIndexWriterImpl">
15        <property name="solrServer" ref="solrServer" />
16    </bean>
17    <bean id="searchEngineUtil" class="com.liferay.portal.search.solr.SolrSearchEngineUtil">
18        <property name="searchEngine">
19            <bean class="com.liferay.portal.search.solr.SolrSearchEngineImpl" init-method="init" destroy-method="destroy">
20                <property name="searcher" ref="indexSearcher.solr" />
21                <property name="writer" ref="indexWriter.solr" />
22            </bean>
23        </property>
24    </bean>
25    <bean id="messageListener.solr_reader" class="com.liferay.portal.search.solr.messaging.SolrReaderMessageListener" />
26    <bean id="messageListener.solr_writer" class="com.liferay.portal.search.solr.messaging.SolrWriterMessageListener" />
27    <bean id="messagingConfigurator" class="com.liferay.portal.kernel.messaging.config.PluginMessagingConfigurator" depends-on="searchEngineUtil" init-method="init" destroy-method="destroy">
28        <property name="messageListeners">
29            <map key-type="java.lang.String" value-type="java.util.List">
30                <entry key="liferay/search_reader">
31                    <list value-type="com.liferay.portal.kernel.messaging.MessageListener">
32                        <ref bean="messageListener.solr_reader" />
33                    </list>
34                </entry>
35                <entry key="liferay/search_writer">
36                    <list value-type="com.liferay.portal.kernel.messaging.MessageListener">
37                        <ref bean="messageListener.solr_writer" />
38                    </list>
39                </entry>
40            </map>
41        </property>
42    </bean>
43</beans>


This worked fine for me.
The eclipse project with obtained code is attached on this post.
附件: solr-web.zip (194.4k)
Jonas Yuan
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年9月2日 下午12:56
答复

Jonas Yuan

等级: Liferay Master

帖子: 993

加入日期: 2007年4月26日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年9月2日 下午1:16
答复

Camilo Aguilar

等级: New Member

帖子: 9

加入日期: 2009年7月20日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年10月13日 上午2:00
答复

Igor Barma

等级: New Member

帖子: 16

加入日期: 2009年9月30日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年11月9日 上午9:37
答复

Carlos del Castillo

等级: New Member

帖子: 21

加入日期: 2008年8月28日

最近的帖子

Just wondering if the solr-plugin will be released for 5.2.3 and if you have any timeframe.

Thanks!
Carlos del Castillo
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年11月9日 上午9:46
答复

Carlos del Castillo

等级: New Member

帖子: 21

加入日期: 2008年8月28日

最近的帖子

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:

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



Any ideas?

Thanks!
Darren Govoni
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年12月15日 下午6:29
答复

Darren Govoni

等级: New Member

帖子: 17

加入日期: 2009年12月9日

最近的帖子

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!!
Albert J Carter-Corbin
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2009年12月21日 上午9:45
答复

Albert J Carter-Corbin

等级: Regular Member

帖子: 123

加入日期: 2006年9月11日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月19日 上午11:11
答复

Tor Iver Wilhelmsen

等级: Junior Member

帖子: 60

加入日期: 2008年12月3日

最近的帖子

1com.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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年1月10日 上午9:42
答复

Darren Govoni

等级: New Member

帖子: 17

加入日期: 2009年12月9日

最近的帖子

Hey guys. Could one of you kind folk mind posting the modified .class or .war for this patch please?

Many thanks!!
Madhu Yadav
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年2月28日 上午2:21
答复

Madhu Yadav

等级: Regular Member

帖子: 118

加入日期: 2009年1月23日

最近的帖子

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
附件: solr-web-5.2.3.1.war (209.5k)
Madhu Yadav
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年3月1日 上午4:46
答复

Madhu Yadav

等级: Regular Member

帖子: 118

加入日期: 2009年1月23日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年3月1日 下午3:22
答复

Mike Davis

等级: New Member

帖子: 2

加入日期: 2010年2月16日

最近的帖子

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.
Madhu Yadav
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年3月4日 上午9:17
答复

Madhu Yadav

等级: Regular Member

帖子: 118

加入日期: 2009年1月23日

最近的帖子

shouldn't matter..anything different in logs?
Rastislav Papp
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年3月12日 上午1:28
答复

Rastislav Papp

等级: New Member

帖子: 7

加入日期: 2010年3月11日

最近的帖子

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
Madhu Yadav
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年3月16日 下午10:53
答复

Madhu Yadav

等级: Regular Member

帖子: 118

加入日期: 2009年1月23日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月17日 下午2:37
答复

Vanita Chawla

等级: New Member

帖子: 19

加入日期: 2010年3月25日

最近的帖子

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
Brian Ko
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月17日 下午4:05
答复

Brian Ko

等级: Junior Member

帖子: 70

加入日期: 2010年2月11日

最近的帖子

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
Brian Ko
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月17日 下午4:25
答复

Brian Ko

等级: Junior Member

帖子: 70

加入日期: 2010年2月11日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月19日 上午11:02
答复

Vanita Chawla

等级: New Member

帖子: 19

加入日期: 2010年3月25日

最近的帖子

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!
Brian Ko
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月19日 上午11:09
答复

Brian Ko

等级: Junior Member

帖子: 70

加入日期: 2010年2月11日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月19日 上午11:22
答复

Vanita Chawla

等级: New Member

帖子: 19

加入日期: 2010年3月25日

最近的帖子

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
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月20日 上午12:05
答复

Sriram Gopalan

等级: Junior Member

帖子: 39

加入日期: 2008年7月13日

最近的帖子

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.
Sandeep Nair
RE: solr-web 5.2.01 does not work with liferay 5.2.3
2010年5月20日 上午12:11
答复

Sandeep Nair

等级: Liferay Legend

帖子: 1721

加入日期: 2008年11月5日

最近的帖子

I believe, atleast all the official plugins should have a version for current community version. That way it would be easy.

Regards,
Sandeep