lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <>
Subject Re: Derive suggestions across multiple fields
Date Tue, 02 Jun 2015 09:25:48 GMT
Hi Edwin,
I have worked extensively recently in Suggester and the blog I feel to
suggest is Erick's one.
It's really detailed and good for a beginner and expert as well. [1]

Apart that let's see you particular use case :

1) Do you want to be able to get also where the suggestions are coming from
suggestion1 from field1
suggestion2 from field2 ?
In this case I would try with multiple dictionaries but I am not sure Solr
allows you to use them concurrently.
But can be a really nice extension to develop.

2) If you don't care where the suggestions are coming from, just use a copy
field, where you copy the content of the interesting fields.
The suggestions will come from the fields you have copied in the copy
field, without distinction.

Hope this helps you



2015-06-02 4:22 GMT+01:00 Zheng Lin Edwin Yeo <>:

> Hi,
> Does anyone knows if we can derive suggestions across multiple fields?
> I tried to set something like this in my field in suggest searchComponents
> in solrconfig.xml, but nothing is returned. It only works when I set a
> single field, and not multiple field.
>   <searchComponent class="solr.SpellCheckComponent" name="suggest">
>     <lst name="spellchecker">
>       <str name="name">suggest</str>
>       <str
> name="classname">org.apache.solr.spelling.suggest.Suggester</str>
>       <str
> name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookupFactory</str>
>   <str name="field">Content, Summary</str>  <!-- the indexed field to
> derive suggestions from -->
>       <float name="threshold">0.005</float>
>       <str name="buildOnCommit">true</str>
>     </lst>
>   </searchComponent>
> I'm using solr 5.1.
> Regards,
> Edwin


Benedetti Alessandro
Visiting card :

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message