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

Support archive

Search results have search scores of 0.00 and seem to be listed in reverse order.

srevoal 29 Sep 2014 04:51 question, complete

The description says it all. My results seem to be backwards and {low_search_score} returns 0.00 for all of them. Keywords are still highlighted and I can find the most relevant results on the last page. Very strange. I'm using 3.2.

Site Search

{exp:low_search:form result_page="search"}


Keywords


Search

{/exp:low_search:form}

{if segment_2!=""}

Search Results


{exp:low_search:results
query="{segment_2}"
status="not closed"
disable="member_data"
paginate="both"
limit="10"
sort='desc'
}
{if count == 1}


{if low_search_keywords}Searched for "{low_search_keywords}".{/if}
Total results: {absolute_results}



{/if}

{if link}


{title}


{low_search_excerpt}

Read More

{/if}
{if channel!='Links'}
{title}
{low_search_score} - {low_search_excerpt}

Read More

{/if}

{paginate}
Page {current_page} of {total_pages} pages {pagination_links}

{/paginate}

{if low_search_no_results}

Sorry, your search for "{low_search_keywords}" not return any results.
Check your spelling or try a different search term.


{/if}

{/exp:low_search:results}

{/if}

Replies

  1. Low 29 Sep 2014 07:11

    Remove sort="desc" from the Results tag.

    LS uses the channel:entries tag to display the search results, and puts the entry IDs in the fixed_order parameter, highest score first. Adding sort="desc" will reverse that order.

  2. srevoal 29 Sep 2014 16:07

    I've removed sort='desc'. it's still all 0.00 and backwards.

    www2.familycareinc.org

  3. Low 29 Sep 2014 16:10

    A search for "test" on that site gives me results the correct way, by the looks of it: http://www2.familycareinc.org/search/eyJyZXN1bHRfcGFnZSI6InNlYXJjaCIsImtleXdvcmRzIjoidGVzdCIsIngiOiI...

  4. srevoal 29 Sep 2014 16:23

    Very strange. Look at this test on Medicare.

    http://www2.familycareinc.org/search/...

  5. Low 29 Sep 2014 16:33

    The inner workings of MySQL fulltext scoring mechanisms is a bit of a black box. However, if a certain term is present a lot in the index, it will be ignored. These words are called stop words, and there is a default list of them. It could be that because the term "medicare" is present a lot, it is considered to be a stop word by MySQL.

    This isn't something Low Search can influence, but you 

  6. srevoal 29 Sep 2014 18:44

    Bazinga. That fixed it. Thanks for your help!