Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17215

Solr Replication doesn't work for suggester for FreeTextLookupFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 8.11
    • None
    • Suggester
    • None

    Description

      Tested on 
      Solr version - 8.11.2
      Solr Cloud: Solr Index with 3 replicas and each replica is on a different server/node. Only 1 shard.
       
      Suggester component:
       

      <lst name="suggester">
        <str name="name">suggester_en</str>
        <str name="lookupImpl">FreeTextLookupFactory</str>
        <str name="dictionaryImpl">DocumentDictionaryFactory</str>
        <str name="field">twm_suggest_en</str>
        <str name="suggestFreeTextAnalyzerFieldType">phrase_suggest_en</str>
        <str name="buildOnCommit">false</str>
        <str name="buildOnStartup">false</str>
      </lst>

       
      Autocomplete request handler:
       

      <requestHandler name="/autocomplete" class="solr.SearchHandler" startup="lazy">
        <lst name="defaults">
          <str name="terms">false</str>
          <str name="distrib">false</str>
          <str name="spellcheck">false</str>
          <str name="spellcheck.onlyMorePopular">true</str>
          <str name="spellcheck.extendedResults">false</str>
          <str name="spellcheck.count">1</str>
          <str name="suggest">false</str>
          <str name="suggest.count">10</str>
        </lst>
        <arr name="components">
          <str>terms</str>
          <str>spellcheck</str>
          <str>suggest</str>
        </arr>
      </requestHandler>  

       
      Following is the request to build the suggest dictionary:
      /suggest?json.nl=flat&omitHeader=true&suggest.build=false&suggest.reload=false&suggest=true&suggest.buildAll=true
       
      After successfully building the suggester dictionary, we encounter an issue with autocomplete responses. Autocomplete requests only succeed if they are routed to the replica where the /suggest command was executed. Otherwise, an error occurs:
       

      java.lang.IllegalStateException: Lookup not supported at this time

       
      I assume, the suggester dictionary only builds on the replica/node where the suggest command was executed and replication doesn't occur
       

      {Couldn't find anything in docs & also there was no help from mailing list}

      Attachments

        Activity

          People

            Unassigned Unassigned
            paragsn Parag Ninawe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: