Taking a look to the code, basically the context field act as the default field in a Standard Query Parser. Even if having multiple context fields seems to be supported when building the auxiliary suggester index, it doesn't seem to work at query time.
If you specify the context only at query time ( through the .cfq) is not going to work , as the context field is required to build properly the auxiliary suggesting index. Any additional insight is welcome, Cheers On Thu, Jul 7, 2016 at 1:13 PM, Rajesh Kapur <rajeshkapu...@gmail.com> wrote: > 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 <rajeshkapu...@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