lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kapur <rajeshkapu...@gmail.com>
Subject Re: Suggester Issue
Date Tue, 05 Jul 2016 08:49:01 GMT
Hi,

Thanks for the reply. Yes I am getting same result with and without
suggest.cfq parameter.


Thanks,
Rajesh Kapur

On Tue, Jul 5, 2016 at 2:08 PM, Alessandro Benedetti <abenedetti@apache.org>
wrote:

> Hi Rajesh,
> I will take a look to your config as soon as I have 5 minutes, in the
> meantime, can you specify what is the output you get and what is the output
> you expect ?
> You simply don't get the filter applied ?
>
> Cheers
>
> On Tue, Jul 5, 2016 at 5:10 AM, Rajesh Kapur <rajeshkapur4u@gmail.com>
> wrote:
>
> > Hi,
> >
> >
> >
> > I tried to implement suggester using SOLR 6.0.1 with context field. PFB
> the
> > configuration we are using to implement suggester
> >
> >
> >
> >
> >
> >   <searchComponent name="suggest_sitesearch"
> class="solr.SuggestComponent">
> >
> >     <lst name="suggester">
> >
> >       <str name="name">mySuggester</str>
> >
> >       <!--<str name="lookupImpl">FuzzyLookupFactory</str>-->
> >
> >       <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
> >
> >       <str name="indexPath">suggester_infixdata_dir</str>
> >
> >       <str name="dictionaryImpl">DocumentDictionaryFactory</str>
> >
> >       <str name="field">SearchSuggestions</str>
> >
> >         <str name="contextField">BrandName</str>
> >
> >       <str name="suggestAnalyzerFieldType">suggest</str>
> >
> >       <str name="buildOnCommit">true</str>
> >
> >       <!--<str name="buildOnStartup">true</str>-->
> >
> >     </lst>
> >
> >   </searchComponent>
> >
> >
> >
> >   <requestHandler class="solr.SearchHandler" name="/suggest_sitesearch">
> >
> >     <lst name="defaults">
> >
> >       <str name="suggest">true</str>
> >
> >       <str name="suggest.count">10</str>
> >
> >       <str name="suggest.dictionary">mySuggester</str>
> >
> >       <!--<str name="spellcheck.collate">true</str>-->
> >
> >     </lst>
> >
> >     <arr name="components">
> >
> >       <str>suggest_sitesearch</str>
> >
> >     </arr>
> >
> >   </requestHandler>
> >
> >
> >
> > But I am not able to get the desired output using suggest.cfq parameter.
> > Could you please help me in getting the correct output.
> >
> >
> >
> > -Thanks,
> >
> > Rajesh Kapur
> >
>
>
>
> --
> --------------------------
>
> Benedetti Alessandro
> Visiting card : http://about.me/alessandro_benedetti
>
> "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
>

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