<?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>How to associate custom entity with Segments in liferay 7.3</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121009402" />
  <subtitle>How to associate custom entity with Segments in liferay 7.3</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121009402</id>
  <updated>2026-04-04T13:35:04Z</updated>
  <dc:date>2026-04-04T13:35:04Z</dc:date>
  <entry>
    <title>RE: RE: How to associate custom entity with Segments in liferay 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121129644" />
    <author>
      <name>Ritu Kishore</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121129644</id>
    <updated>2021-09-07T12:36:56Z</updated>
    <published>2021-09-07T04:46:23Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf,&lt;/p&gt;
&lt;p&gt;Thanks for your response..!!&lt;/p&gt;
&lt;p&gt;I ended up with making my entity indexable and now it is working as
  per our requirements.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>Ritu Kishore</dc:creator>
    <dc:date>2021-09-07T04:46:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to associate custom entity with Segments in liferay 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121052415" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121052415</id>
    <updated>2021-08-17T07:42:00Z</updated>
    <published>2021-08-17T07:41:58Z</published>
    <summary type="html">&lt;p&gt;Disclaimer: I've not followed the whole documentation chapter, never
  implemented this, and might have missed something.&lt;/p&gt;
&lt;p&gt;You claim that you don't implement indexing - and you don't want to.
  On the other hand, that &lt;em&gt;might&lt;/em&gt; be just what the framework
  expects: There are many operations that are implemented through the
  index in order to lower the demand on the database, and/or improve
  performance. In case you've hit exactly this situation (I'm neither
  claiming you do or you don't), it's your choice if you work around
  this by figuring out how to replace index-based search with
  database-based search, or to implement indexing. Indexing might come
  in handy in other situations as well...&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-08-17T07:41:58Z</dc:date>
  </entry>
  <entry>
    <title>How to associate custom entity with Segments in liferay 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121009401" />
    <author>
      <name>Ritu Kishore</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121009401</id>
    <updated>2021-08-16T20:32:26Z</updated>
    <published>2021-08-03T06:43:39Z</published>
    <summary type="html">&lt;p&gt;I'm extending Segments Criteria Contributor with some custom segment
  rules in liferay 7.3, and for this I had created a contributor class
  which implements SegmentsCriteriaContributor. After deployong the
  module, a new segment criteria contributor  was added  with the rule I
  had defined within the class.&lt;/p&gt;
&lt;p&gt;Now the issue which I'm facing is that how to associate this custom
  criteria contributor  with a custom entity to return the number of
  matched data.&lt;/p&gt;
&lt;p&gt;I tried to follow &lt;a
  href="https://help.liferay.com/hc/en-us/articles/360029067411-Creating-a-Segment-Criteria-Contributor"&gt;Creating-a-Segment-Criteria-Contributor&lt;/a&gt;
  for my reference but the issue which I face was that while it was
  performing search in ODataRetriver, I was getting null pointer
  exception as my entity is not indexable and I don't want this to be indexable.&lt;/p&gt;
&lt;p&gt;So it will be a great help if someone could help me ith this.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</summary>
    <dc:creator>Ritu Kishore</dc:creator>
    <dc:date>2021-08-03T06:43:39Z</dc:date>
  </entry>
</feed>
