<?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>Searching multiple models at the same time - DXP 7.4</title>
  <link rel="self" href="https://liferay.dev/fr/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121651461" />
  <subtitle>Searching multiple models at the same time - DXP 7.4</subtitle>
  <id>https://liferay.dev/fr/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121651461</id>
  <updated>2026-06-02T17:39:31Z</updated>
  <dc:date>2026-06-02T17:39:31Z</dc:date>
  <entry>
    <title>RE: Searching multiple models at the same time - DXP 7.4</title>
    <link rel="alternate" href="https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121659537" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121659537</id>
    <updated>2023-06-20T20:18:25Z</updated>
    <published>2023-02-28T14:03:12Z</published>
    <summary type="html">&lt;p&gt;
  &lt;code&gt;IndexerRegistryUtil&lt;/code&gt; has a &lt;code&gt;getIndexers()&lt;/code&gt;
  method to retrieve all indexers. That said, I'm not exactly sure how
  to execute multiple indexer searches at once to get a combined score.
  Instead you could perhaps run a regular search using the search APIs,
  and filter the models you want returned.&lt;/p&gt;
&lt;p&gt;See the &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360029046391-Search-Queries-and-Filters"&gt;Queries
    and Filters docs&lt;/a&gt;, and the docs on &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360029046411-Building-Search-Queries-and-Filters"&gt;Building
    Queries and Filters&lt;/a&gt;, to get started. These links are for 7.2,
  but they should apply equally to 7.4 (where the docs don't yet exist).&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2023-02-28T14:03:12Z</dc:date>
  </entry>
  <entry>
    <title>Searching multiple models at the same time - DXP 7.4</title>
    <link rel="alternate" href="https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121651460" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121651460</id>
    <updated>2023-02-14T18:09:04Z</updated>
    <published>2023-02-14T17:04:12Z</published>
    <summary type="html">&lt;p&gt;In the documentaiton given below:&lt;/p&gt;
&lt;p&gt;https://help.liferay.com/hc/en-us/articles/360034199592-Querying-for-Guestbook-Entry-Documents#implementing-keywordquerycontributor&lt;/p&gt;
&lt;p&gt;We need to create an Indexer for the model that we need to search. In
  this case, GuestBookEntry.class. What if i need to search at the same
  time on JournalArticle.class and GuestBookEntry.class models, and not
  separate searches. So that I get a combined search score. How to do this?&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;Indexer&amp;lt;GuestbookEntry&amp;gt; indexer = IndexerRegistryUtil.getIndexer(GuestbookEntry.class);&lt;/code&gt;&lt;/pre&gt;</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2023-02-14T17:04:12Z</dc:date>
  </entry>
</feed>
