Liferay搜索结果 [英] Liferay search results

查看:72
本文介绍了Liferay搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在参与使用Liferay(6.1 GA2)的项目. Liferay搜索结果似乎提供了指向Web内容片段的链接,而不是包含这些内容的页面的链接.

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?

感谢很多朋友.

最佳,阿尔贝托

推荐答案

与任何页面上实际显示的内容相比,后端中包含的内容要多得多.此外,您可以一次在多个页面上显示任何文章.

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.

解决此问题的一种方法是在"Web Content Search" Portlet中指定您仅对实际发布的内容感兴趣.但是,这不能解决您的第二个问题:内容仍然可以在许多不同的页面上发布.

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.

每个内容都可以有一个显示页面"-此类显示页面的设置已在UI中进行了详细说明(请参阅Web内容编辑器),因此您实际上将看到包含搜索结果的正确页面.

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.

这篇关于Liferay搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆