ronak kothari created SOLR-9435:
-----------------------------------

             Summary: Un-recoverable state while using 
AnalyzingInfixLookupFactory with collection RELOAD action
                 Key: SOLR-9435
                 URL: https://issues.apache.org/jira/browse/SOLR-9435
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: spellchecker
    Affects Versions: 4.6.1
            Reporter: ronak kothari


All search requests fails after few sequiancial of Collection RELOAD requests 
with using spellcheck component
with AnalyzingInfixSuggester

Observed in Solr 4.6.1

Reproducible steps:
1. Initialized spellcheck component with AnalyzingInfixLookupFactory
2. Consider the collection "test_suggest" (if not create one)
3. Lets have a dictionary file 'dictionary_a.txt' with size in MBs (~20MB). 
Each line contains a word (max 20char).
4. Now, hit the collection reload (or core reload) few times in sequence. (Make 
sure that your dictionary files is large enough)
   - req (core reload) : GET 
http://<solrhost>:<port>/solr/admin/cores?action=RELOAD&core=test_suggest
   or
   - req (collection reload) : GET 
http://<solrhost>:<port>/solr/admin/collections?action=RELOAD&name=test_suggest
5. do the search : GET 
http://<solrhost>:<port>/solr/test_suggest/suggest_handler?q=dr

Response : All the search requests fails.
Note : Do not turn off buildOnStartup

Sample Configuration: 
<searchComponent name="suggest" class="solr.SpellCheckComponent">
  <lst name="spellchecker">
    <str name="name">suggest_a</str>
    <str 
name="lookupImpl">org.apache.solr.spelling.suggest.fst.AnalyzingInfixLookupFactory</str>
    <str name="indexPath">./index/analyzingSuggesterIndex_a</str>
    <str name="suggestAnalyzerFieldType">text_general</str>
    <str name="sourceLocation">./dictionaries/dictionary_a.txt</str> 
    <str name="buildOnStartup">true</str>
  </lst>
</searchComponent>
<requestHandler name="/suggest_handler" 
class="org.apache.solr.handler.component.SearchHandler">
  <lst name="defaults">
    <str name="spellcheck">true</str>
    <str name="spellcheck.dictionary">suggest</str>
    <str name="spellcheck.count">30</str>
    <str name="spellcheck.onlyMorePopular">true</str>
  </lst>
  <arr name="components">
    <str>suggest</str>
  </arr>
</requestHandler>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to