[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: Suggester always highlights suggestions even if we pass highlight=false
From:       Alessandro Benedetti <benedetti.alex85 () gmail ! com>
Date:       2015-07-30 11:06:29
Message-ID: CAB-fSbwcAETvGy6zCX_BogRW91_mHzsnt6GrweidTAmTGYkVzw () mail ! gmail ! com
[Download RAW message or body]


Hi Nutch,
are you sure you are using the proper parameters ?
I can not see the "highlight" param in the suggester configuration!
From the issue you linked, it seems it is necessary to disable highlighting
( default =true) .

I see it as query param for the /suggest search handler.
Am I wrong or you misunderstood the configuration?

Cheers

2015-07-30 8:50 GMT+01:00 Nutch Solr User <nutchsolruser@gmail.com>:

> I am still experiencing https://issues.apache.org/jira/browse/SOLR-6648
> issue
> with solr 5.2.1.
> even if i send highlight=false solr returns me highlighted suggestions. Any
> idea why this is happening?
> 
> My configurations :
> 
> *URL :
> *http://solrhost:solrpost
> /mycorename/suggest?suggest.dictionary=altSuggester&suggest.dictionary=mainSuggester&wt=json&suggest.q=treatm&suggest.count=20&highlight=false
>  
> *reponse : *
> 
> {
> "responseHeader": {
> "status": 0,
> "QTime": 6
> },
> "suggest": {
> "mainSuggester": {
> "treatm": {
> "numFound": 20,
> "suggestions": [
> {
> "term": "*Treatm*ent Refusal",
> "weight": 0,
> "payload": ""
> },
> {
> "term": "Withholding *Treatm*ent",
> "weight": 0,
> "payload": ""
> },
> {
> "term": "*Treatm*ent Refusal",
> "weight": 0,
> "payload": ""
> },
> {
> "term": "Withholding *Treatm*ent",
> "weight": 0,
> "payload": ""
> }
> ]
> }
> },
> "altSuggester": {
> "treatm": {
> "numFound": 2,
> "suggestions": [
> {
> "term": "*treatm*ent",
> "weight": 197,
> "payload": ""
> },
> {
> "term": "*treatm*ents",
> "weight": 5,
> "payload": ""
> }
> ]
> }
> }
> }
> }
> 
> 
> *My Configurations : *
> 
> <searchComponent name="suggest" class="solr.SuggestComponent">
> <lst name="suggester">
> <str name="name">mainSuggester</str>
> <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
> <str name="dictionaryImpl">DocumentDictionaryFactory</str>
> <str name="field">keyphrases</str>
> <str name="suggestAnalyzerFieldType">text_general</str>
> <str name="indexPath">main-suggest</str>
> <str name="buildOnStartup">true</str>
> </lst>
> <lst name="suggester">
> <str name="name">altSuggester</str>
> <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
> <str name="dictionaryImpl">HighFrequencyDictionaryFactory</str>
> <str name="field">text</str>
> <str name="suggestAnalyzerFieldType">text_general</str>
> <str name="indexPath">alt-suggest</str>
> <str name="allTermsRequired">false</str>
> <str name="buildOnStartup">true</str>
> </lst>
> </searchComponent
> 
> 
> <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
> <lst name="defaults">
> <str name="suggest">true</str>
> <str name="suggest.count">10</str>
> <str name="suggest.dictionary">mainSuggester</str>
> </lst>
> <arr name="components">
> <str>suggest</str>
> </arr>
> </requestHandler>
> 
> 
> 
> -----
> Nutch Solr User
> 
> "The ultimate search engine would basically understand everything in the
> world, and it would always give you the right thing."
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Suggester-always-highlights-suggestions-even-if-we-pass-highlight-false-tp4219846.html
>  Sent from the Solr - User mailing list archive at Nabble.com.
> 



-- 
--------------------------

Benedetti Alessandro
Visiting card - http://about.me/alessandro_benedetti
Blog - http://alexbenedetti.blogspot.co.uk

"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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic