[ 
https://issues.apache.org/jira/browse/SOLR-17215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parag Ninawe updated SOLR-17215:
--------------------------------
    Description: 
{color:#0d0d0d}Tested on {color}
{color:#0d0d0d}Solr version - 8.11.2{color}
{color:#0d0d0d}Solr Cloud: Solr Index with 3 replicas and each replica is on a 
different server/node. Only 1 shard.{color}
 
Suggester component:
 
{code:java}
<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>{code}
 
Autocomplete request handler:
 
{code:java}
<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>  {code}
 
Following is the request to build the suggest dictionary:
/suggest?[json.nl|http://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:
 
{code:java}
java.lang.IllegalStateException: Lookup not supported at this time{code}
 
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}

  was:
{color:#0d0d0d}Tested on {color}
{color:#0d0d0d}Solr version - 8.11.2{color}
{color:#0d0d0d}Solr Index with 3 replicas and each replica is on a different 
server/node. Only 1 shard.{color}
 
Suggester component:
 
{code:java}
<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>{code}
 
Autocomplete request handler:
 
{code:java}
<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>  {code}
 
Following is the request to build the suggest dictionary:
/suggest?[json.nl|http://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:
 
{code:java}
java.lang.IllegalStateException: Lookup not supported at this time{code}
 
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}


> Solr Replication doesn't work for suggester for FreeTextLookupFactory
> ---------------------------------------------------------------------
>
>                 Key: SOLR-17215
>                 URL: https://issues.apache.org/jira/browse/SOLR-17215
>             Project: Solr
>          Issue Type: Task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Suggester
>            Reporter: Parag Ninawe
>            Priority: Major
>
> {color:#0d0d0d}Tested on {color}
> {color:#0d0d0d}Solr version - 8.11.2{color}
> {color:#0d0d0d}Solr Cloud: Solr Index with 3 replicas and each replica is on 
> a different server/node. Only 1 shard.{color}
>  
> Suggester component:
>  
> {code:java}
> <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>{code}
>  
> Autocomplete request handler:
>  
> {code:java}
> <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>  {code}
>  
> Following is the request to build the suggest dictionary:
> /suggest?[json.nl|http://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:
>  
> {code:java}
> java.lang.IllegalStateException: Lookup not supported at this time{code}
>  
> 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}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to