<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Logging searched keywords in 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111208614" />
  <subtitle>Logging searched keywords in 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111208614</id>
  <updated>2026-04-05T09:13:50Z</updated>
  <dc:date>2026-04-05T09:13:50Z</dc:date>
  <entry>
    <title>Logging searched keywords in 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111208613" />
    <author>
      <name>Jan Tošovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111208613</id>
    <updated>2018-10-15T13:20:01Z</updated>
    <published>2018-10-15T13:20:01Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;My goal is to log all the searched keywords for long-term goal to
  have a better coverage of these topics in our documentation.&lt;/p&gt;
&lt;p&gt;In LR 6.2 I had a custom hook for&amp;nbsp; &lt;code&gt;/search/validate&lt;/code&gt;
  struts path extending the &lt;code&gt;BaseStrutsAction&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;
public class SearchKeywordsAction extends BaseStrutsAction {

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {

        String keywords = ParamUtil.get(request, "keywords", "");
        String namespace = ParamUtil.get(request, "namespace", "");

        ...
        return "";
    }
}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to migrate this into 7.1, but the search seems to be
  completely rewritten.&amp;nbsp; I'd like to put my customization to some low
  level method which is executed for any search request to avoid
  repeating this code for any portlet with the search field.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Jan Tošovský</dc:creator>
    <dc:date>2018-10-15T13:20:01Z</dc:date>
  </entry>
</feed>
