Foren

problem in search while Migration of liferay from 5.1 to 5.2

vikas suresh thakre, geändert vor 14 Jahren.

problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
i have migrated liferay from 5.1 to 5.2. It is pointing to the old database. actually I didn't find the standred way to migrate it to the higher version.SO i just remove the following folders from liferay-portal-5.2.2.
1>sevencogs-hook.
2>sevencogs-theme.
3>wol-portlet.
and manually run the database commands from update-5.1.2-5.2.0.sql.than start the server.
it is running successfully.but it's search functionallity is not working in any of these portlet(enterprise search,wiki,blogs,forums).
i have tried to reindex the search indexes from server administration,but it is going in loop. I have also attached the log file for the refrence. following exception is comming

04:49:59,468 ERROR [LuceneIndexer:158] Error encountered while reindexing
com.liferay.portal.kernel.search.SearchException: com.liferay.portal.kernel.dao.orm.ORMException: could not execute query
at com.liferay.portlet.journal.util.Indexer.reIndex(Indexer.java:195)
at com.liferay.portal.search.lucene.LuceneIndexer.reIndex(LuceneIndexer.java:142)
at com.liferay.portal.search.lucene.LuceneIndexer.run(LuceneIndexer.java:62)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.liferay.portal.kernel.dao.orm.ORMException: could not execute query
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:41)
at com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:102)
at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:69)
at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:61)
at com.liferay.portlet.tags.service.persistence.TagsEntryFinderImpl.findByA_F(TagsEntryFinderImpl.java:208)
at com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl.getAssetEntries(TagsEntryLocalServiceImpl.java:291)
at com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl.getEntries(TagsEntryLocalServiceImpl.java:337)
at com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl.getEntries(TagsEntryLocalServiceImpl.java:324)
at com.liferay.portlet.tags.service.impl.TagsEntryLocalServiceImpl.getEntryNames(TagsEntryLocalServiceImpl.java:433)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy220.getEntryNames(Unknown Source)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.reIndex(JournalArticleLocalServiceImpl.java:1566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.liferay.portal.mirage.aop.JournalArticleLocalServiceAdvice.doInvoke(JournalArticleLocalServiceAdvice.java:133)
at com.liferay.portal.mirage.aop.BaseMirageAdvice.invoke(BaseMirageAdvice.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy241.reIndex(Unknown Source)
at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.reIndex(JournalArticleLocalServiceUtil.java:712)
at com.liferay.portlet.journal.util.Indexer.reIndex(Indexer.java:192)
... 3 more


Appreciate your help.
thumbnail
Amos Fong, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
Hi Vikas,

It seems the tags_vocabulary table did not get created during the upgrade. You shouldn't run the update.sql scripts manually because they will be run by the upgrade process.

I would recommend to reload your 5.1 database and try to upgrade again, this time without running the upgrade script manually.
vikas suresh thakre, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
Hi Amos,
Tks for ur help. I have tried what u have told. this time old data is safe. it was not deleted but still i am facing the search problem. The search functionality is not working in any of the portlet.
i have tried to reindex through server -> server administration tag. but it is throwing an exception shown bellow. i have also attached a log file for your information,which is having logs after i start liferay 5.2 with same database of liferay 5.1.

appreciate your help here



06:47:12,968 ERROR [SearchPermissionCheckerImpl:84] com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 11906
com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 11906
at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:293)
at sun.reflect.GeneratedMethodAccessor394.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy15.findByPrimaryKey(Unknown Source)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:417)
at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy125.getGroup(Unknown Source)
at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:84)
at com.liferay.portal.search.SearchPermissionCheckerImpl.doAddPermissionFields(SearchPermissionCheckerImpl.java:125)
at com.liferay.portal.search.SearchPermissionCheckerImpl.addPermissionFields(SearchPermissionCheckerImpl.java:77)
at com.liferay.portal.kernel.search.SearchEngineUtil.updateDocument(SearchEngineUtil.java:145)
at com.liferay.portlet.wiki.util.Indexer.updatePage(Indexer.java:153)
at com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl.reIndex(WikiNodeLocalServiceImpl.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy252.reIndex(Unknown Source)
at com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil.reIndex(WikiNodeLocalServiceUtil.java:218)
at com.liferay.portlet.wiki.util.Indexer.reIndex(Indexer.java:195)
at com.liferay.portlet.admin.action.EditServerAction.reIndex(EditServerAction.java:191)
at com.liferay.portlet.admin.action.EditServerAction.processAction(EditServerAction.java:112)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:180)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:197)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:98)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:57)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:630)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:662)
at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:357)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:595)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:423)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:417)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:244)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:188)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
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)
thumbnail
Amos Fong, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
Hm... did you also copy your portal-ext.properties to you liferay 5.2?

Specifically this property defines where the lucene indexes are stored, if it's not pointing the right folder, then it may be finding indexes from a different liferay index.

resource.repositories.root=

Otherwise there may be some wikinodes that have groups that do not exist. You can find out by doing a simple select:

select * from wikinode where groupId not in (select groupid from group_);
vikas suresh thakre, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
Hi Amos,
i have exicuted the query,but the result is empty. It means it is not having entry for that wikinode in group_ table. is it ok if i do it manually? but there are some entries whose value i am getting like (classpk,friendlyURL,tupe_).
also there is another problem Amos, my document library is not working. it is not showing me the documents. i have copied the jackrabbit folder from ..\liferay\deploy to ..liferay-portal-5.2.2\data. but it is showing only the folder name not the actual documents.

thanks for the help Amos.
thumbnail
Amos Fong, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
vikas suresh thakre:

i have exicuted the query,but the result is empty.


If you executed this exact query and it came up empty:

select * from wikinode where groupId NOT IN (select groupid from group_);

Then that means your data is fine. Did you copy your portal-ext properties over from your 5.1 to 5.2? You can also try deleting the lucene folder and then reindex.



also there is another problem Amos, my document library is not working. it is not showing me the documents. i have copied the jackrabbit folder from ..\liferay\deploy to ..liferay-portal-5.2.2\data. but it is showing only the folder name not the actual documents.


This is a known issue and can be resolved by configuring your document library portlet and readding the display columns.
vikas suresh thakre, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
I haven't do much of things in portal-ext properties, only the following elements i have set in that

index.on.startup=true
velocity.engine.resource.manager.cache.enabled=false
layout.template.cache.enabled=false
dl.file.extensions=*
so, i think it will not affect much on idexes....but it works when i added one entry in group_ with groupid = 11906 which is missing.

Amos, even if i add a new document in the newly created folder than it shows me the no of doc in that folder. but when i click on that folder it is not showing me the documents in side that.
it is really helpfull if u tell me what confg i have to do in that document library portlet.
thumbnail
Amos Fong, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
on the document library portlet, click the configuration icon in the top right of it. There you will see some options about displaying columns. You should notice that all the columns have been removed for files. Add all the columns back and you should be able to see your files again.
vikas suresh thakre, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
Thank you very much Amos it works.... now I can able to see the documents.one gone another comes. now the problem is when i click on any document it is showing me the bellow error.

The requested resource was not found.

http://10.76.169.246:9090/c/document_library/get_file?p_l_id=10126&folderId=44701&name=DLFE-6902.png

any idea about this.

i am also updating liferay 5.2 theme through velocity file. there i want to place all the organization on the navigation bar. I have made some changes in the navigation.vm file but encounter some problem. for that i have started another thread.

https://www.liferay.com/web/guest/community/forums/-/message_boards/message/3394715

if u know about velocity file than your suggestion will really helpfull to me.
thumbnail
Amos Fong, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
I am not sure about upgrading themes. This wiki might be helpful. http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Upgrade%20Instructions%20from%205.1%20to%205.2

Also in the wiki, look for the legacy properties, specifically you'll need this for document library:

dl.hook.impl=com.liferay.documentlibrary.util.JCRHook
vikas suresh thakre, geändert vor 14 Jahren.

RE: problem in search while Migration of liferay from 5.1 to 5.2

Junior Member Beiträge: 97 Beitrittsdatum: 18.05.09 Neueste Beiträge
Thanks For the great help Amos. this wiki is really helpfull for the upgration purpose.