Suggester Issue
Hi, I tried to implement suggester using SOLR 6.0.1 with context field. PFB the configuration we are using to implement suggester mySuggester AnalyzingInfixLookupFactory suggester_infixdata_dir DocumentDictionaryFactory SearchSuggestions BrandName suggest true true 10 mySuggester suggest_sitesearch 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
Re: Suggester Issue
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 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 > wrote: > > > Hi, > > > > > > > > I tried to implement suggester using SOLR 6.0.1 with context field. PFB > the > > configuration we are using to implement suggester > > > > > > > > > > > >class="solr.SuggestComponent"> > > > > > > > > mySuggester > > > > > > > > AnalyzingInfixLookupFactory > > > > suggester_infixdata_dir > > > > DocumentDictionaryFactory > > > > SearchSuggestions > > > > BrandName > > > > suggest > > > > true > > > > > > > > > > > > > > > > > > > > > > > > > > > > true > > > > 10 > > > > mySuggester > > > > > > > > > > > > > > > > suggest_sitesearch > > > > > > > > > > > > > > > > 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 >
Re: Suggester Issue
Hi I have reinstalled the solr and it is working fine now. Couple of issues I am facing now are: 1. Cfq parameter is expecting only brand-name as configured. So now if I hv special character like - in brandname I am not able to fetch the suggestion 2 I want to fetch the suggestion filtered on 2 fields, is that possible? Thanks On 06-Jul-2016 3:37 PM, "Alessandro Benedetti" wrote: >From a brief look to the config files it seems fine to me, but I didn't have the chance to try it. Have you checked that you have nothing in the Solr logs ? You can potentially need to debug. Cheers On Tue, Jul 5, 2016 at 10:10 AM, Rajesh Kapur wrote: > 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 > 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 < >> abenede...@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 >>> wrote: >>> >>> > Hi, >>> > >>> > >>> > >>> > I tried to implement suggester using SOLR 6.0.1 with context field. >>> PFB the >>> > configuration we are using to implement suggester >>> > >>> > >>> > >>> > >>> > >>> > >> class="solr.SuggestComponent"> >>> > >>> > >>> > >>> > mySuggester >>> > >>> > >>> > >>> > AnalyzingInfixLookupFactory >>> > >>> > suggester_infixdata_dir >>> > >>> > DocumentDictionaryFactory >>> > >>> > SearchSuggestions >>> > >>> > BrandName >>> > >>> > suggest >>> > >>> > true >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >> name="/suggest_sitesearch"> >>> > >>> > >>> > >>> > true >>> > >>> > 10 >>> > >>> > mySuggester >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > suggest_sitesearch >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > 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 >>> >> >> > -- -- 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
Re: Suggester Issue
Hi, Any update on this? Could you please let me know is it possible to pass CFQ parameter on multiple fields? Thanks On Tue, Jul 5, 2016 at 9:40 AM, Rajesh Kapur wrote: > Hi, > > > > I tried to implement suggester using SOLR 6.0.1 with context field. PFB > the configuration we are using to implement suggester > > > > > > > > > > mySuggester > > > > AnalyzingInfixLookupFactory > > suggester_infixdata_dir > > DocumentDictionaryFactory > > SearchSuggestions > > BrandName > > suggest > > true > > > > > > > > > > > > > > true > > 10 > > mySuggester > > > > > > > > suggest_sitesearch > > > > > > > > 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 >
SOLR Suggester | CFQ Variable | - not supported
Hi, I am facing issue while implementing suggester for my project where I am passing CFQ value having - in between, but it is not giving me desired output. Could you please let me know what should I do so that SOLR suggester starts accepting - in CFQ parameters. Thanks Rajesh Kapur
Re: SOLR Suggester | CFQ Variable | - not supported
Hi I am still facing this issue. Anyone can help me in this. Thanks On 14-Jul-2016 1:15 PM, "Rajesh Kapur" wrote: > Hi, > > I am facing issue while implementing suggester for my project where I am > passing CFQ value having - in between, but it is not giving me desired > output. > > Could you please let me know what should I do so that SOLR suggester > starts accepting - in CFQ parameters. > > Thanks > Rajesh Kapur >
Re: SOLR Suggester | CFQ Variable | - not supported
Hi, Thanks for the reply. Yes, i tried to search by setting CFQ=abc\-def and also as "abc-def", but no luck. Thanks. On Sun, Jul 17, 2016 at 9:19 PM, Erick Erickson wrote: > What have you tried? Did you try escaping it? > > Best, > Erick > > On Sun, Jul 17, 2016 at 7:32 AM, Rajesh Kapur > wrote: > > Hi > > > > I am still facing this issue. Anyone can help me in this. > > > > Thanks > > > > On 14-Jul-2016 1:15 PM, "Rajesh Kapur" wrote: > > > >> Hi, > >> > >> I am facing issue while implementing suggester for my project where I am > >> passing CFQ value having - in between, but it is not giving me desired > >> output. > >> > >> Could you please let me know what should I do so that SOLR suggester > >> starts accepting - in CFQ parameters. > >> > >> Thanks > >> Rajesh Kapur > >> >
Re: SOLR Suggester | CFQ Variable | - not supported
Hi, Any update on this please. Thanks. On Sun, Jul 17, 2016 at 9:25 PM, Rajesh Kapur wrote: > Hi, > > Thanks for the reply. > > Yes, i tried to search by setting CFQ=abc\-def and also as "abc-def", but > no luck. > > Thanks. > > On Sun, Jul 17, 2016 at 9:19 PM, Erick Erickson > wrote: > >> What have you tried? Did you try escaping it? >> >> Best, >> Erick >> >> On Sun, Jul 17, 2016 at 7:32 AM, Rajesh Kapur >> wrote: >> > Hi >> > >> > I am still facing this issue. Anyone can help me in this. >> > >> > Thanks >> > >> > On 14-Jul-2016 1:15 PM, "Rajesh Kapur" wrote: >> > >> >> Hi, >> >> >> >> I am facing issue while implementing suggester for my project where I >> am >> >> passing CFQ value having - in between, but it is not giving me desired >> >> output. >> >> >> >> Could you please let me know what should I do so that SOLR suggester >> >> starts accepting - in CFQ parameters. >> >> >> >> Thanks >> >> Rajesh Kapur >> >> >> > >
Re: SOLR Suggester | CFQ Variable | - not supported
Hi, Not by getting desired output i mean is that I am not able to filter out the result on the basis of CFQ parameter, and in case I am querying SOLR with CFQ value to be as normal string, i.e. no special character, it is working fine. Do let me know in case more info required. For me my main problem is how can I pass special charater like "-" in CFQ so that filtering will work. Thanks, On Wed, Jul 20, 2016 at 7:16 PM, Alessandro Benedetti wrote: > Rajesh, > I would definitely suggest you to debug your use case or at least to give > much more details : > > "is not giving me desired output" is basically useless, try to describe > what was your desidered output, what you get instead, if you have any log, > ect... > > Cheers > > On Tue, Jul 19, 2016 at 8:42 AM, Rajesh Kapur > wrote: > > > Hi, > > > > Any update on this please. > > > > Thanks. > > > > On Sun, Jul 17, 2016 at 9:25 PM, Rajesh Kapur > > wrote: > > > > > Hi, > > > > > > Thanks for the reply. > > > > > > Yes, i tried to search by setting CFQ=abc\-def and also as "abc-def", > but > > > no luck. > > > > > > Thanks. > > > > > > On Sun, Jul 17, 2016 at 9:19 PM, Erick Erickson < > erickerick...@gmail.com > > > > > > wrote: > > > > > >> What have you tried? Did you try escaping it? > > >> > > >> Best, > > >> Erick > > >> > > >> On Sun, Jul 17, 2016 at 7:32 AM, Rajesh Kapur < > rajeshkapu...@gmail.com> > > >> wrote: > > >> > Hi > > >> > > > >> > I am still facing this issue. Anyone can help me in this. > > >> > > > >> > Thanks > > >> > > > >> > On 14-Jul-2016 1:15 PM, "Rajesh Kapur" > > wrote: > > >> > > > >> >> Hi, > > >> >> > > >> >> I am facing issue while implementing suggester for my project > where I > > >> am > > >> >> passing CFQ value having - in between, but it is not giving me > > desired > > >> >> output. > > >> >> > > >> >> Could you please let me know what should I do so that SOLR > suggester > > >> >> starts accepting - in CFQ parameters. > > >> >> > > >> >> 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 >