Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Product Documentation
    4. Primo
    5. Technical Guide
    6. Linguistic Features
    7. Did You Mean

    Did You Mean

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. The Did You Mean Algorithm
    2. Disabling the Did You Mean Feature

    If you are working with Primo VE and not Primo, see Linguistic Features for Primo VE.

    Return to menu
    Primo's Did You Mean index is based on the Levenshtein distance, which is the distance between two words using a minimum number of single-character edits (such as insertions, deletions, or substitutions) to change a word into the other word. Primo builds the Did You Mean index (which has and edit distance of a single character) from the regular titles index. Ex Libris recommends that you update this index on a weekly basis using the Primo Scheduler in the Back Office.
    Primo invokes the Did You Mean algorithm on single and multiple word queries and returns a single Did You Mean suggestion per query.

    Changes to the Did You Mean configuration files have no effect on the results returned from remote searches, Central Index, or any other deep search adaptor.

    The Did You Mean Algorithm

    A Did You Mean link does not automatically display in the Front End when the user performs a search. A threshold must be met before Primo invokes the Did You Mean function. Primo will display a Did You Mean suggestion only when a query returns less results than specified for the threshold, which is defined with the didyoumean_threshold/res_threshold parameter in the search_schema.xml file. The default threshold value is 50.

    The system does not apply this threshold to searches that include Central Index results.

    In addition to this threshold, Primo checks the query terms against a dictionary and invokes the Did You Mean function if a term is found to be incorrect. If the query is a phrase, the function replaces only incorrect terms in the Did You Mean suggestion.

    The Did You Mean algorithm works separately on every term within the query.

    If a search query returns less than 50 results, the Did You Mean algorithm performs the following:

    Primo searches for a match in the Did You Mean index. Several candidates are checked and the highest-ranking result is used. The frequency of the term in the index is one of the factors in the ranking. If the corrected query returns enough results, it will be displayed.

    Disabling the Did You Mean Feature

    Primo provides the following methods to disable the Did You Mean feature:
    • Do not create the Did You Mean index.
    • Configure the following parameters in the Did You Mean section on the Advanced Configuration > Search Engine Configuration page and then deploy the Search Engine Configuration option on the Deploy All page:
      • Set the Maximum Results for Did You Mean parameter to -1.
      • Clear the Use Rank Threshold check box.
    The above parameters can be defined per institution.
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Synonyms
      • Normalization of Characters in Primo
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Primo
    2. Tags
      1. contype:docum
      2. Linguistic Features
      3. Prod:Primo
      4. Technical Guide
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved