<?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>RE: Make Custom Entity Asset</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114390592" />
  <subtitle>RE: Make Custom Entity Asset</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114390592</id>
  <updated>2026-04-05T01:41:42Z</updated>
  <dc:date>2026-04-05T01:41:42Z</dc:date>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114748704" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114748704</id>
    <updated>2019-08-13T13:06:06Z</updated>
    <published>2019-08-13T13:06:06Z</published>
    <summary type="html">EW. .. just kidding &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;. I get it, sometimes you have to do what you have to do to get it done and keep the wolves at bay. With that said, if you have a have a technical debt backlog item for this and want to continue to troubleshoot to figure out what the missing piece was, so that one day you can swap out the temporary fix for the better solution, I&amp;#39;m happy to continue to troubleshoot it with you. </summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-13T13:06:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114745201" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114745201</id>
    <updated>2019-08-13T07:19:05Z</updated>
    <published>2019-08-13T07:19:05Z</published>
    <summary type="html">Sorry for the late answer. We finally used the indexer directly in the jsp without using Assets. We had to finish it fast ^^ Thanks for your help anyway ! </summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-13T07:19:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114637640" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114637640</id>
    <updated>2019-08-07T11:14:36Z</updated>
    <published>2019-08-07T11:14:36Z</published>
    <summary type="html">Hey Dorian, &lt;br /&gt;&lt;br /&gt;I get it -- and we have all been there I&amp;#39;m sure, and not just with Liferay of course. I am sure that we can find an answer and I am equally sure that when we do find the answer it will be an &amp;#34;OMG! Are  you kidding me?!&amp;#34; moment &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;Ok, last resort, if you are willing to package up the code in a zip and share it with me, then I am happy to build and deploy on my side to troubleshoot a little more effectively. If you don&amp;#39;t really want to attach the source here to the message thread (which I understand) maybe you can ping me on slack and we can troubleshoot there -- and report back here when we find the answer.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-07T11:14:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114632119" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114632119</id>
    <updated>2019-08-07T08:25:36Z</updated>
    <published>2019-08-07T08:25:36Z</published>
    <summary type="html">Well i tried what you said me and ... Still the same stuff ^^ It&amp;#39;s terribly frustrating, when i do scr:info i got my AssetRendererFactory detected as active and working fine. I trie to do some fix i found on other topic in that forum but it&amp;#39;s having no effects ! </summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-07T08:25:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114622130" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114622130</id>
    <updated>2019-08-06T11:27:57Z</updated>
    <published>2019-08-06T11:27:57Z</published>
    <summary type="html">Alright, progress! &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;I wish I could remember what I did to solve this problem when I had it, but it was about a year and a half ago and I can barely remember what I had for dinner last night, sooooo. I&amp;#39;m going to check with a former coworker of mine shortly to see if she remembers what it was. In the mean time can you do the usual stuff of checking to make sure you factory service is resolved and active in the Gogo shell? &lt;br /&gt;&lt;br /&gt;scr:info agiir.bd.serviceBuilder.assets.PetitesAnnoncesAssetRendererFactory&lt;br /&gt;&lt;br /&gt;.. it&amp;#39;s probably fine, but just to eliminate another possibility. And one more thing to try while you are waiting for me to ask my former co-worker, can you change the getJspPath method implementation in the asset renderer class to use &lt;br /&gt;&lt;br /&gt;    public String getJspPath(HttpServletRequest request, String template)&lt;br /&gt;    {&lt;br /&gt;        return &amp;#34;/asset/summary.jsp&amp;#34;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;which I believe will use the &amp;#34;summary.jsp&amp;#34; from the asset renderer portlet that Liferay ships with.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-06T11:27:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114619821" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114619821</id>
    <updated>2019-08-06T09:18:23Z</updated>
    <published>2019-08-06T09:18:23Z</published>
    <summary type="html">I think that&amp;#39;s where it&amp;#39;s coming from. I will send u my two renderer class. Unfortunatly i have no error ! on the asset publisher portlet and on the search portlet no error. The renderer breakpoints don&amp;#39;t hit either, the constructor only hit when i start my serveur.</summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-06T09:18:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114605160" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114605160</id>
    <updated>2019-08-05T15:25:27Z</updated>
    <published>2019-08-05T15:25:27Z</published>
    <summary type="html">Ok, in that case I would focus my attention on the asset renderer. Two questions.&lt;br /&gt;&lt;br /&gt;1. Are there any errors in the log? (I do recall having this issue and I think it was silently gobbled up, but I can&amp;#39;t say for sure)&lt;br /&gt;&lt;br /&gt;2. If you set a breakpoint in your asset renderer.. does it hit?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-05T15:25:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114604799" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114604799</id>
    <updated>2019-08-05T15:08:44Z</updated>
    <published>2019-08-05T15:08:44Z</published>
    <summary type="html">In the asset Publisher I can select the PetitesAnnonces entity, but i can&amp;#39;t see any item in the portlet. Attachments again ^^ On the assetPublisher portlet you can see the portlet on the right with two entities, and the asset on the left.</summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-05T15:08:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114610645" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114610645</id>
    <updated>2019-08-05T14:29:25Z</updated>
    <published>2019-08-05T14:29:25Z</published>
    <summary type="html">Ok, yeah, that is the new one. That&amp;#39;s good to know -- makes testing a little more relevant (since I can make sure to try with the same one haha). &lt;br /&gt;&lt;br /&gt;What about the asset publisher? Does it render your custom items? I ask because I have seen occasion in the past where the search was actually returning items (hence the facet count you are seeing) BUT, the Asset Renderer was not working and so the result was not rendering.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-05T14:29:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114610289" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114610289</id>
    <updated>2019-08-05T12:59:36Z</updated>
    <published>2019-08-05T12:59:36Z</published>
    <summary type="html">I m using the default one, i will show u a screenshot of what i get</summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-05T12:59:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114609602" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114609602</id>
    <updated>2019-08-05T12:05:24Z</updated>
    <published>2019-08-05T12:05:24Z</published>
    <summary type="html">Great -- and just one more clarification. Starting in 7.1, there were actually two different search portlet options. There was the &amp;#34;legacy one&amp;#34; for lack of a better name which, whne added to a page, was one portlet that had the results, the facets, etc. There is also a &amp;#34;new set of search portlets&amp;#34; that allows you to add individual facets, results, search bar, etc. &lt;br /&gt;&lt;br /&gt;I am assuming you are using the new one, but just wanted to double check. Is my assumption correct?&lt;br /&gt;&lt;br /&gt;EDIT: Another question. You mentioned that you created the Asset Renderer for this custom entity as well right? When you add an AssetPublisher widget to a page and configure it to show your custom asset, do the entries show up?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-05T12:05:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114603132" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114603132</id>
    <updated>2019-08-05T08:31:58Z</updated>
    <published>2019-08-05T08:31:58Z</published>
    <summary type="html">Hey thanks for your answer !&lt;br /&gt;&lt;br /&gt;I m running on Liferay CE 7.1.1-ga2, using a Service Builder and React portlets. I will try what you said, I add my indexer as attachment.</summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-05T08:31:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579732" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579732</id>
    <updated>2019-08-02T14:03:59Z</updated>
    <published>2019-08-02T14:03:59Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Dorian,&lt;br&gt;&lt;br&gt;I speak French, so you could try to explain it in French if you think that will help. I will warn you though that I don't get to use my French very much these days so my replies might be a little bit like your English. Maybe you can write to me in French and I can write to you in English haha &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif"&gt;&lt;br&gt;&lt;br&gt;Ok -- it certainly sounds like everything you have is correct. I mean, the AssetFactory, the Renderer and the fact that you have a facet in your search rights showing up with a count for your type means that if much be found. You're referencing the&amp;nbsp;&lt;strong&gt;7.0 Documentation&lt;/strong&gt;&amp;nbsp;.. so I just want to clarify something. You are dusing&amp;nbsp;&lt;strong&gt;a Liferay 7.0 installation, but can you clarify specifically which version?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;The next thing I would try would be to remove the search portlet from the equation and try with a custom query. If you create a new MVC Portlet, then in the render method you can try to use something like this --&lt;br&gt;&lt;pre&gt;&lt;code&gt;long companyId = _portal.getCompanyId(portletRequest);
long groupId = _portal.getScopeGroupId(portletRequest);

// build the basic object

HttpServletRequest request = _portal.getHttpServletRequest(portletRequest);
HttpServletRequest originalRequest = _portal.getOriginalServletRequest(request);

SearchContext searchContext = SearchContextFactory.getInstance(request);
searchContext.setEntryClassNames(new String[]{Ads.class.getName()});
searchContext.setStart(0);
searchContext.setEnd(10);

Indexer indexer = IndexerRegistryUtil.nullSafeIndexer(Ads.class.getName());
Hits hits = indexer.search(searchContext);
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Or something close to that -- I'm going a bit from memory here. If you then set a breakpoint after the last line above, then you you can inspect the Hits and the SearchContext objects to understand what is being passed to elastic. Just make sure, in your portlet class, to inject a service for the Portal .. or change the references above (_portal) to use PortalUtil instead.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;@Reference
private Portal _portal;
&lt;/code&gt;&lt;/pre&gt;.. also, are you able to share the code for your indexer class with us?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-02T14:03:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579341" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579341</id>
    <updated>2019-08-02T13:23:13Z</updated>
    <published>2019-08-02T13:23:13Z</published>
    <summary type="html">Sorry for the very late answer but i ve been making my brain over work on that problem ... ;) &lt;br /&gt;&lt;br /&gt;So yes it definitly make sense ! but i guess that&amp;#39;s not what i meaned in my question (My english is surely bad i m French &lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt; ), i have the entity in asset Entry and my search portlet is finding it. Let me explain you : &lt;br /&gt;&lt;br /&gt;Let&amp;#39;s take an Ads entity. I create my ad throx my portlet, my elasticsearc hindex it correctly and the assetEntity Table is updated. Until there everything look fine. But when i instanciate an AssetPublisher portlet, i can&amp;#39;t see my entity, so i decided to filter in the configuration. I seletco only my custom Ads entity (yes it appear in the configuration).I got a &amp;#34;No values found&amp;#34; in the AssetPublisher Portlet. &lt;br /&gt;&lt;br /&gt;You wil lsay, &amp;#34;Your entity is just not indexed correctly or not seted up as an asset follow the docs&amp;#34; wich would be totaly correct. But there it start to get weird. If i write the name of my Ads i just created in  the global search, i will see Ads (1) in the Typpe select on the right, and other normal searchable Stuffs, but still thet &amp;#34;No Values found&amp;#34; in the result. &lt;br /&gt;&lt;br /&gt;I have no error, i have setted up a render and rendereFactory for my both entities. I also created a JSP, i trieds to follow the old 6.2 tutorial too with the EntityAsset working with my custo mentity asset. Nothing is working ! To be honest i can&amp;#39;t find any clue of where is the rerror coming from ... </summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-08-02T13:23:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114434987" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114434987</id>
    <updated>2019-07-25T13:58:35Z</updated>
    <published>2019-07-25T13:58:35Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Let's shed a little light for you on CLASS_NAME and CLASS_NAME_ID and CLASS_PK. This is an important pattern in Liferay to understand as you work with the product because it is used extensively, and once you get a handle on it, it allows you to start wiring in a lot of the out of the box features into your custom features.&amp;nbsp;&lt;br&gt;&lt;br&gt;First things first, since you have a service builder project and you have generated some custom entities, go to your database and do a SELECT * on the ClassName_ table. &lt;br&gt;&lt;br&gt;You'll find many familiar references in here, along with the custom stuff that you have added. So basically, when you use Service Builder to generate your entity and deploy your module, one of the many things that happens is you get an entry in this table. So what is it used for?&lt;br&gt;&lt;br&gt;Truthfully, I have always struggled to explain this -- I understand it, just finding the right words seems to be a challenge. The best way I have come up with to date is that the ClassName, ClassNameId and ClassPK are ways to "genericize" references. The AssetEntry is a great example, but there are many more -- Ratings, Subscriptions, etc. The challenge is, how do you data model something like a Rating (which is generic) but then associate it to something specific, like a Message Board Post vs. a Blog Post. Well, in Liferay, we do this with the ClassName, ClassNameId, ClassPK stuff.I'm just going to make numbers up here to illustrate the point. Let's say in your ClassName_ table you have the following.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Class Name&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Class Name Id
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;com.liferay...JournalArticle&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;21005
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;com.liferay...BlogEntry&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;22004
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;com.abc...Player&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;24500
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Where the first two rows are of course out of the box entries, and the last one is a reference to your custom entity. Let's assume that you have a Player table with the following --&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Player ID&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;Name&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Position&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Age&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;Retired
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;21345&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; John Snow&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; CF&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;22&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; False
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;98432&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Chris Jade&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;RD&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; 20&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; False
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Now, if you use the Liferay pattern then that means you can identify John Snow, as &lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;className=com.abc...Player
classNameId=24500classPK=21345
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;... so in your code you can identify the model and the specific data record by combining the class name and the PK from the player table. So, if you wrote a portlet that rendered player details for example, and then you added the option to be able to "rate a player" you don't have to write all that plumbing to manage ratings yourself. You can use Liferay's Ratings API and services to record ratings for Player, John Snow, in the Ratings tables and then you can use the Ratings taglibs to render them in your portlet. AND! like I mentioned above, this pattern can repeat itself for other features like comments, subscriptions, asset entries etc.&amp;nbsp; So it's a way to genericize meta data about your entity but store it in a central table so that you don't end up with a Ratings_Blogs table and a Ratings_Journal_Article table and a Ratings_Player table etc.&amp;nbsp;&lt;br&gt;Make sense?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-25T13:58:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114432907" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114432907</id>
    <updated>2019-07-25T10:37:06Z</updated>
    <published>2019-07-25T10:37:06Z</published>
    <summary type="html">You can refer Journal Indexer and see are you missing soemthing​​​​​​​&lt;br /&gt;​​​​​​​&lt;a href="https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/internal/search/JournalArticleIndexer.java"&gt;https://github.com/liferay/liferay-portal/blob/7.1.x/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/internal/search/JournalArticleIndexer.java&lt;/a&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-07-25T10:37:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114431832" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114431832</id>
    <updated>2019-07-25T08:21:02Z</updated>
    <published>2019-07-25T08:21:02Z</published>
    <summary type="html">That&amp;#39;s my biggest problem ... I don&amp;#39;t have any logs even if i put some in the fonctions. The only logs appearing is when i deploy in the assetrendererfactory in the constructor method. I also don&amp;#39;t have any error  warning or exception. What do you mean by Field.CLASS_NAME_ID ? </summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-07-25T08:21:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114430481" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114430481</id>
    <updated>2019-07-25T07:31:28Z</updated>
    <published>2019-07-25T07:31:28Z</published>
    <summary type="html">Also check have u added Field.CLASS_NAME_ID,and Field.CLASS_NAME_ID to your  document.add();</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-07-25T07:31:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114430131" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114430131</id>
    <updated>2019-07-25T07:20:17Z</updated>
    <published>2019-07-25T07:20:17Z</published>
    <summary type="html">Check  whether your asset renderer is getting called by adding log in your gettitle() or getjsppath ()  or any exception your getting  while rendering your custom asset</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-07-25T07:20:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Make Custom Entity Asset</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114429796" />
    <author>
      <name>Dorian Penot</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114429796</id>
    <updated>2019-07-25T07:15:30Z</updated>
    <published>2019-07-25T07:15:30Z</published>
    <summary type="html">Okay after fex days of deep torture, i finally succed to make my asset searchable by adding this in my indexer : &lt;br /&gt;        document.add(new Field(Field.GROUP_ID,Long.toString(ENTITY.getGroupId())));&lt;br /&gt;        document.add(new Field(Field.SCOPE_GROUP_ID,Long.toString(ENTITY.getGroupId())));&lt;br /&gt;        document.add(new Field(Field.STATUS,Long.toString(0L))); &lt;br /&gt;But my torture is not finish, now in he search result i have 0 result displaying but i can see 4 documents and 1 of my entity in the type tab on the left. I don&amp;#39;t undertand, i tried to edit the getJspPath() method and i added a full_content.jsp file in my service builder Meta-in/ressources/asset/entityName folder. Nothing changed. If my result contain one of my custom asset the rendering dont work ... Helppppppp</summary>
    <dc:creator>Dorian Penot</dc:creator>
    <dc:date>2019-07-25T07:15:30Z</dc:date>
  </entry>
</feed>
