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 meghana <me...@amultek.com> on 2012/01/11 09:29:11 UTC

Highlighting issue with PlainTextEntityProcessor.

Hi all,

My Solr Configuration had one multi-valued field which is imported using
XPathEntityProcess and TemplateTransformer . Then we had  to convert it to
non-multivlaued field, We did that using PlainTextEntityProcessor and Script
Transformer. 

Search on my old configuration was working fine ,  it returns me documents
with proper highlighting. After changing multi-valued to non-multivalued
field, on search i get less highlighting for few documents than older one. 

e.g i search with search Term 'cat' , 

in old configuration i get one result as below
----------------------------
<arr name="XA">
<str>Is that a <em>cat?</em>
<str>Is that a real <em>cat</em>?</str>
<str>Oh, my God, it's a German <em>cat</em>?!</str>
<str>I won't rub this <em>cat</em></str>
<str>Drop the <em>cat</em> or I rip</str>
<str>Without <em>cats</em>?</str>
<str>Forget the <em>cat</em>, rommy.</str>
<str>You steal <em>cats</em>?</str>
</arr>


in new configuration i get it as below
----------------------------
<arr name="XA">
<str>Is that a <em>cat?</em>
<str>Is that a real <em>cat</em>?</str>
<str>Oh, my God, it's a German <em>cat</em>?!</str>
<str>I won't rub this <em>cat</em></str>
<str>Drop the <em>cat</em> or I rip</str>
</arr>

aslo for few documents , i get record but with 0 highlighting.
Do anybody have idea on this??
Thanks
Meghana


--
View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-issue-with-PlainTextEntityProcessor-tp3650004p3650004.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Highlighting issue with PlainTextEntityProcessor.

Posted by meghana <me...@amultek.com>.
Hi Erik.. Thanks for your reply.

And yes data was on index. but i found the problem , the problem was not of
PlainTextEntityProcessor. highlighting was returning in multivalued field
and in non-multivalued field there was less highlight. so i thought problem
may be in PlainTextEntityProcessor. 

But the actual problem was my Search field is very big... i increased
hl.MaxAnalyzedChar length... and it get working. 



--
View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-issue-with-PlainTextEntityProcessor-tp3650004p3653708.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Highlighting issue with PlainTextEntityProcessor.

Posted by Erick Erickson <er...@gmail.com>.
Well, are you sure that the data is *in* the index? Did you change
maxFieldLength in solrconfig.xml?

First, I'd be sure that the data is in the stored field to highlight.

Best
Erick

Out of curiosity, why did you have to change from multValued?



On Wed, Jan 11, 2012 at 3:29 AM, meghana <me...@amultek.com> wrote:
> Hi all,
>
> My Solr Configuration had one multi-valued field which is imported using
> XPathEntityProcess and TemplateTransformer . Then we had  to convert it to
> non-multivlaued field, We did that using PlainTextEntityProcessor and Script
> Transformer.
>
> Search on my old configuration was working fine ,  it returns me documents
> with proper highlighting. After changing multi-valued to non-multivalued
> field, on search i get less highlighting for few documents than older one.
>
> e.g i search with search Term 'cat' ,
>
> in old configuration i get one result as below
> ----------------------------
> <arr name="XA">
> <str>Is that a <em>cat?</em>
> <str>Is that a real <em>cat</em>?</str>
> <str>Oh, my God, it's a German <em>cat</em>?!</str>
> <str>I won't rub this <em>cat</em></str>
> <str>Drop the <em>cat</em> or I rip</str>
> <str>Without <em>cats</em>?</str>
> <str>Forget the <em>cat</em>, rommy.</str>
> <str>You steal <em>cats</em>?</str>
> </arr>
>
>
> in new configuration i get it as below
> ----------------------------
> <arr name="XA">
> <str>Is that a <em>cat?</em>
> <str>Is that a real <em>cat</em>?</str>
> <str>Oh, my God, it's a German <em>cat</em>?!</str>
> <str>I won't rub this <em>cat</em></str>
> <str>Drop the <em>cat</em> or I rip</str>
> </arr>
>
> aslo for few documents , i get record but with 0 highlighting.
> Do anybody have idea on this??
> Thanks
> Meghana
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-issue-with-PlainTextEntityProcessor-tp3650004p3650004.html
> Sent from the Solr - User mailing list archive at Nabble.com.