構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
solr-web 5.2.01 does not work with liferay 5.2.3 Tobias Rübner 2009/05/28 7:25
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Tobias Rübner 2009/06/11 3:45
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Bruno Farache 2009/06/11 4:11
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009/07/28 9:51
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Ken Horn 2009/08/17 22:39
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009/08/18 15:23
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009/08/20 6:23
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Anderson Souza 2009/09/02 12:43
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Jonas Yuan 2009/09/02 12:56
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Camilo Aguilar 2009/09/02 13: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/09 9:46
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Darren Govoni 2009/12/15 18: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/05/19 11:11
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Darren Govoni 2010/01/10 9:42
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010/02/28 2:21
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010/03/01 4:46
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Mike Davis 2010/03/01 15:22
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010/03/04 9:17
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Rastislav Papp 2010/03/12 1:28
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Madhu Yadav 2010/03/16 22:53
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010/05/17 14:37
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010/05/17 16:05
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010/05/17 16:25
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010/05/19 11:02
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Brian Ko 2010/05/19 11:09
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Vanita Chawla 2010/05/19 11:22
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Sriram Gopalan 2010/05/20 0:05
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Carlos del Castillo 2009/11/09 9:37
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Oana Tudorascu 2009/06/17 0:09
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009/07/28 9:53
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Wilson Man 2009/07/28 11:10
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009/07/29 0:15
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Denis Signoretto 2009/08/03 6:32
RE: solr-web 5.2.01 does not work with liferay 5.2.3 Sandeep Nair 2010/05/20 0:11
Tobias Rübner
solr-web 5.2.01 does not work with liferay 5.2.3
2009/05/28 7:25
答え

Tobias Rübner

ランク: New Member

投稿: 10

参加年月日: 2009/01/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/06/11 3:45
答え

Tobias Rübner

ランク: New Member

投稿: 10

参加年月日: 2009/01/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/06/11 4:11
答え

Bruno Farache

LIFERAY STAFF

ランク: Liferay Master

投稿: 573

参加年月日: 2007/05/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/06/17 0:09
答え

Oana Tudorascu

ランク: New Member

投稿: 3

参加年月日: 2009/06/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/07/28 9:51
答え

Denis Signoretto

ランク: Expert

投稿: 307

参加年月日: 2009/04/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/07/28 9:53
答え

Denis Signoretto

ランク: Expert

投稿: 307

参加年月日: 2009/04/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/07/28 11:10
答え

Wilson Man

LIFERAY STAFF

ランク: Liferay Master

投稿: 580

参加年月日: 2006/06/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/07/29 0:15
答え

Denis Signoretto

ランク: Expert

投稿: 307

参加年月日: 2009/04/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/08/03 6:32
答え

Denis Signoretto

ランク: Expert

投稿: 307

参加年月日: 2009/04/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/08/17 22:39
答え

Ken Horn

ランク: New Member

投稿: 4

参加年月日: 2009/07/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/08/18 15:23
答え

Camilo Aguilar

ランク: New Member

投稿: 9

参加年月日: 2009/07/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/08/20 6:23
答え

Camilo Aguilar

ランク: New Member

投稿: 9

参加年月日: 2009/07/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/09/02 12:43
答え

Anderson Souza

ランク: New Member

投稿: 4

参加年月日: 2009/05/09

最近の投稿

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/09/02 12:56
答え

Jonas Yuan

ランク: Liferay Master

投稿: 993

参加年月日: 2007/04/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/09/02 13:16
答え

Camilo Aguilar

ランク: New Member

投稿: 9

参加年月日: 2009/07/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/09/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/09 9:37
答え

Carlos del Castillo

ランク: New Member

投稿: 21

参加年月日: 2008/08/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/09 9:46
答え

Carlos del Castillo

ランク: New Member

投稿: 21

参加年月日: 2008/08/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 18:29
答え

Darren Govoni

ランク: New Member

投稿: 17

参加年月日: 2009/12/09

最近の投稿

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/09/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/05/19 11:11
答え

Tor Iver Wilhelmsen

ランク: Junior Member

投稿: 60

参加年月日: 2008/12/03

最近の投稿

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/01/10 9:42
答え

Darren Govoni

ランク: New Member

投稿: 17

参加年月日: 2009/12/09

最近の投稿

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/02/28 2:21
答え

Madhu Yadav

ランク: Regular Member

投稿: 118

参加年月日: 2009/01/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/03/01 4:46
答え

Madhu Yadav

ランク: Regular Member

投稿: 118

参加年月日: 2009/01/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/03/01 15:22
答え

Mike Davis

ランク: New Member

投稿: 2

参加年月日: 2010/02/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/03/04 9:17
答え

Madhu Yadav

ランク: Regular Member

投稿: 118

参加年月日: 2009/01/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/03/12 1:28
答え

Rastislav Papp

ランク: New Member

投稿: 7

参加年月日: 2010/03/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/03/16 22:53
答え

Madhu Yadav

ランク: Regular Member

投稿: 118

参加年月日: 2009/01/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/05/17 14:37
答え

Vanita Chawla

ランク: New Member

投稿: 19

参加年月日: 2010/03/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/05/17 16:05
答え

Brian Ko

ランク: Junior Member

投稿: 70

参加年月日: 2010/02/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/05/17 16:25
答え

Brian Ko

ランク: Junior Member

投稿: 70

参加年月日: 2010/02/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/05/19 11:02
答え

Vanita Chawla

ランク: New Member

投稿: 19

参加年月日: 2010/03/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/05/19 11:09
答え

Brian Ko

ランク: Junior Member

投稿: 70

参加年月日: 2010/02/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/05/19 11:22
答え

Vanita Chawla

ランク: New Member

投稿: 19

参加年月日: 2010/03/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/05/20 0:05
答え

Sriram Gopalan

ランク: Junior Member

投稿: 39

参加年月日: 2008/07/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/05/20 0:11
答え

Sandeep Nair

ランク: Liferay Legend

投稿: 1721

参加年月日: 2008/11/05

最近の投稿

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

Regards,
Sandeep