<?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>sort SearchResultsPortlet results</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120397350" />
  <subtitle>sort SearchResultsPortlet results</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120397350</id>
  <updated>2026-04-04T23:12:23Z</updated>
  <dc:date>2026-04-04T23:12:23Z</dc:date>
  <entry>
    <title>RE: RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120401183" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120401183</id>
    <updated>2020-11-05T07:55:55Z</updated>
    <published>2020-11-05T07:55:55Z</published>
    <summary type="html">&lt;p&gt;Thanks to create the ticket.&lt;/p&gt;
&lt;p&gt;I'll be waiting for the answer of the ticket before of develop other
  diferent solutions.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2020-11-05T07:55:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120399223" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120399223</id>
    <updated>2020-11-04T19:59:04Z</updated>
    <published>2020-11-04T15:54:40Z</published>
    <summary type="html">&lt;p&gt;I've asked these questions internally, and so far, we think you've
  hit a bug in the sort portlet. The first option configured in the Sort
  Portlet (Relevance OOTB) should probably be applied on page load, so
  switching the order to use created as the first option should be all
  you need to do. However, as you and I have both observed, it's not
  working as expected.&lt;/p&gt;
&lt;p&gt;I've filed a ticket here: &lt;a href="https://issues.liferay.com/browse/LPS-123103"&gt;https://issues.liferay.com/browse/LPS-123103&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-04T15:54:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397575" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397575</id>
    <updated>2020-11-03T17:18:36Z</updated>
    <published>2020-11-03T15:26:27Z</published>
    <summary type="html">&lt;p&gt;Yeah, I see what you mean. I expected that if we put the created
  option at the top of the sort configuration, it would be applied on
  page load. But it's not. I'm going to check two things:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Is it expected that the first option in the sort widget should be
    applied by default?&lt;/li&gt;
  &lt;li&gt;Is there another way to enforce the default sort order in the
    results widget?&lt;/li&gt;&lt;/ol&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-03T15:26:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397556" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397556</id>
    <updated>2020-11-03T15:00:32Z</updated>
    <published>2020-11-03T15:00:32Z</published>
    <summary type="html">&lt;p&gt;The Sort Portlet works properly when I select the create option in
  the select but, what i need, its to show the results sorted by created
  Date when the page is loaded, in the first view without clicking anything.&lt;/p&gt;
&lt;p&gt;The results have to be showed by createDate- by default&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2020-11-03T15:00:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397547" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397547</id>
    <updated>2020-11-03T14:54:00Z</updated>
    <published>2020-11-03T14:54:00Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;p&gt;When I use the sort Portlet, the URL result is something like
    ...&amp;amp;sort=createDate%2B, I need to create something like that
    using the custom Filter i guess&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Is there a reason you're not using the Sort Portlet?&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-03T14:54:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397496" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397496</id>
    <updated>2020-11-03T14:06:17Z</updated>
    <published>2020-11-03T14:06:17Z</published>
    <summary type="html">&lt;p&gt;Ahh shoot, you are trying to sort not filter. I shou;dn't have
  replied before having any coffee :(&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;So sorry to send you down the wrong path, let me look into it a bit more.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-03T14:06:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397445" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397445</id>
    <updated>2020-11-03T13:26:09Z</updated>
    <published>2020-11-03T13:26:09Z</published>
    <summary type="html">&lt;p&gt;Thanks for your quick response.&lt;/p&gt;
&lt;p&gt;I'm trying to make the filter by createDate, but I can't achieve yet,
  any suggestion?&lt;/p&gt;
&lt;p&gt;When I use the sort Portlet, the URL result is something like
  ...&amp;amp;sort=createDate%2B, I need to create something like that using
  the custom Filter i guess&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2020-11-03T13:26:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397408" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397408</id>
    <updated>2020-11-03T12:57:00Z</updated>
    <published>2020-11-03T12:57:00Z</published>
    <summary type="html">&lt;p&gt;Great, then you can use the Cusomt Filter widget. It's a bit hard to
  see but there's a hyperlink to the docs in my last post. Here it is
  again, less disguised:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://learn.liferay.com/dxp/7.x/en/using-search/search-pages-and-widgets/search-results/filtering-search-results.html"&gt;https://learn.liferay.com/dxp/7.x/en/using-search/search-pages-and-widgets/search-results/filtering-search-results.html&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-03T12:57:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397393" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397393</id>
    <updated>2020-11-03T12:43:14Z</updated>
    <published>2020-11-03T12:43:14Z</published>
    <summary type="html">&lt;p&gt;Sorry I forgot to write the version...-&lt;/p&gt;
&lt;p&gt;I'm using a Liferay 7.2 version with dxp-8-7210 patching level.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2020-11-03T12:43:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397385" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397385</id>
    <updated>2020-11-03T12:41:02Z</updated>
    <published>2020-11-03T12:41:02Z</published>
    <summary type="html">&lt;p&gt;I didn't  see what Liferay version you're using, but on 7.2 and 7.3
  you can do this with the Custom Filter widget.&lt;/p&gt;
&lt;p&gt;See &lt;a
    href="https://learn.liferay.com/dxp/7.x/en/using-search/search-pages-and-widgets/search-results/filtering-search-results.html"&gt;Filtering
    Search Results&lt;/a&gt; for more details, and let us know if you run into
  any issues.&lt;a href="https://learn.liferay.com/dxp/7.x/en/using-search/search-pages-and-widgets/search-results/filtering-search-results.html"&gt;&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2020-11-03T12:41:02Z</dc:date>
  </entry>
  <entry>
    <title>sort SearchResultsPortlet results</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397349" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397349</id>
    <updated>2020-11-04T17:37:11Z</updated>
    <published>2020-11-03T11:57:42Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I need to show the results of a search by createdDate.&lt;/p&gt;
&lt;p&gt;I'm not sure how the SearchResultsPortlet is sortering the results,
  but it is not by createdDate. I've tried to change this sort by
  configuration of searchResultsPortlet or SearchOptionsPortlet by none
  of these portlets causes the results to be displayed by createdDate.&lt;/p&gt;
&lt;p&gt;I've created a new Facet to do this requiriment but what I need is to
  directly show the results sortered and not after clicking in the facet.&lt;/p&gt;
&lt;p&gt;How can I achieve this requirement?&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;/p&gt;
&lt;p&gt;Iñigo&lt;/p&gt;</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2020-11-03T11:57:42Z</dc:date>
  </entry>
</feed>
