Liferay search results

走远了吗. 提交于 2019-12-11 06:06:15

问题


I am currently involved in project where we are using Liferay (6.1 GA2). It seems that Liferay search results provide links to Web Content Fragments instead of to the pages containing them.

Have any of you gone through this issue? Do you know how to solve it?

Thanks a lot pals.

Best, Alberto


回答1:


You can have a lot more content in the backend than actually displayed on any page. Further, you can display any article on multiple pages at once.

A way to work around this is to specify in the "Web Content Search" portlet that you're only interested in content that is actually published. However, this does not solve your second problem: The content can still be published on many different pages.

Every content can have a "Display Page" - the setup of such a display page is well explained in the UI (see the Web Content Editor) so that you'll actually see a proper page with the search results.

If you actually want to search for pages only instead of content (you might miss out on some metadata), I'd recommend to go with some spider solution that spiders your website, indexes the pages independent of their construction elements (articles) and search that external index.



来源:https://stackoverflow.com/questions/17729666/liferay-search-results

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!