I also had a problem: the client asked me to activate the tester module on the Win2008 machine with the documents Solr 5.5.0, 1 core / node, 500k +.
I believe that StackOverflowError is due to some implementation of the FuzzyLookupFactory , which does not work properly when it has to build a large search data structure from scratch.
I was not able to get the inspector to work with FuzzyLookupFactory, in this situation the only solution for me activated it using FreeTextLookupFactory .
I will publish excerpts from my configuration files, I hope this helps:
solrconfig.xml
<searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">mySuggester</str> <str name="lookupImpl">FreeTextLookupFactory</str> <str name="dictionaryImpl">DocumentDictionaryFactory</str> <str name="field">content</str> <str name="suggestFreeTextAnalyzerFieldType">suggestTypeLc</str> <str name="buildOnStartup">true</str> <str name="buildOnCommit">false</str> </lst> </searchComponent> <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy"> <lst name="defaults"> <str name="suggest">true</str> <str name="suggest.count">10</str> <str name="suggest.dictionary">mySuggester</str> </lst> <arr name="components"> <str>suggest</str> </arr> </requestHandler>
schema.xml
<fieldType name="suggestTypeLc" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="[^a-zA-Z0-9]" replacement=" " /> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>
Another link here and in the documentation here .
Note:
- The buildOnCommit parameter value was set to false to improve performance.
- suggestTypeLc implements an analyzer that takes into account only alphanumeric / numerical character in lower case, although the results in the original case
Even if the buildOnStartup parameter is set to true, I noticed that it does not work. As the first operation after rebooting, I have to manually execute the request with the parameter "suggest.build = true" so that it is actually created. eg.
http://localhost:82/solr/mycore/suggest?suggest=true&suggest.build=true&suggest.dictionary=mySuggester&wt=json&suggest.q=docum
In my configuration, this usually takes a few minutes. The following queries without creating power is a matter of milliseconds.
Lendarmyst
source share