Foros de discusión

Configure search embedded in theme?

Peter Aarum, modificado hace 10 años.

Configure search embedded in theme?

New Member Mensajes: 9 Fecha de incorporación: 2/11/12 Mensajes recientes
Hi all!

I need to only return blogentries and webcontent.

I have set the following in portal-ext.properties
com.liferay.portlet.blogs.util.BlogsOpenSearchImpl=true
com.liferay.portlet.bookmarks.util.BookmarksOpenSearchImpl=false
com.liferay.portlet.calendar.util.CalendarOpenSearchImpl=false
com.liferay.portlet.directory.util.DirectoryOpenSearchImpl=false
com.liferay.portlet.documentlibrary.util.DLOpenSearchImpl=false
com.liferay.portlet.journal.util.JournalOpenSearchImpl=true
com.liferay.portlet.messageboards.util.MBOpenSearchImpl=false
com.liferay.portlet.wiki.util.WikiOpenSearchImpl=false

...but I still get result with images.

I can get this working by selecting advanced in configuration and removing all values except:
"com.liferay.portlet.blogs.model.BlogsEntry",
"com.liferay.portlet.journal.model.JournalArticle"

Is it true I have to configure this on every page?

BR
Peter
thumbnail
Rahul Pande, modificado hace 10 años.

RE: Configure search embedded in theme?

Expert Mensajes: 310 Fecha de incorporación: 7/07/10 Mensajes recientes
Hi Peter,

If your Liferay version is 6.1 then Faceted Search method is used as default for searching the content. You can configure it in configuration of search portlet. The setting that you have specified are used to enable / disable search using Open Search method. You can configure search portlet to user open search method.


HTH
Rahul Pande
Peter Aarum, modificado hace 10 años.

RE: Configure search embedded in theme?

New Member Mensajes: 9 Fecha de incorporación: 2/11/12 Mensajes recientes
Hi Rahul!

Thanks for your reply! emoticon

Maybe my question was unclear so I try to describe it better.

I have search embedded in theme so it ends up on every page. I can get this working on one page by advanced setting and removing all but blogentry and journalcontent. But when I navigate to another page the search portlet has its own configuration so its daufault settings are used.

So my question is:
Is there a way to configure the search globaly?

BR
Peter
thumbnail
Jignesh Vachhani, modificado hace 10 años.

RE: Configure search embedded in theme?

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
Peter,
You can create a hook and override your custom logic for search portlet as search portlet coming out with OOB with liferay.
Mike Perico, modificado hace 10 años.

RE: Configure search embedded in theme?

Junior Member Mensajes: 25 Fecha de incorporación: 23/08/12 Mensajes recientes
Rahul Pande:
Hi Peter,

You can configure it in configuration of search portlet.

HTH
Rahul Pande


Can you expand on this?