You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "meena.sriram@mathworks.com" <me...@mathworks.com> on 2015/01/13 16:51:55 UTC

Highting whole pharse

Highlighting does not highlight the whole Phrase, instead each word gets
highlighted.
I tried all the suggestions that was given, with no luck
These are my special setting I tried for phrase highlighting
hl.usePhraseHighlighter=true
hl.q="query"


http://localhost.mathworks.com:8983/solr/db/select?q=syndrome%3A%22Override+ignored+for+property%22&rows=1&fl=syndrome_id&wt=json&indent=true&hl=true&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E&hl.usePhraseHighlighter=true&hl.q=%22Override+ignored+for+property%22&hl.fragsize=1000



This is from my schema.xml
<field name="syndrome" type="text_general" indexed="true" stored="true"/>


Should I add parameters in the indexing stage itself to make this work?

Thanks for your time.

Meena




--
View this message in context: http://lucene.472066.n3.nabble.com/Highting-whole-pharse-tp4179219.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Highting whole pharse

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi,

hl.usePhraseHighlighter is valid for standard highlighter. May be you are using one of the other highlighters?

May be you have omitTermFreqAndPositions=true in definition of text_general field type?

Ahmet


On Tuesday, January 13, 2015 5:52 PM, "meena.sriram@mathworks.com" <me...@mathworks.com> wrote:
Highlighting does not highlight the whole Phrase, instead each word gets
highlighted.
I tried all the suggestions that was given, with no luck
These are my special setting I tried for phrase highlighting
hl.usePhraseHighlighter=true
hl.q="query"


http://localhost.mathworks.com:8983/solr/db/select?q=syndrome%3A%22Override+ignored+for+property%22&rows=1&fl=syndrome_id&wt=json&indent=true&hl=true&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E&hl.usePhraseHighlighter=true&hl.q=%22Override+ignored+for+property%22&hl.fragsize=1000



This is from my schema.xml
<field name="syndrome" type="text_general" indexed="true" stored="true"/>


Should I add parameters in the indexing stage itself to make this work?

Thanks for your time.

Meena




--
View this message in context: http://lucene.472066.n3.nabble.com/Highting-whole-pharse-tp4179219.html
Sent from the Solr - User mailing list archive at Nabble.com.