<?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>Allow document form fields to be viewed by guest user in search result</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122374192" />
  <subtitle>Allow document form fields to be viewed by guest user in search result</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122374192</id>
  <updated>2026-04-05T22:03:15Z</updated>
  <dc:date>2026-04-05T22:03:15Z</dc:date>
  <entry>
    <title>RE: RE: Allow document form fields to be viewed by guest user in search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122400141" />
    <author>
      <name>Tibor Lipusz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122400141</id>
    <updated>2024-02-14T16:49:01Z</updated>
    <published>2024-02-14T16:49:00Z</published>
    <summary type="html">&lt;p&gt;Hi Manukumar,&lt;/p&gt;
&lt;p&gt;Thanks for the additional context. I've linked this request to &lt;a
    href="https://liferay.atlassian.net/browse/LPD-4231"
    rel="noopener noreferrer"
  target="_blank"&gt;https://liferay.atlassian.net/browse/LPD-4231&lt;/a&gt; in
  our backlog for future re-evaulation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tibor&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Tibor Lipusz</dc:creator>
    <dc:date>2024-02-14T16:49:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Allow document form fields to be viewed by guest user in search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122375501" />
    <author>
      <name>Manukumar Tomar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122375501</id>
    <updated>2024-02-02T16:37:20Z</updated>
    <published>2024-02-02T06:53:38Z</published>
    <summary type="html">&lt;p&gt;Hi Tibor,&lt;/p&gt;
&lt;p&gt;I am only trying to customize the frontend of the search result,
  where, I am using search result template to display the fields of
  structured web content but I am not able to do so because the document
  form fields are restricted to admin user only. I tried using the
  blueprints as well, where, I can control what fields to be displayed
  but even then those fields are part of document form fields.&lt;/p&gt;
&lt;p&gt;The custom search result template is not giving me any freedom to
  customize the result display. I would recommend to keep structured
  fields out of document form fields as they are not sensitive
  information either or these fields should be visible to guest user
  (permission based) if we provide what fields to be displayed in search result.&lt;/p&gt;
&lt;p&gt;NOTE: I tried using the collection display and filters as well but
  there are other limitation as the filter parameter name can not be
  customized (currently it is filter_category_&amp;lt;fragmentEntryLinkId&amp;gt;).&lt;/p&gt;</summary>
    <dc:creator>Manukumar Tomar</dc:creator>
    <dc:date>2024-02-02T06:53:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Allow document form fields to be viewed by guest user in search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122374880" />
    <author>
      <name>Tibor Lipusz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122374880</id>
    <updated>2024-02-01T17:08:00Z</updated>
    <published>2024-02-01T17:07:59Z</published>
    <summary type="html">&lt;p&gt;Hello Manukumar,&lt;/p&gt;
&lt;p&gt;The &lt;a
    href="https://learn.liferay.com/w/dxp/using-search/search-pages-and-widgets/search-results/configuring-the-search-results-widget#inspecting-search-engine-documents"
    rel="noopener noreferrer" target="_blank"&gt;restriction &lt;/a&gt;was added
  intentionally as the full index document can include several metadata
  fields that may represent sensitive information about the underlying
  platform and the given deployment. This is the reason why the document
  form display is limited to Instance Administrators.&lt;/p&gt;
&lt;p&gt;If I undertand it properly, you are looking for a way to use the
  Search Results widget similar to a Collection Display Fragment, right?&lt;/p&gt;
&lt;p&gt;Could you share more about your use-case, what fields you would be
  interested in to map, or if you have considered to switch to
  Collections and Collection Filters from Search widgets etc.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tibor&lt;/p&gt;</summary>
    <dc:creator>Tibor Lipusz</dc:creator>
    <dc:date>2024-02-01T17:07:59Z</dc:date>
  </entry>
  <entry>
    <title>Allow document form fields to be viewed by guest user in search result</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122374191" />
    <author>
      <name>Manukumar Tomar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122374191</id>
    <updated>2024-02-01T16:56:56Z</updated>
    <published>2024-02-01T13:33:00Z</published>
    <summary type="html">&lt;p&gt;I am trying to create custom template for search result and since I
  need to display the selective structured web content fields on the
  front-end using the template, I have enable the configuration under
  search result portlet configuration as below.&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="https://liferay-support.zendesk.com/attachments/token/xUqCCc4yunZzxzOHoGwRp7SSg/?name=mceclip0.png"&gt;
&lt;/p&gt;
&lt;p&gt;I am able to get the DocumentFormFieldDisplayContexts for the logged
  in user but for the guest it is &lt;strong&gt;null &lt;/strong&gt;leading to no
  result for guest users.&lt;/p&gt;
&lt;p&gt;I try to dig out if there is any configuration or permission to
  achieve the desired result but no success. Lately, I found that it is
  intended beahvior from Liferay, only admin user can see the document
  form fields.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Expected Result:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;The guest should see the document form fields values same as of admin.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Possible Solution:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;There should be configuration based constraint to see the document
  form fields for the guest user or the search result widget should be
  like collection display where we can map fragments to the document
  fields. I am wondering with use case of creating custom search result
  templates if we can not control how to display and what to display.&lt;/p&gt;</summary>
    <dc:creator>Manukumar Tomar</dc:creator>
    <dc:date>2024-02-01T13:33:00Z</dc:date>
  </entry>
</feed>
