Blog: Suggest for Solr Search Dashboards

8 views
Skip to first unread message

Romain Rigaux

unread,
Apr 6, 2016, 12:12:47 PM4/6/16
to Hue-Users
Originally posted on http://gethue.com/suggest-for-solr-search-dashboards/

Hey Search users,

The upcoming Hue version supports Solr Suggester and makes your data easier to search! Suggester assists the user by proposing an auto-completable list of queries:


 Video: https://vimeo.com/161792073

 

We hope that you like the interactivity, and feel free to send feedback on the hue-user list or @gethue!

 

How-to

First grab a Solr 5, start it and make sure that it has a suggester configured:

1
2
3
4
5
6
romain@unreal:$ ./bin/solr -e techproducts
Waiting to see Solr listening on port 8983 [/] 
Started Solr server on port 8983 (pid=23696). Happy searching!
 
Checked core existence using Core API command:
http://localhost:8983/solr/admin/cores?action=STATUS&core=techproducts

Confirm that Solr has a suggester configured, here named mySuggester:

1
2
3
4
5
6
7
8
9
10
11
12
13
http://127.0.0.1:8983/solr/#/techproducts/files?file=solrconfig.xml
 
 <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">cat</str>
      <str name="weightField">price</str>
      <str name="suggestAnalyzerFieldType">string</str>
      <str name="buildOnStartup">false</str>
    </lst>
  </searchComponent>

 

then activate the suggester in the Hue Dashboard settings:
suggester-settings

and see the help in the query box:
search-suggest


Hue Team
Reply all
Reply to author
Forward
0 new messages