Hello Shawn!

Thank you for your answer, you were right, the suggester is not in the
plugin list.

I have now taken over the configuration from the example techproducts from
the solrconfig.xml
with only three changes (field->content, weightField-> left empty and
suggestAnalyzerFieldTyoe->text_general).

Something is missing or wrong but I can't imagine that the position of the
suggester configuration in the solrconfig.xml is wrong.

solrconfig.xml
....
       <str name="spellcheck.maxCollations">5</str>
     </lst>
     <arr name="last-components">
       <str>spellcheck</str>
     </arr>
   </requestHandler>

   <searchComponent name="suggest" class="solr.SuggestComponent">
     <lst name="suggester">
       <str name="name">mySuggester</str>
       <str name="lookupImpl">FuzzyLookupFactory</str>
       <str name="dictionaryImpl">DocumentDictionaryFactory</str>
       <str name="field">content</str>
       <str name="weightField"></str>
       <str name="suggestAnalyzerFieldType">text_general</str>
       <str name="buildOnStartup">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>
     </lst>
     <arr name="components">
       <str>suggest</str>
     </arr>
   </requestHandler>



Am Mo., 16. Jan. 2023 um 06:23 Uhr schrieb Shawn Heisey <apa...@elyograg.org
>:

> On 1/15/23 21:56, Mike wrote:
> > When I call e.g. ../solr/core01/suggest?q=car
> > i get an an error from Solr:
> >
> > Searching for Solr?
> > You must type the correct path.
> > Solr will respond.
>
> That suggests (ok, bad joke) that the handler is not being created.
>
> I put the config you mentioned in my Solr install, and I can use the
> /suggest handler as you described without errors.
>
> There is nothing in solr.log at startup that mentions suggest.  I do see
> the query being logged once I make the query.
>
> Does solr.log contain any WARN or ERROR log messages that seem related?
>
> Looking at other mail you have sent the list, I don't think you're in
> cloud mode.
>
> On the admin UI, if you select the core from the dropdown, then go to
> Plugins/Stats, and then click QUERY, do you see the /suggest handler
> defined there?  If you don't, you may have put the config into
> solrconfig.xml improperly.
>
> Thanks,
> Shawn
>

Reply via email to