Low search has the wrong excerpt
It's quite possible, that I just don't properly understand the excerpt details.
Here is a picture of the entry:
and the settings
the code
{exp:low_search:results limit="10" collection="{all_collections_search}" {all_search_settings} paginate="bottom"}
{if no_results}No search results{/if}
{all_find_11}
{exp:playa:parents channel="sidebar" field="sidebar_items" search:sidebar_type="=feature" parse="inward" var_prefix="sidebar"}
{sidebar:title} -
{/exp:playa:parents}
{entry_date format="%F %j, %Y"}
{if "{channel_short_name}" == "story_import" OR "{channel_short_name}" == "story_import_site"}[{exp:lk_toolbox:story_site}{import_link}{/exp:lk_toolbox:story_site}] {/if}{all_find_headline} {all_find_type}
{low_search_excerpt}
{paginate}
{pagination_links}
{previous_page}
«
{/previous_page}
{page}
{pagination_page_number}
{/page}
{next_page}
»
{/next_page}
{/pagination_links}
{/paginate}
{/exp:low_search:results}
and the result
Replies
Loren Klingman 27 May 2013 06:39
Ok, I found the problem, but I still think it is a bug. In the channel settings, I had selected a different field for the excerpt. Since low search, would read it's excerpt field when a keyword was used, it worked fine then, but when no keyword is used, it uses the field from the channel settings.
Low 27 May 2013 07:00
Actually, that's not a bug. If no keywords were given, there's no way for Low Search know to which Collection a search result belongs to, as there can be multiple Collections per Channel. That's why it falls back to the native excerpt field when there's no keywords given.
Loren Klingman 27 May 2013 07:33
Ah, ok that makes since. Maybe a note on the {low_search_excerpt} variable about that could be useful. It took me a while to come up with checking on that.
Low 27 May 2013 07:36
Good point. Will do.