Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    RE: search no returning fragment in liquid searchindex

    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans