Product Selector

Fusion 5.9
    Fusion 5.9

    Fusion Query Terms and Suggestions

    Appkit supports the ability to generate suggestions as-you-type for successive query terms with Fusion via our Solr suggestion services.

    Accessing the Suggest Component

    To access the Solr suggester in a Fusion application, refer to the section Suggester.

    For reference, here is an example of how the Appkit configuration might appear for this particular service:

    name: twigkit.search.solr.suggestions.SolrSuggestionsParserService
    source: platforms.fusion
    suggester: titleMatchSuggester
    parenthesis: true
    title: Staff
    custom: count[5]
    doctype: howto

    Here, the source defines the location of the fusion platform configuration. This will be used to identify the Fusion host and collection.

    Accessing the Terms Component

    To access the Solr Terms component in a Fusion application, refer to the section Terms Component.

    For reference, here is an example of how the Appkit configuration might appear for this particular service:

    name: twigkit.search.solr.suggestions.SolrQueryTermsService
    source: platforms.fusion
    term-fields: Symbol, Project_name
    title: Suggested phrase
    doctype: howto

    Here, the source defines the location of the fusion platform configuration. This will be used to identify the Fusion host and subsequently a collection that will contain fields as listed in term-fields.

    Ensure the terms request handler can be used with the Fusion query pipeline

    The terms component and request handler are provided out-of-the-box in the solrconfig.xml with Fusion. However, to ensure the query pipeline you are using does allow the terms handler to be used with queries, check that the Query Solr stage of your query-pipeline does list terms as an allowed request handler.

    Dynamic updates to multiple term queries

    Because the terms component only allows suggestions one term at a time, in cases when multiple terms are being typed, suggestions will be given for the last term to be typed.