You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Venkata MR <Ve...@hcl.com> on 2018/01/09 11:55:25 UTC

solr cluster: solr auto suggestion with requestHandler

Hi All,

Problem: Not able to build suggest data on all solr cluster nodes

Configured three solr using external zookeeper
Configured the requestHandler for auto-suggestion as below

<requestHandler name="/suggest" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="suggest">true</str>
      <str name="suggest.count">5</str>
      <str name="suggest.dictionary">Name</str>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
</requestHandler>

<searchComponent name="suggest" class="solr.SuggestComponent">
 <lst name="suggester">
  <str name="name">Name</str>
  <str name="field">name</str>
  <str name="weightField">name</str>
  <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  <str name="indexPath">name_suggester_infix_dir</str>
  <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  <str name="payloadField">key</str>
  <str name="suggestAnalyzerFieldType">lowercase</str>
  <str name="storeDir">name_suggestor_dictionary</str>
  <str name="fieldType">string</str>
 </lst>
</searchComponent>

When we manually issue request with suggest.build=true on one of the node for building suggest data, suggest data is built for that particular node only, other nodes of cluster are not getting build the suggest data.
Any configuration mismatch?

Thanks a lot.

Thanks & Regards
Venkata MR
+91 98455 77125

::DISCLAIMER::
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Re: solr cluster: solr auto suggestion with requestHandler

Posted by "alessandro.benedetti" <a....@sease.io>.
have you tried adding the "distrib =true" request parameter when building the
suggester ?
It should be by default, but trying explicitly won't harm.

I think nowadays the suggester component is Solr Cloud compatible, I have no
chance to test it right now but it should just works.
Worst case you can proceed debugging a bit if anything interesting is in the
logs.
Give it a try!

Cheers



-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html