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 09:10:26 GMT
PFA the schema.xml and solrconfig.xml for reference.

I am using solr 6.0.1. Also using following query to get the result


http://localhost:9090/solr/collection1/suggest_sitesearch?suggest=true&suggest.build=true&suggest.dictionary=mySuggester&suggest.q=shampoo&wt=json&indent=true&suggest.cfq=mybrand

Also I am getting same result even without suggest.cfq parameter, although
we are having 4 brands to be categorised.

Thanks,
Rajesh Kapur


On Tue, Jul 5, 2016 at 2:19 PM, Rajesh Kapur <rajeshkapur4u@gmail.com>
wrote:

> 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
View raw message