All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low search has the wrong excerpt

Loren Klingman 27 May 2013 06:37 question, complete

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}





{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

    1. 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.

    2. 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.

    3. 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.

    4. Low 27 May 2013 07:36

      Good point. Will do.