solr cluster: solr auto suggestion with requestHandler

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

solr cluster: solr auto suggestion with requestHandler

Venkata MR
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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

RE: solr cluster: solr auto suggestion with requestHandler

Venkata MR
Any inputs on this really appreciated.

Thanks & Regards
Venkata MR
+91 98455 77125

From: Venkata MR
Sent: Tuesday, January 09, 2018 5:25 PM
To: '[hidden email]' <[hidden email]>
Cc: Deepak Udapudi <[hidden email]>; Nareshkumar P <[hidden email]>
Subject: 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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

solr cluster: solr auto suggestion with requestHandler

Deepak Udapudi
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
Deepak

::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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


The information contained in this email message and any attachments is confidential and intended only for the addressee(s). If you are not an addressee, you may not copy or disclose the information, or act upon it, and you should delete it entirely from your email system. Please notify the sender that you received this email in error.
Reply | Threaded
Open this post in threaded view
|

Re: solr cluster: solr auto suggestion with requestHandler

Alessandro Benedetti
In reply to this post by Venkata MR
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
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io