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 Note that certain types of queries do not support highlighted fragments, such as fuzzy queries ( |
Thank you,
Bill
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156