web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

search no returning fragment in liquid searchindex

(0) ShareShare
ReportReport
Posted on by

Hi, 

I am running the below query. I only get returning the title but no fragment and fragment is available.

is this something related to permissions?

How can I get fragment to be returned?

{% searchindex query: 'support', page: params.page, page_size: 10 %}
{% if searchindex.results.size > 0 %}
<p>Found about {{ searchindex.approximate_total_hits }} matches:</p>
<ul>
{% for result in searchindex.results %}
<li>
<h3><a href="{{ result.url | escape }}">{{ result.title | escape }}</a></h3>
<p>{{ result.fragment }}</p>
</li>
{% endfor %}
</ul>
{% else %}
<p>Your query returned no results.</p>
{% endif %}
{% endsearchindex %}

fragment

A relevant short text fragment for the result, with terms matching the specified query highlighted using the <em> HTML tag.

Note that certain types of queries do not support highlighted fragments, such as fuzzy queries (~) and wildcard queries (*). This property will be null in those cases.

Thank you, 

Bill

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Bill,

    I've got no answer to this but running the same script returns the same problem. Did you manage to solve this?

    Ralph

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans