<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Implementing full text search in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/implementing-full-text-search/m-p/227778#M70367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getExcerpts() can help you instead of getExcerpt()&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fdocs.adobe.com%2Fdocs%2Fen%2Faem%2F6-0%2Fdevelop%2Fref%2Fjavadoc%2Fcom%2Fday%2Fcq%2Fsearch%2Fresult%2FHit.html%23" rel="nofollow" target="_blank"&gt;https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/search/result/Hit.html#&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 04:39:48 GMT</pubDate>
    <dc:creator>Sham_HC</dc:creator>
    <dc:date>2016-11-23T04:39:48Z</dc:date>
    <item>
      <title>Implementing full text search</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/implementing-full-text-search/m-p/227777#M70366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am implementing a full text search using the following&amp;nbsp; code&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language="java"&gt;String searchTitle = ""; String searchTerm =request.getParameter("q"); String pageTitle, pagePath; Map&amp;lt;String, String&amp;gt; params = new HashMap&amp;lt;String, String&amp;gt;(); params.put("path", "/content/mysite"); params.put("type","cq:Page"); params.put("fulltext",searchTerm); params.put("orderby", "@jcr:score"); QueryBuilder builder=sling.getService(QueryBuilder.class); Session session = slingRequest.getResourceResolver().adaptTo(Session.class); Query query = builder.createQuery(PredicateGroup.create(params), session); SearchResult searchResult = query.getResult(); for (Hit hit : searchResult.getHits()) { String excerpt=hit.getExcerpt(); }&lt;/PRE&gt;&lt;P&gt;When i access the matched content from the hit using&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language="java"&gt;hit.getExcerpt();&lt;/PRE&gt;&lt;P&gt;i am getting the first match (with145 character ).&lt;/P&gt;&lt;P&gt;Is there an way to get all the matched phrases from the content?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 16:54:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/implementing-full-text-search/m-p/227777#M70366</guid>
      <dc:creator>Deleted Account</dc:creator>
      <dc:date>2016-11-10T16:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing full text search</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/implementing-full-text-search/m-p/227778#M70367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getExcerpts() can help you instead of getExcerpt()&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fdocs.adobe.com%2Fdocs%2Fen%2Faem%2F6-0%2Fdevelop%2Fref%2Fjavadoc%2Fcom%2Fday%2Fcq%2Fsearch%2Fresult%2FHit.html%23" rel="nofollow" target="_blank"&gt;https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/search/result/Hit.html#&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 04:39:48 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/implementing-full-text-search/m-p/227778#M70367</guid>
      <dc:creator>Sham_HC</dc:creator>
      <dc:date>2016-11-23T04:39:48Z</dc:date>
    </item>
  </channel>
</rss>

