Skip to main content
added 388 characters in body
Source Link

I am using Solr 8.4 with Sitecore 10.1 I have used the following configuration and it works fine. The trick is to define the Field you want to see in the payloadField parameter Here's my suggester configuration.You can see the payload parameter in this configuration. title_t

<searchComponent name="suggest" class="solr.SuggestComponent">
        <lst name="suggester">
            <str name="name">sxaSuggester</str>
            <str name="lookupImpl">BlendedInfixLookupFactory</str>
            <str name="dictionaryImpl">DocumentDictionaryFactory</str>
            <str name="contextField">_language</str>
            <str name="field">title_t</str>
            <str name="suggestAnalyzerFieldType">text_general</str>
            <str name="payloadField">title_t</str>
            <str name="buildOnStartup">true</str>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
        <lst name="defaults">
            <str name="suggest.dictionary">sxaSuggester</str>
            <str name="suggest">true</str>
            <str name="suggest.onlyMorePopular">true</str>
            <str name="suggest.count">10</str>
            <str name="suggest.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>

I am getting suggestions butas value of title field as I want title field to be fetched in the suggestions.

I am using Solr 8.4 with Sitecore 10.1 I have used the following configuration and it works fine. The trick is to define the Field you want to see in the payloadField parameter Here's my suggester configuration.You can see the payload parameter in this configuration. title_t

<searchComponent name="suggest" class="solr.SuggestComponent">
        <lst name="suggester">
            <str name="name">sxaSuggester</str>
            <str name="lookupImpl">BlendedInfixLookupFactory</str>
            <str name="dictionaryImpl">DocumentDictionaryFactory</str>
            <str name="contextField">_language</str>
            <str name="field">title_t</str>
            <str name="suggestAnalyzerFieldType">text_general</str>
            <str name="payloadField">title_t</str>
            <str name="buildOnStartup">true</str>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
        <lst name="defaults">
            <str name="suggest.dictionary">sxaSuggester</str>
            <str name="suggest">true</str>
            <str name="suggest.onlyMorePopular">true</str>
            <str name="suggest.count">10</str>
            <str name="suggest.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>

I am getting suggestions but I want title field to be fetched in the suggestions.

I am using Solr 8.4 with Sitecore 10.1 I have used the following configuration and it works fine. The trick is to define the Field you want to see in the payloadField parameter Here's my suggester configuration.You can see the payload parameter in this configuration. title_t

<searchComponent name="suggest" class="solr.SuggestComponent">
        <lst name="suggester">
            <str name="name">sxaSuggester</str>
            <str name="lookupImpl">BlendedInfixLookupFactory</str>
            <str name="dictionaryImpl">DocumentDictionaryFactory</str>
            <str name="contextField">_language</str>
            <str name="field">title_t</str>
            <str name="suggestAnalyzerFieldType">text_general</str>
            <str name="payloadField">title_t</str>
            <str name="buildOnStartup">true</str>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
        <lst name="defaults">
            <str name="suggest.dictionary">sxaSuggester</str>
            <str name="suggest">true</str>
            <str name="suggest.onlyMorePopular">true</str>
            <str name="suggest.count">10</str>
            <str name="suggest.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>

I am getting suggestions as value of title field as I want title field to be fetched in the suggestions.

added 388 characters in body
Source Link

I am using Solr 8.4 with Sitecore 10.1 I am also facing a similar issuehave used the following configuration and my confogurtionit works fine. The trick is as follows sxaSuggester AnalyzingInfixLookupFactory sxacontent_txm text_general true sxaSuggester trueto define the Field you want to see in the payloadField parameter 10 suggest Here's my suggester configuration.You can see the payload parameter in this configuration. title_t

<searchComponent name="suggest" class="solr.SuggestComponent">
        <lst name="suggester">
            <str name="name">sxaSuggester</str>
            <str name="lookupImpl">BlendedInfixLookupFactory</str>
            <str name="dictionaryImpl">DocumentDictionaryFactory</str>
            <str name="contextField">_language</str>
            <str name="field">title_t</str>
            <str name="suggestAnalyzerFieldType">text_general</str>
            <str name="payloadField">title_t</str>
            <str name="buildOnStartup">true</str>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
        <lst name="defaults">
            <str name="suggest.dictionary">sxaSuggester</str>
            <str name="suggest">true</str>
            <str name="suggest.onlyMorePopular">true</str>
            <str name="suggest.count">10</str>
            <str name="suggest.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>

I am getting suggestions but I want title field to be fetched in the suggestions.

I am using Solr 8.4 with Sitecore 10.1 I am also facing a similar issue and my confogurtion is as follows sxaSuggester AnalyzingInfixLookupFactory sxacontent_txm text_general true sxaSuggester true 10 suggest

I am getting suggestions but I want title field to be fetched in the suggestions.

I am using Solr 8.4 with Sitecore 10.1 I have used the following configuration and it works fine. The trick is to define the Field you want to see in the payloadField parameter Here's my suggester configuration.You can see the payload parameter in this configuration. title_t

<searchComponent name="suggest" class="solr.SuggestComponent">
        <lst name="suggester">
            <str name="name">sxaSuggester</str>
            <str name="lookupImpl">BlendedInfixLookupFactory</str>
            <str name="dictionaryImpl">DocumentDictionaryFactory</str>
            <str name="contextField">_language</str>
            <str name="field">title_t</str>
            <str name="suggestAnalyzerFieldType">text_general</str>
            <str name="payloadField">title_t</str>
            <str name="buildOnStartup">true</str>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
        <lst name="defaults">
            <str name="suggest.dictionary">sxaSuggester</str>
            <str name="suggest">true</str>
            <str name="suggest.onlyMorePopular">true</str>
            <str name="suggest.count">10</str>
            <str name="suggest.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>

I am getting suggestions but I want title field to be fetched in the suggestions.

Source Link

I am using Solr 8.4 with Sitecore 10.1 I am also facing a similar issue and my confogurtion is as follows sxaSuggester AnalyzingInfixLookupFactory sxacontent_txm text_general true sxaSuggester true 10 suggest

I am getting suggestions but I want title field to be fetched in the suggestions.