Solr proximity search highlighting issue

2020-04-02 Thread Nirav Shah
Hello Dev Team,

I found some problem in highlighting module. Not all the search terms are 
getting highlighted.

Sample query: q={!complexphrase+inOrder=true}"pos1 (pos2 OR pos3)"~30&hl=true
Indexed text: "pos1 pos2 pos3 pos4"

please find attached response xml screen shot from solr.

You can see that only two terms are highlighted like, "pos1 
pos2 pos3 pos4"

The scenario is same in Solr source code since long time (I have checked in 
Solr version 4 to version 7). The scenario is when term positions are in-order 
in document and query both.

Please let me know your view on this.

Thank you,
Amit



pos1 pos2 pos3 pos4

Re: FW: Solr proximity search highlighting issue

2020-04-02 Thread Charlie Hull
I may be wrong here, but the problem may be that the match was on your 
terms pos1 and pos2 (you don't need the pos3 term to match, due to the 
OR operator) and thus that's what's been highlighted.


There's a hl.q parameter that lets you supply a different query for 
highlighting to the one you're using for searching, perhaps that could 
have a different and more forgiving pattern that made sure all your 
terms were highlighted?


Also, the XML didn't come through as this list strips attachments.

Best

Charlie

On 31/03/2020 19:27, Anil Shingala wrote:


Hello Dev Team,

I found some problem in highlighting module. Not all the search terms 
are getting highlighted.


Sample query: q={!complexphrase+inOrder=true}"pos1 (pos2 OR 
pos3)"~30&hl=true


Indexed text: "pos1 pos2 pos3 pos4"

please find attached response xml screen shot from solr.

You can see that only two terms are highlighted like, "pos1 
pos2 pos3 pos4"


The scenario is same in Solr source code since long time (I have 
checked in Solr version 4 to version 7). The scenario is when term 
positions are in-order in document and query both.


Please let me know your view on this.

Regards,

Anil Shingala

*Knovos*
10521 Rosehaven Street, Suite 300 | Fairfax, VA 22030 (USA)
Office +1 703.226.1505

Main +1 703.226.1500 | +1 877.227.5457

/ashing...@knovos.com/ 
/_|_//www.knovos.com/ 



Washington DC | New York | London | Paris | Gandhinagar | Tokyo

/Knovos was formerly also known as Capital Novus or Capital Legal 
Solutions. The information contained in this email message may be 
confidential or legally privileged. If you are not the intended 
recipient, please advise the sender by replying to this email and by 
immediately deleting all copies of this message and any attachments. 
Knovos, LLC is not authorized to practice law./




--
Charlie Hull
OpenSource Connections, previously Flax

tel/fax: +44 (0)8700 118334
mobile:  +44 (0)7767 825828
web: www.o19s.com



FW: Solr proximity search highlighting issue

2020-03-31 Thread Anil Shingala


Hello Dev Team,

I found some problem in highlighting module. Not all the search terms are 
getting highlighted.

Sample query: q={!complexphrase+inOrder=true}"pos1 (pos2 OR pos3)"~30&hl=true
Indexed text: "pos1 pos2 pos3 pos4"

please find attached response xml screen shot from solr.

You can see that only two terms are highlighted like, "pos1 
pos2 pos3 pos4"

The scenario is same in Solr source code since long time (I have checked in 
Solr version 4 to version 7). The scenario is when term positions are in-order 
in document and query both.

Please let me know your view on this.

Regards,
Anil Shingala
Knovos
10521 Rosehaven Street, Suite 300 | Fairfax, VA 22030 (USA)
Office +1 703.226.1505
Main +1 703.226.1500 | +1 877.227.5457
ashing...@knovos.com | 
www.knovos.com

Washington DC | New York | London | Paris | Gandhinagar | Tokyo

Knovos was formerly also known as Capital Novus or Capital Legal Solutions. The 
information contained in this email message may be confidential or legally 
privileged. If you are not the intended recipient, please advise the sender by 
replying to this email and by immediately deleting all copies of this message 
and any attachments. Knovos, LLC is not authorized to practice law.



pos1 pos2 pos3 pos4

Re: Highlighting issue with PlainTextEntityProcessor.

2012-01-12 Thread meghana
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.

2012-01-11 Thread Erick Erickson
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  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
> 
> 
> Is that a cat?
> Is that a real cat?
> Oh, my God, it's a German cat?!
> I won't rub this cat
> Drop the cat or I rip
> Without cats?
> Forget the cat, rommy.
> You steal cats?
> 
>
>
> in new configuration i get it as below
> 
> 
> Is that a cat?
> Is that a real cat?
> Oh, my God, it's a German cat?!
> I won't rub this cat
> Drop the cat or I rip
> 
>
> 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.


Highlighting issue with PlainTextEntityProcessor.

2012-01-11 Thread meghana
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


Is that a cat?
Is that a real cat?
Oh, my God, it's a German cat?!
I won't rub this cat
Drop the cat or I rip
Without cats?
Forget the cat, rommy.
You steal cats?



in new configuration i get it as below


Is that a cat?
Is that a real cat?
Oh, my God, it's a German cat?!
I won't rub this cat
Drop the cat or I rip


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: solr 1.4 highlighting issue

2011-09-14 Thread Dmitry Kan
Hi Mike,

Actually, the example I gave is the document in this case. So there was no
"ships", only "drilling".

Dmitry

On Wed, Sep 14, 2011 at 1:59 PM, Michael Sokolov wrote:

> The highlighter gives you snippets of text surrounding words (terms) drawn
> from the query.  The whole document should satisfy the query (ie it probably
> has ships/s somewhere else in it), but each snippet won't generally have all
> the terms.
>
> -Mike
>
>
> On 9/14/2011 2:54 AM, Dmitry Kan wrote:
>
>> Hello list,
>>
>> Not sure how many of you are still using solr 1.4 in production, but here
>> is
>> an issue with highlighting, that we've noticed:
>>
>> The query is:
>>
>> (drill AND ships) OR rigs
>>
>>
>> Excerpt from the highlighting list:
>>
>> 
>> 
>> Within the fleet of 27 floatingrigs  (semisubmersibles and
>> drillships) are 21 deepwaterdrilling
>> 
>> 
>> 
>>
>>
>>
>> Why did solr highlight "drilling" even though there is no "ships" in the
>> text?
>>
>> *
>> *--
>> Regards,
>>
>> Dmitry Kan
>>
>>
>


-- 
Regards,

Dmitry Kan


Re: solr 1.4 highlighting issue

Koji,

This looks strange to me, because I would assume, that highlighter also
applies boolean logic same way as a query parser. In this way of thinking
"drilling" should be highlighted if "ships" occurred together in the same
document. Which wasn't the case in the example.

Dmitry

On Wed, Sep 14, 2011 at 2:20 PM, Koji Sekiguchi  wrote:

> (11/09/14 15:54), Dmitry Kan wrote:
>
>> Hello list,
>>
>> Not sure how many of you are still using solr 1.4 in production, but here
>> is
>> an issue with highlighting, that we've noticed:
>>
>> The query is:
>>
>> (drill AND ships) OR rigs
>>
>>
>> Excerpt from the highlighting list:
>>
>> 
>> 
>> Within the fleet of 27 floatingrigs  (semisubmersibles and
>> drillships) are 21 deepwaterdrilling
>> 
>> 
>> 
>>
>>
>>
>> Why did solr highlight "drilling" even though there is no "ships" in the
>> text?
>>
>>
> Dmitry,
>
> This is expected, even if you use the latest version of Solr.
>
> You got the document because rigs was hit in the document, but then
> Highlighter
> tries to search individual terms of the query in the document again.
>
> koji
> --
> Check out "Query Log Visualizer" for Apache Solr
> http://www.rondhuit-demo.com/**loganalyzer/loganalyzer.html
> http://www.rondhuit.com/en/
>



-- 
Regards,

Dmitry Kan


Re: solr 1.4 highlighting issue


(11/09/14 15:54), Dmitry Kan wrote:

Hello list,

Not sure how many of you are still using solr 1.4 in production, but here is
an issue with highlighting, that we've noticed:

The query is:

(drill AND ships) OR rigs


Excerpt from the highlighting list:



Within the fleet of 27 floatingrigs  (semisubmersibles and
drillships) are 21 deepwaterdrilling






Why did solr highlight "drilling" even though there is no "ships" in the
text?



Dmitry,

This is expected, even if you use the latest version of Solr.

You got the document because rigs was hit in the document, but then Highlighter
tries to search individual terms of the query in the document again.

koji
--
Check out "Query Log Visualizer" for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/


Re: solr 1.4 highlighting issue

The highlighter gives you snippets of text surrounding words (terms) 
drawn from the query.  The whole document should satisfy the query (ie 
it probably has ships/s somewhere else in it), but each snippet won't 
generally have all the terms.


-Mike

On 9/14/2011 2:54 AM, Dmitry Kan wrote:

Hello list,

Not sure how many of you are still using solr 1.4 in production, but here is
an issue with highlighting, that we've noticed:

The query is:

(drill AND ships) OR rigs


Excerpt from the highlighting list:



Within the fleet of 27 floatingrigs  (semisubmersibles and
drillships) are 21 deepwaterdrilling






Why did solr highlight "drilling" even though there is no "ships" in the
text?

*
*--
Regards,

Dmitry Kan





solr 1.4 highlighting issue

Hello list,

Not sure how many of you are still using solr 1.4 in production, but here is
an issue with highlighting, that we've noticed:

The query is:

(drill AND ships) OR rigs


Excerpt from the highlighting list:



Within the fleet of 27 floating rigs (semisubmersibles and
drillships) are 21 deepwater drilling






Why did solr highlight "drilling" even though there is no "ships" in the
text?

*
*--
Regards,

Dmitry Kan


RE: Highlighting issue with Solr 3.1

Thank you, so much!

That was it.  

Thanks again
Raj


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] 
Sent: Monday, May 16, 2011 8:45 PM
To: solr-user@lucene.apache.org
Subject: Re: Highlighting issue with Solr 3.1

(11/05/17 3:27), Nemani, Raj wrote:
> All,
>
>
>
> I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible 
> issue with Highlighting.  I have a filed in my index called "story".  The 
> solr document that I am testing with the data in the story field starts with 
> the following snippet (remaining data in the field is not shown to keep 
> things simple)
>
>
>
> EN AMÉRICA LATINA,
>
>
>
> When I search for "america" with the highlighting enabled on the "story' 
> field, here is what I get in my "highlighting" section of the response.  I am 
> using the "ASCIIFoldingFilterFactory" to make my searches accent insensitive.
>
>
>
>  name="story"><p><a idref="0" 
> /></p><p>ENAMÉRICA  LATINA, SE HAN PRODUCIDO 
> AVANCES, CON RESPECTO A LA PROTECCIÓN.  The problem is 
> the encode html tags before the  showing up as raw html tags (because of 
> the encoding) on my search results page.  Just to make sure, I do want the 
> html to be interpreted as html not as text.  In this particular situation I 
> am not worried about the dangers of allowing such behavior.
>
>
>
> The same test performed on the same data running on 1.4.1 index does not 
> exhibit this behavior.
>
>
>
> Any help is appreciated.  Please let me know if I need to post my field type 
> definitions (index and query) from the SolrConfig.xml for the "story" field.
>
>
>
> Thanks in advance
>
>
>
> Raj
>
>

I bet you have an encoder setting in your solrconfig.xml:



If so, try to comment it out.

Koji
-- 
http://www.rondhuit.com/en/


Re: Highlighting issue with Solr 3.1


(11/05/17 3:27), Nemani, Raj wrote:

All,



I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible issue with 
Highlighting.  I have a filed in my index called "story".  The solr document 
that I am testing with the data in the story field starts with the following snippet 
(remaining data in the field is not shown to keep things simple)



EN AMÉRICA LATINA,



When I search for "america" with the highlighting enabled on the "story' field, here is what I get 
in my "highlighting" section of the response.  I am using the "ASCIIFoldingFilterFactory" to 
make my searches accent insensitive.



ENAMÉRICA LATINA, SE HAN PRODUCIDO AVANCES, CON RESPECTO A LA PROTECCIÓN. The problem is the encode html tags before the showing up as raw html tags (because of the encoding) on my search results page. Just to make sure, I do want the html to be interpreted as html not as text. In this particular situation I am not worried about the dangers of allowing such behavior. The same test performed on the same data running on 1.4.1 index does not exhibit this behavior. Any help is appreciated. Please let me know if I need to post my field type definitions (index and query) from the SolrConfig.xml for the "story" field. Thanks in advance Raj I bet you have an encoder setting in your solrconfig.xml: If so, try to comment it out. Koji -- http://www.rondhuit.com/en/


Highlighting issue with Solr 3.1

All,

 

I have just installed Solr 3.1 running on Tomcat 7.  I am noticing a possible 
issue with Highlighting.  I have a filed in my index called "story".  The solr 
document that I am testing with the data in the story field starts with the 
following snippet (remaining data in the field is not shown to keep things 
simple)

 

EN AMÉRICA LATINA, 

 

When I search for "america" with the highlighting enabled on the "story' field, 
here is what I get in my "highlighting" section of the response.  I am using 
the "ASCIIFoldingFilterFactory" to make my searches accent insensitive.  

 

EN AMÉRICA LATINA, SE HAN PRODUCIDO AVANCES, CON RESPECTO A LA PROTECCIÓN. The problem is the encode html tags before the showing up as raw html tags (because of the encoding) on my search results page. Just to make sure, I do want the html to be interpreted as html not as text. In this particular situation I am not worried about the dangers of allowing such behavior. The same test performed on the same data running on 1.4.1 index does not exhibit this behavior. Any help is appreciated. Please let me know if I need to post my field type definitions (index and query) from the SolrConfig.xml for the "story" field. Thanks in advance Raj


RE: Solr - Multi Term highlighting issue

Hi Robert, 

Thanks for your help. 

This looks much closer to my issue(may be not). Unfortunately, I can't
switch to solr version 3.1 yet. 
I hope to revisit and update this post when I do.

Thanks

thanks & regards,
Rajesh Ramana 
Enterprise Applications, Turner Broadcasting System, Inc.
404.878.7474 


-Original Message-
From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com] 
Sent: Sunday, April 24, 2011 1:58 AM
To: solr-user@lucene.apache.org
Cc: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

I think I am using ver 1.4, I 'll try to review the link you provided
later today.

Rajesh Ramana




On Apr 24, 2011, at 12:52 AM, "Robert Muir"  wrote:

> On Sat, Apr 23, 2011 at 11:36 PM, Ramanathapuram, Rajesh 
>  wrote:
>> What is really weird is if I search for srchterm1 and srchterm2 
>> separately, the results come up fine. If I search for multiple terms,

>> this issue seems to happen when the terms are separated by html tags 
>> and special characters like ') / \' etc...
>> 
> 
> What version of Solr are you using? Because you are saying the issue 
> only happens when terms involve special characters, its possible it 
> could be this bug: https://issues.apache.org/jira/browse/LUCENE-2874,
> with the overlapping terms being created by the WordDelimiterFilter.
> 
> This is fixed in 3.1.


Re: Solr - Multi Term highlighting issue

I think I am using ver 1.4, I 'll try to review the link you provided later 
today.

Rajesh Ramana




On Apr 24, 2011, at 12:52 AM, "Robert Muir"  wrote:

> On Sat, Apr 23, 2011 at 11:36 PM, Ramanathapuram, Rajesh
>  wrote:
>> What is really weird is if I search for srchterm1 and srchterm2
>> separately, the results come up fine. If I search for multiple terms,
>> this issue seems to happen when the terms are separated by html tags and
>> special characters like ') / \' etc...
>> 
> 
> What version of Solr are you using? Because you are saying the issue
> only happens when terms involve special characters, its possible it
> could be this bug: https://issues.apache.org/jira/browse/LUCENE-2874,
> with the overlapping terms being created by the WordDelimiterFilter.
> 
> This is fixed in 3.1.


Re: Solr - Multi Term highlighting issue

On Sat, Apr 23, 2011 at 11:36 PM, Ramanathapuram, Rajesh
 wrote:
> What is really weird is if I search for srchterm1 and srchterm2
> separately, the results come up fine. If I search for multiple terms,
> this issue seems to happen when the terms are separated by html tags and
> special characters like ') / \' etc...
>

What version of Solr are you using? Because you are saying the issue
only happens when terms involve special characters, its possible it
could be this bug: https://issues.apache.org/jira/browse/LUCENE-2874,
with the overlapping terms being created by the WordDelimiterFilter.

This is fixed in 3.1.


RE: Solr - Multi Term highlighting issue

Hi Koji, 

Thanks for taking time to look into this issue, I really appreciate your
efforts.

I am wondering the problem might be a document format issue(just my
guess).

What is really weird is if I search for srchterm1 and srchterm2
separately, the results come up fine. If I search for multiple terms,
this issue seems to happen when the terms are separated by html tags and
special characters like ') / \' etc... 

I am fairly new to SOLR, still trying to understand, how things work. My
guess is somewhere or somehow a whitespace is missed, and the highlight
regex based fragmentor is messing things up. 

Here it is (for review) from solrconfig.xml, if you can think of
anything obvious

  
   
   
   

 100

   

   
   

  
  70
  
  0.5
  
  [-\w ,/\n\"']{20,200}

   

   
   

 
 

   
  


I will try to open a JIRA issue in the next couple of weeks, when my
schedule slows down.

Once again, thanks much for your help.

thanks & regards,
Rajesh Ramana 


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] 
Sent: Saturday, April 23, 2011 11:07 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Thank you for sending the definitions. I thought you defined n-gram
based field for story and slug, but your definitions looks fine for me.

I don't understand why you got such strange snippets.
I think you can open a jira issue for this problem (sorry I cannot take
it at this moment) with a test case that reproduces the problem would be
much helpful.

Koji

(11/04/24 11:50), Ramanathapuram, Rajesh wrote:
> Hi Koji,
>
> My apologies for misunderstanding the question ...
>
> here is Fields ...
>
> 
>
>required="true" />
>  
>  
>  
>
>   />
>  
>   
>stored="true" />
>stored="true" />
>stored="true" />
>stored="false" />
>   
>stored="true" />
>stored="false" sortMissingFirst="true" />
>
>   
>indexed="false"/>
>  
>  
>   
>/>
> multiValued="true"/>
>stored="true" />
>stored="true" />
>/>
>stored="true" />
>stored="true" />
>
>  multiValued="true"/>
>
>  default="NOW" multiValued="false"/>
>
>  stored="true" multiValued="true"/>
> 
> storyid
>
>
> And here is Types ...
>
> 
>sortMissingLast="true" omitNorms="true"/>
>
>sortMissingLast="true" omitNorms="true"/>
>
>  
>
>   omitNorms="true" positionIncrementGap="0"/>
>   precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
>   omitNorms="true" positionIncrementGap="0"/>
>   precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
>
>   omitNorms="true" positionIncrementGap="0"/>
>   precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
>   omitNorms="true" positionIncrementGap="0"/>
>   precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
>
>   precisionStep="0" positionIncrementGap="0"/>
>
>   precisionStep="6" positionIncrementGap="0"/>
>
>
>  
>  
>  
>   omitNorms="true"/>
>   sortMissingLast="true" omitNorms="true"/>
>
>   sortMissingLast="true" omitNorms="true"/>
>   sortMissingLast="true" omitNorms="true"/>
>   sortMissingLast="true" omitNorms="true"/>
>   sortMissingLast="true" omitNorms="true"/>
>
>   />
>
>  
>   positionIncrementGap="100">
>
>  
>
>  
>
>   positionIncrementGap="100">
>
>  
>   words="stopwords.txt" enablePositionIncrements="false" />
>   generateWordParts="1" generateNumberParts="1" catenateWords="1"
> catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
>  
>
>

Re: Solr - Multi Term highlighting issue


Thank you for sending the definitions. I thought you defined n-gram based
field for story and slug, but your definitions looks fine for me.

I don't understand why you got such strange snippets.
I think you can open a jira issue for this problem (sorry I cannot take it
at this moment) with a test case that reproduces the problem would be much 
helpful.

Koji

(11/04/24 11:50), Ramanathapuram, Rajesh wrote:

Hi Koji,

My apologies for misunderstanding the question ...

here is Fields ...



  
 
 
 
   
 
 











 
 















storyid


And here is Types ...


  

  

 

 
 
 
 

 
 
 
 

 

 


 
 
 
 
 

 
 
 
 

 

 
 
   
 
   
 

 
   
 
 
 
 

 
   
   
 
 
 
 
 
   
 

 
   
 
 
 
 
 
   
   
 
 
 
 
 
 
   
 

 
   
 
 
 
 
 
 
 
   
 

 
   
 
 
 
 
   
   
 
 
 
 
 
   
 

 
   
 
 
 
 
 
   
   
 
 
 
 
 
   
 
 
   
 
 
 
 
   
 

 
   
 
 
   
 

 
   
 
 
   
 

 
   
 
 

   
 


 
 
 
 
 
 
 

 

  



thanks&  regards,
Rajesh Ramana


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
Sent: Saturday, April 23, 2011 9:51 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Hi Rajesh,

My question was how story and slug fields are defined in schema.xml.
In other words, please show us your  and  for those
fields.

Koji
--
http://www.rondhuit.com/en/


(11/04/24 10:18), Ramanathapuram, Rajesh wrote:

I don't have hl.fl defined in my schema.xml, I am passing it in as my
query parameters

story, slug

The elongated parameters is sent like this...
'hl' =>   'on',
  'hl.fragsize' =>   $fragsize,
  'hl.maxAnalyzedChars' =>   $fragsize,
  'hl.fl' =>   'slug,story',
  'hl.simple.pre' =>   '',
  'hl.simple.post' =>   '',

Here is my query params in response

   -
   -
 0
 26
   -
10

on
story, slug
standard
on
10
2.2
true
*
0
mec us chile
standard
true
storyid="  X"
 
 

Please let me know.

thanks&   regards,
Rajesh Ramana


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
Sent: Friday, April 22, 2011 8:38 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

How are your hl.fl fields defined in schema.xml?

Koji
--
http://www.rondhuit.com/en/

(11/04/23 1:23), Ramanathapuram, Rajesh wrote:

Does anybody has other suggestions?

thanks&regards,
Rajesh Ramana
Enterprise Applications, Turner Broadcasting System, Inc.
404.878.7474


-Original Message-
From: Ramanathapuram, Rajesh

[mailto:rajesh.ramanathapu...@turner.com]

Sent: Wednesday, April 20, 2011 2:51 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr - Multi Term highlighting issue

Thanks Erick.

I tried your suggestion, the issue still exists.



http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2



&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standa



rd&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=100



000&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeCo

ntiguous=false

-
 10
 
 on
 false


... Corboba. (MEC)CHILE/FOREST FIRES

...



thanks&regards,
Rajesh Ramana


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Wednesday, April 20, 2011 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any

chance? And what happens if you explicitly set this to "false" on your
query?


Best
Erick

On Wed, Apr 20,

RE: Solr - Multi Term highlighting issue

Hi Koji, 

My apologies for misunderstanding the question ... 

here is Fields ...


  
  



 
















 







   

   
   
   

storyid


And here is Types ...


 

 
 
































  

  



  






  
  





  



  





  
  






  



  







  



  




  
  





  



  





  
  





  


  




  



  


  



  


  



  



  


 








 

 



thanks & regards,
Rajesh Ramana 


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] 
Sent: Saturday, April 23, 2011 9:51 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Hi Rajesh,

My question was how story and slug fields are defined in schema.xml.
In other words, please show us your  and  for those
fields.

Koji
--
http://www.rondhuit.com/en/


(11/04/24 10:18), Ramanathapuram, Rajesh wrote:
> I don't have hl.fl defined in my schema.xml, I am passing it in as my
> query parameters
>
> story, slug
>
> The elongated parameters is sent like this...
> 'hl' =>  'on',
>  'hl.fragsize' =>  $fragsize,
>  'hl.maxAnalyzedChars' =>  $fragsize,
>  'hl.fl' =>  'slug,story',
>  'hl.simple.pre' =>  '',
>  'hl.simple.post' =>  '',
>
> Here is my query params in response
>
>   -
>   -
> 0
> 26
>   -
>10
>
>on
>story, slug
>standard
>on
>10
>2.2
>true
>*
>0
>mec us chile
>standard
>true
>storyid="  X"
> 
> 
>
> Please let me know.
>
> thanks&  regards,
> Rajesh Ramana
>
>
> -Original Message-
> From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
> Sent: Friday, April 22, 2011 8:38 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr - Multi Term highlighting issue
>
> How are your hl.fl fields defined in schema.xml?
>
> Koji
> --
> http://www.rondhuit.com/en/
>
> (11/04/23 1:23), Ramanathapuram, Rajesh wrote:
>> Does anybody has other suggestions?
>>
>> thanks&   regards,
>> Rajesh Ramana
>> Enterprise Applications, Turner Broadcasting System, Inc.
>> 404.878.7474
>>
>>
>> -Original Message-
>> From: Ramanathapuram, Rajesh
[mailto:rajesh.ramanathapu...@turner.com]
>> Sent: Wednesday, April 20, 2011 2:51 PM
>> To: solr-user@lucene.apache.org
>> Subject: RE: Solr - Multi Term highlighting issue
>>
>> Thanks Erick.
>>
>> I tried your suggestion, the issue still exists.
>>
>>
http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2
>>
&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standa
>>
rd&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=100
>>
000&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeCo
>> ntiguous=false
>>
>> -
>> 10
>> 
>> on
>> false   
>>
>>
>> ... Corboba. (MEC)CHILE/FOREST FIRES
...
>>
>>
>> thanks&   regards,
>> Rajesh Ramana
>>
>>
>> -Original Message-
>> From: Erick Erickson [mailto:erickerick...@gmail.com]
>> Sent: Wednesday, April 20, 2011 11:59 AM
>> To: solr-user@lucene.apache.org
>> Subject: Re: Solr - Multi Term highlighting issue
>>
>> Does your configuration have "hl.mergeContiguous" set to true by any
> chance? And what happens if you explicitly set this to &qu

Re: Solr - Multi Term highlighting issue


Hi Rajesh,

My question was how story and slug fields are defined in schema.xml.
In other words, please show us your  and 
for those fields.

Koji
--
http://www.rondhuit.com/en/


(11/04/24 10:18), Ramanathapuram, Rajesh wrote:

I don't have hl.fl defined in my schema.xml, I am passing it in as my
query parameters

story, slug

The elongated parameters is sent like this...
'hl' =>  'on',
 'hl.fragsize' =>  $fragsize,
 'hl.maxAnalyzedChars' =>  $fragsize,
 'hl.fl' =>  'slug,story',
 'hl.simple.pre' =>  '',
 'hl.simple.post' =>  '',

Here is my query params in response

  -
  -
0
26
  -
   10
   
   on
   story, slug
   standard
   on
   10
   2.2
   true
   *
   0
   mec us chile
   standard
   true
   storyid="  X"



Please let me know.

thanks&  regards,
Rajesh Ramana


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
Sent: Friday, April 22, 2011 8:38 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

How are your hl.fl fields defined in schema.xml?

Koji
--
http://www.rondhuit.com/en/

(11/04/23 1:23), Ramanathapuram, Rajesh wrote:

Does anybody has other suggestions?

thanks&   regards,
Rajesh Ramana
Enterprise Applications, Turner Broadcasting System, Inc.
404.878.7474


-Original Message-
From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com]
Sent: Wednesday, April 20, 2011 2:51 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr - Multi Term highlighting issue

Thanks Erick.

I tried your suggestion, the issue still exists.

http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2
&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standa
rd&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=100
000&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeCo
ntiguous=false

-
10

on
false   


... Corboba. (MEC)CHILE/FOREST FIRES ...


thanks&   regards,
Rajesh Ramana


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Wednesday, April 20, 2011 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any

chance? And what happens if you explicitly set this to "false" on your
query?


Best
Erick

On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram,

Rajesh   wrote:

Hello,

I am dealing with a highlighting issue in SOLR, I will try to explain



the issue.

When I search for a single term in solr, it wraps   tag around the



words I want to highlight, all works well.
But if I search multiple term, for most part highlighting works good
and then for some of the terms, the highlight return multiple terms

in

a sing   tag ...
srchtrm1) srchtrm2   I expect solr to return
highlight terms like...srchtrm1)...
srchtrm2

When I search for 'US mec chile', here is how my result appears
   ... Corboba. (MEC)CHILE/FOREST FIRES:
We had ... withUS   andChile   ...,
   (MEC)US 

This is what I was expecting it to be
   ... Corboba.
(MEC)CHILE/FOREST
FIRES: We had ... withUS   andChile   ...,
(MEC)US   

Here is my query params
-
-
   0
   26
-
  10
  
  on
  story, slug
  standard
  on
  10
  2.2
  true
  *
  0
  mec us chile
  standard
  true
  storyid="  X"
   
   

Here are some other links I found in the forum, but no real
conclusion

http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr
_
hi
ghlighting_question#78163c42a67cb533

I am going to try this patch, which also had no conclusive results
https://issues.apache.org/jira/browse/SOLR-1394

Has anyone come across this issue?
Any suggestions on how to fix this issue is much appreciated.


thanks&   regards,
Rajesh Ramana












RE: Solr - Multi Term highlighting issue

Also, I found this in SolrConfig.xml ...



 dismax
 explicit
 0.01
 
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
 
 
text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
 
 
popularity^0.5 recip(price,1,1000,1000)^0.3
 
 
id,name,price,score
 
 
2<-1 5<-2 6<90%
 
 100
 *:*
 
 text features name
 
 0
 
 name
 regex 

  

And also this  

  
   
   
   

 100

   

   
   

  
  70
  
  0.5
  
  [-\w ,/\n\"']{20,200}

   

   
   

 
 

   
  

Hope this sheds some light on identifying this issue. 

thanks & regards,
Rajesh Ramana 


-Original Message-
From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com] 
Sent: Saturday, April 23, 2011 9:18 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr - Multi Term highlighting issue

I don't have hl.fl defined in my schema.xml, I am passing it in as my
query parameters

story, slug 

The elongated parameters is sent like this...
'hl' => 'on',
'hl.fragsize' => $fragsize,
'hl.maxAnalyzedChars' => $fragsize,
'hl.fl' => 'slug,story',
'hl.simple.pre' => '',
'hl.simple.post' => '',

Here is my query params in response 

 -
 -
   0
   26
 -
  10
  
  on
  story, slug
  standard
  on
  10
  2.2
  true
  *
  0
  mec us chile
  standard
  true
  storyid="  X"
   
   

Please let me know.

thanks & regards,
Rajesh Ramana 


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
Sent: Friday, April 22, 2011 8:38 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

How are your hl.fl fields defined in schema.xml?

Koji
--
http://www.rondhuit.com/en/

(11/04/23 1:23), Ramanathapuram, Rajesh wrote:
> Does anybody has other suggestions?
>
> thanks&  regards,
> Rajesh Ramana
> Enterprise Applications, Turner Broadcasting System, Inc.
> 404.878.7474
>
>
> -Original Message-
> From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com]
> Sent: Wednesday, April 20, 2011 2:51 PM
> To: solr-user@lucene.apache.org
> Subject: RE: Solr - Multi Term highlighting issue
>
> Thanks Erick.
>
> I tried your suggestion, the issue still exists.
>
> http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2
> &q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standa
> rd&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=100
> 000&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeCo
> ntiguous=false
>
> -
>10
>
>    on
>    false  
>
>
> ... Corboba. (MEC)CHILE/FOREST FIRES ...
>
>
> thanks&  regards,
> Rajesh Ramana
>
>
> -Original Message-
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: Wednesday, April 20, 2011 11:59 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr - Multi Term highlighting issue
>
> Does your configuration have "hl.mergeContiguous" set to true by any
chance? And what happens if you explicitly set this to "false" on your
query?
>
> Best
> Erick
>
> On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram,
Rajesh  wrote:
>> Hello,
>>
>> I am dealing with a highlighting issue in SOLR, I will try to explain

>> the issue.
>>
>> When I search for a single term in solr, it wraps  tag around the

>> words I want to highlight, all works well.
>> But if I search multiple term, for most part highlighting works good 
>> and then for some of the terms, the highlight return multiple terms
in
>> a sing  tag ...
>> srchtrm1) srchtrm2  I expect solr to return
>> highlight terms like...srchtrm1)...
>> srchtrm2
>>
>> When I search for 'US mec chile', here is how my result appears
>>   ... Corboba. (MEC)CHILE/FOREST FIRES:
>> We had ... withUS  andChile  ...,
>>   (MEC)US
>>
>> This is what I was expecting it to be
>>   ... Corboba. 
>> (MEC)CHILE/FOREST
>> FIRES: We had ... withUS  andChile  ..., 
>> (MEC)US  
>>
>> Here is my query params
>> -
>> -
>>   0
>>   26
>> -
>>  10
>>  
>>  on
>>  story, slug
>>  standard
>>  on
>>  10
>>  2.2
>>  true
>>  *
>>  0
>>  mec us chile
>>  standard
>>  true
>>  storyid="  X"
>>   
>>   
>>
>> Here are some other links I found in the forum, but no real 
>> conclusion
>>
>> http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr
>> _
>> hi
>> ghlighting_question#78163c42a67cb533
>>
>> I am going to try this patch, which also had no conclusive results
>>https://issues.apache.org/jira/browse/SOLR-1394
>>
>> Has anyone come across this issue?
>> Any suggestions on how to fix this issue is much appreciated.
>>
>>
>> thanks&  regards,
>> Rajesh Ramana
>>
>




RE: Solr - Multi Term highlighting issue

I don't have hl.fl defined in my schema.xml, I am passing it in as my
query parameters

story, slug 

The elongated parameters is sent like this...
'hl' => 'on',
'hl.fragsize' => $fragsize,
'hl.maxAnalyzedChars' => $fragsize,
'hl.fl' => 'slug,story',
'hl.simple.pre' => '',
'hl.simple.post' => '',

Here is my query params in response 

 -
 -
   0
   26
 -
  10
  
  on
  story, slug
  standard
  on
  10
  2.2
  true
  *
  0
  mec us chile
  standard
  true
  storyid="  X"
   
   

Please let me know.

thanks & regards,
Rajesh Ramana 


-Original Message-
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] 
Sent: Friday, April 22, 2011 8:38 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

How are your hl.fl fields defined in schema.xml?

Koji
--
http://www.rondhuit.com/en/

(11/04/23 1:23), Ramanathapuram, Rajesh wrote:
> Does anybody has other suggestions?
>
> thanks&  regards,
> Rajesh Ramana
> Enterprise Applications, Turner Broadcasting System, Inc.
> 404.878.7474
>
>
> -Original Message-
> From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com]
> Sent: Wednesday, April 20, 2011 2:51 PM
> To: solr-user@lucene.apache.org
> Subject: RE: Solr - Multi Term highlighting issue
>
> Thanks Erick.
>
> I tried your suggestion, the issue still exists.
>
> http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2
> &q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standa
> rd&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=100
> 000&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeCo
> ntiguous=false
>
> -
>10
>
>on
>false  ....
>
>
> ... Corboba. (MEC)CHILE/FOREST FIRES ...
>
>
> thanks&  regards,
> Rajesh Ramana
>
>
> -Original Message-
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: Wednesday, April 20, 2011 11:59 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr - Multi Term highlighting issue
>
> Does your configuration have "hl.mergeContiguous" set to true by any
chance? And what happens if you explicitly set this to "false" on your
query?
>
> Best
> Erick
>
> On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram,
Rajesh  wrote:
>> Hello,
>>
>> I am dealing with a highlighting issue in SOLR, I will try to explain

>> the issue.
>>
>> When I search for a single term in solr, it wraps  tag around the

>> words I want to highlight, all works well.
>> But if I search multiple term, for most part highlighting works good 
>> and then for some of the terms, the highlight return multiple terms
in
>> a sing  tag ...
>> srchtrm1) srchtrm2  I expect solr to return
>> highlight terms like...srchtrm1)...
>> srchtrm2
>>
>> When I search for 'US mec chile', here is how my result appears
>>   ... Corboba. (MEC)CHILE/FOREST FIRES:
>> We had ... withUS  andChile  ...,
>>   (MEC)US
>>
>> This is what I was expecting it to be
>>   ... Corboba. 
>> (MEC)CHILE/FOREST
>> FIRES: We had ... withUS  andChile  ..., 
>> (MEC)US  
>>
>> Here is my query params
>> -
>> -
>>   0
>>   26
>> -
>>  10
>>  
>>  on
>>  story, slug
>>  standard
>>  on
>>  10
>>  2.2
>>  true
>>  *
>>  0
>>  mec us chile
>>  standard
>>  true
>>  storyid="  X"
>>   
>>   
>>
>> Here are some other links I found in the forum, but no real 
>> conclusion
>>
>> http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr
>> _
>> hi
>> ghlighting_question#78163c42a67cb533
>>
>> I am going to try this patch, which also had no conclusive results
>>https://issues.apache.org/jira/browse/SOLR-1394
>>
>> Has anyone come across this issue?
>> Any suggestions on how to fix this issue is much appreciated.
>>
>>
>> thanks&  regards,
>> Rajesh Ramana
>>
>




Re: Solr - Multi Term highlighting issue


How are your hl.fl fields defined in schema.xml?

Koji
--
http://www.rondhuit.com/en/

(11/04/23 1:23), Ramanathapuram, Rajesh wrote:

Does anybody has other suggestions?

thanks&  regards,
Rajesh Ramana
Enterprise Applications, Turner Broadcasting System, Inc.
404.878.7474


-Original Message-
From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com]
Sent: Wednesday, April 20, 2011 2:51 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr - Multi Term highlighting issue

Thanks Erick.

I tried your suggestion, the issue still exists.

http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=10&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeContiguous=false

-
   10
   
   on
   false  


... Corboba. (MEC)CHILE/FOREST FIRES ...


thanks&  regards,
Rajesh Ramana


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Wednesday, April 20, 2011 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any chance? And what 
happens if you explicitly set this to "false" on your query?

Best
Erick

On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram, 
Rajesh  wrote:

Hello,

I am dealing with a highlighting issue in SOLR, I will try to explain
the issue.

When I search for a single term in solr, it wraps  tag around the
words I want to highlight, all works well.
But if I search multiple term, for most part highlighting works good
and then for some of the terms, the highlight return multiple terms in
a sing  tag ...
srchtrm1) srchtrm2  I expect solr to return
highlight terms like...srchtrm1)...
srchtrm2

When I search for 'US mec chile', here is how my result appears
  ... Corboba. (MEC)CHILE/FOREST FIRES:
We had ... withUS  andChile  ...,
  (MEC)US

This is what I was expecting it to be
  ... Corboba. (MEC)CHILE/FOREST
FIRES: We had ... withUS  andChile  ...,
(MEC)US  

Here is my query params
-
-
  0
  26
-
 10
 
 on
 story, slug
 standard
 on
 10
 2.2
 true
 *
 0
 mec us chile
 standard
 true
 storyid="  X"
  
  

Here are some other links I found in the forum, but no real conclusion

http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr_
hi
ghlighting_question#78163c42a67cb533

I am going to try this patch, which also had no conclusive results
   https://issues.apache.org/jira/browse/SOLR-1394

Has anyone come across this issue?
Any suggestions on how to fix this issue is much appreciated.


thanks&  regards,
Rajesh Ramana








RE: Solr - Multi Term highlighting issue

Does anybody has other suggestions?

thanks & regards,
Rajesh Ramana 
Enterprise Applications, Turner Broadcasting System, Inc.
404.878.7474 


-Original Message-
From: Ramanathapuram, Rajesh [mailto:rajesh.ramanathapu...@turner.com] 
Sent: Wednesday, April 20, 2011 2:51 PM
To: solr-user@lucene.apache.org
Subject: RE: Solr - Multi Term highlighting issue

Thanks Erick. 

I tried your suggestion, the issue still exists.

http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=10&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeContiguous=false

- 
  10
  
  on
  false 


... Corboba. (MEC)CHILE/FOREST FIRES ...


thanks & regards,
Rajesh Ramana 


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Wednesday, April 20, 2011 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any chance? 
And what happens if you explicitly set this to "false" on your query?

Best
Erick

On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram, Rajesh 
 wrote:
> Hello,
>
> I am dealing with a highlighting issue in SOLR, I will try to explain 
> the issue.
>
> When I search for a single term in solr, it wraps  tag around the 
> words I want to highlight, all works well.
> But if I search multiple term, for most part highlighting works good 
> and then for some of the terms, the highlight return multiple terms in 
> a sing  tag     ...
> srchtrm1)  srchtrm2 I expect solr to return 
> highlight terms like    ... srchtrm1) ...
> srchtrm2
>
> When I search for 'US mec chile', here is how my result appears
>  ... Corboba. (MEC)CHILE/FOREST FIRES: 
> We had ... with US and Chile ...,
>  (MEC)US  
>
> This is what I was expecting it to be
>  ... Corboba. (MEC)CHILE/FOREST
> FIRES: We had ... with US and Chile ..., 
> (MEC)US 
>
> Here is my query params
> - 
> - 
>  0
>  26
> - 
>     10
>     
>     on
>     story, slug
>     standard
>     on
>     10
>     2.2
>     true
>     *
>     0
>     mec us chile
>     standard
>     true
>     storyid="  X"
>  
>  
>
> Here are some other links I found in the forum, but no real conclusion
>
> http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr_
> hi
> ghlighting_question#78163c42a67cb533
>
> I am going to try this patch, which also had no conclusive results
>   https://issues.apache.org/jira/browse/SOLR-1394
>
> Has anyone come across this issue?
> Any suggestions on how to fix this issue is much appreciated.
>
>
> thanks & regards,
> Rajesh Ramana
>


RE: Solr - Multi Term highlighting issue

Thanks Erick. 

I tried your suggestion, the issue still exists.

http://localhost:8983/searchsolr/mainCore/select?indent=on&version=2.2&q=mec+us+chile&fq=storyid%3DXXX%22&start=0&rows=10&fl=*&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=story%2C+slug&hl.fragsize=10&hl.highlightMultiTerm=true&hl.usePhraseHighlighter=true&hl.mergeContiguous=false

- 
  10 
   
  on 
  false 


... Corboba. (MEC)CHILE/FOREST FIRES ...


thanks & regards,
Rajesh Ramana 


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Wednesday, April 20, 2011 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any chance? 
And what happens if you explicitly set this to "false" on your query?

Best
Erick

On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram, Rajesh 
 wrote:
> Hello,
>
> I am dealing with a highlighting issue in SOLR, I will try to explain 
> the issue.
>
> When I search for a single term in solr, it wraps  tag around the 
> words I want to highlight, all works well.
> But if I search multiple term, for most part highlighting works good 
> and then for some of the terms, the highlight return multiple terms in 
> a sing  tag     ...
> srchtrm1)  srchtrm2 I expect solr to return 
> highlight terms like    ... srchtrm1) ... 
> srchtrm2
>
> When I search for 'US mec chile', here is how my result appears
>  ... Corboba. (MEC)CHILE/FOREST FIRES: 
> We had ... with US and Chile ...,
>  (MEC)US  
>
> This is what I was expecting it to be
>  ... Corboba. (MEC)CHILE/FOREST
> FIRES: We had ... with US and Chile ..., 
> (MEC)US 
>
> Here is my query params
> - 
> - 
>  0
>  26
> - 
>     10
>     
>     on
>     story, slug
>     standard
>     on
>     10
>     2.2
>     true
>     *
>     0
>     mec us chile
>     standard
>     true
>     storyid="  X"
>  
>  
>
> Here are some other links I found in the forum, but no real conclusion
>
> http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr_
> hi
> ghlighting_question#78163c42a67cb533
>
> I am going to try this patch, which also had no conclusive results
>   https://issues.apache.org/jira/browse/SOLR-1394
>
> Has anyone come across this issue?
> Any suggestions on how to fix this issue is much appreciated.
>
>
> thanks & regards,
> Rajesh Ramana
>


Re: Solr - Multi Term highlighting issue

Does your configuration have "hl.mergeContiguous" set to true by any
chance? And what
happens if you explicitly set this to "false" on your query?

Best
Erick

On Wed, Apr 20, 2011 at 9:43 AM, Ramanathapuram, Rajesh
 wrote:
> Hello,
>
> I am dealing with a highlighting issue in SOLR, I will try to explain
> the issue.
>
> When I search for a single term in solr, it wraps  tag around the
> words I want to highlight, all works well.
> But if I search multiple term, for most part highlighting works good and
> then for some of the terms,
> the highlight return multiple terms in a sing  tag     ...
> srchtrm1)  srchtrm2
> I expect solr to return highlight terms like    ... srchtrm1)
> ... srchtrm2
>
> When I search for 'US mec chile', here is how my result appears
>  ... Corboba. (MEC)CHILE/FOREST FIRES: We
> had ... with US and Chile ...,
>  (MEC)US  
>
> This is what I was expecting it to be
>  ... Corboba. (MEC)CHILE/FOREST
> FIRES: We had ... with US and Chile ...,
> (MEC)US 
>
> Here is my query params
> - 
> - 
>  0
>  26
> - 
>     10
>     
>     on
>     story, slug
>     standard
>     on
>     10
>     2.2
>     true
>     *
>     0
>     mec us chile
>     standard
>     true
>     storyid="  X"
>  
>  
>
> Here are some other links I found in the forum, but no real conclusion
>
> http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr_hi
> ghlighting_question#78163c42a67cb533
>
> I am going to try this patch, which also had no conclusive results
>   https://issues.apache.org/jira/browse/SOLR-1394
>
> Has anyone come across this issue?
> Any suggestions on how to fix this issue is much appreciated.
>
>
> thanks & regards,
> Rajesh Ramana
>


Solr - Multi Term highlighting issue

Hello,

I am dealing with a highlighting issue in SOLR, I will try to explain
the issue.

When I search for a single term in solr, it wraps  tag around the
words I want to highlight, all works well.
But if I search multiple term, for most part highlighting works good and
then for some of the terms, 
the highlight return multiple terms in a sing  tag ...
srchtrm1)  srchtrm2
I expect solr to return highlight terms like... srchtrm1)
... srchtrm2

When I search for 'US mec chile', here is how my result appears 
  ... Corboba. (MEC)CHILE/FOREST FIRES: We
had ... with US and Chile ...,
  (MEC)US  

This is what I was expecting it to be 
  ... Corboba. (MEC)CHILE/FOREST
FIRES: We had ... with US and Chile ...,
(MEC)US 

Here is my query params 
- 
- 
  0 
  26 
- 
 10 
  
 on 
 story, slug 
 standard 
 on 
 10 
 2.2 
 true 
 * 
 0 
 mec us chile 
 standard 
 true 
 storyid="  X" 
  
  

Here are some other links I found in the forum, but no real conclusion
 
http://www.lucidimagination.com/search/document/ac64e4f0abb6e4fc/solr_hi
ghlighting_question#78163c42a67cb533 
   
I am going to try this patch, which also had no conclusive results
   https://issues.apache.org/jira/browse/SOLR-1394 

Has anyone come across this issue?
Any suggestions on how to fix this issue is much appreciated.


thanks & regards,
Rajesh Ramana 


Re: Highlighting Issue

Sorry, see what you mean about fixed-length (minGramSize==maxGramSize).  I
see mine aren't.:(

On 9 December 2010 14:26, Koji Sekiguchi  wrote:

> (10/12/09 22:50), Shaun Campbell wrote:
>
>> OK. I'd switch to FastVectorHighlighter which cured the exceptions and
>> gives
>> me highlighting so I assumed that you could use this instead of the
>> standard
>> highlighter on n-grammed fields. I guess my query was how does the
>> highlighter now highlight synonym terms?
>>
>> Thanks
>> Shaun
>>
>
> FVH supports fixed-length (minGramSize==maxGramSize) n-gram tokeizer.
> I think FVH supports synonym fields, too.
>
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Re: Highlighting Issue


(10/12/09 22:50), Shaun Campbell wrote:

OK. I'd switch to FastVectorHighlighter which cured the exceptions and gives
me highlighting so I assumed that you could use this instead of the standard
highlighter on n-grammed fields. I guess my query was how does the
highlighter now highlight synonym terms?

Thanks
Shaun


FVH supports fixed-length (minGramSize==maxGramSize) n-gram tokeizer.
I think FVH supports synonym fields, too.

Koji
--
http://www.rondhuit.com/en/


Re: Highlighting Issue

OK. I'd switch to FastVectorHighlighter which cured the exceptions and gives
me highlighting so I assumed that you could use this instead of the standard
highlighter on n-grammed fields. I guess my query was how does the
highlighter now highlight synonym terms?

Thanks
Shaun



> As I said in my previous mail, highlighter doesn't support n-gram field.
> Please remove EdgeNGramFilter from your index analyzer and re-index.
> You'll get what you want.
>
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Re: Highlighting Issue


(10/12/09 22:13), Shaun Campbell wrote:

Koji

Thanks a lot it's stopped crashing now.  Can I ask one other question about
synonym highlighting which looks a bit puzzling?

I enter asset as my criteria and it returns through synonym matching other
terms highlighted as well.  My debug output is:

DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
investment
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
asset  management
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
investment product
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
alternativeassets

As you can see asset works well.  For the "synonyms" does it just highlight
the first n characters where n is the length of the input string?  Can't
figure out how it could do otherwise.


Shaun,

As I said in my previous mail, highlighter doesn't support n-gram field.
Please remove EdgeNGramFilter from your index analyzer and re-index.
You'll get what you want.

Koji
--
http://www.rondhuit.com/en/


Re: Highlighting Issue

Koji

Thanks a lot it's stopped crashing now.  Can I ask one other question about
synonym highlighting which looks a bit puzzling?

I enter asset as my criteria and it returns through synonym matching other
terms highlighted as well.  My debug output is:

DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
investment
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
asset management
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
investment product
DEBUG: uk.co.sjp.intranet.service.SolrServiceImpl - Highlighted tag =
alternative assets

As you can see asset works well.  For the "synonyms" does it just highlight
the first n characters where n is the length of the input string?  Can't
figure out how it could do otherwise.

Shaun








On 9 December 2010 12:51, Koji Sekiguchi  wrote:

> (10/12/09 21:22), Shaun Campbell wrote:
>
>> I'm trying to highlight a field and I'm getting an exception thrown, only
>> on
>> certain search terms though.  I am fairly certain that the cause of the
>> problem is through having synonyms on the highlighted field as I have had
>> highlighting working in the past on other fields.
>>
>> The added complication is that the field that I am highlighting also has
>> ngramming and stemming.  I think what is happening is that the
>> highlighting
>> cannot match the criteria (which happens to be a synonym) against the
>> actual
>> string retrieved from the index and crashes, I think if the string found
>> is
>> greater than a certain number of characters.
>>
>> I wonder if anyone has experienced this problem and knows how to get
>> around
>> it?
>>
>
> Basically, highlighting on synonym fields is no problem, but
> highlighter doesn't support n-gram fields. FastVectorHighlighter
> supports fixed-length (minGramSize==maxGramSize) n-gram fields.
>
> Koji
> --
> http://www.rondhuit.com/en/
>


Re: Highlighting Issue


(10/12/09 21:22), Shaun Campbell wrote:

I'm trying to highlight a field and I'm getting an exception thrown, only on
certain search terms though.  I am fairly certain that the cause of the
problem is through having synonyms on the highlighted field as I have had
highlighting working in the past on other fields.

The added complication is that the field that I am highlighting also has
ngramming and stemming.  I think what is happening is that the highlighting
cannot match the criteria (which happens to be a synonym) against the actual
string retrieved from the index and crashes, I think if the string found is
greater than a certain number of characters.

I wonder if anyone has experienced this problem and knows how to get around
it?


Basically, highlighting on synonym fields is no problem, but
highlighter doesn't support n-gram fields. FastVectorHighlighter
supports fixed-length (minGramSize==maxGramSize) n-gram fields.

Koji
--
http://www.rondhuit.com/en/


Highlighting Issue

I'm trying to highlight a field and I'm getting an exception thrown, only on
certain search terms though.  I am fairly certain that the cause of the
problem is through having synonyms on the highlighted field as I have had
highlighting working in the past on other fields.

The added complication is that the field that I am highlighting also has
ngramming and stemming.  I think what is happening is that the highlighting
cannot match the criteria (which happens to be a synonym) against the actual
string retrieved from the index and crashes, I think if the string found is
greater than a certain number of characters.

I wonder if anyone has experienced this problem and knows how to get around
it?

My field definition is:





















My query is:

sort=tagcount+desc&hl.snippets=1&start=0&q=(+%2Btagsearch:asset)+||+(+%2Btagsearchnostem:asset)+&hl.fl=tagsearch&wt=javabin&hl=true&rows=100&version=1

The exception being thrown is:

09-Dec-2010 11:59:26 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException:
org.apache.lucene.search.highlight.InvalidTokenOffsetsException: Token profo
exceeds length of provided text sized 26
at
org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:342)
at
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:89)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.lucene.search.highlight.InvalidTokenOffsetsException:
Token profo exceeds length of provided text sized 26
at
org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:254)
at
org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:335)
... 18 more

Thanks
Shaun


Re: Solr Highlighting Issue

The same as with other formats. You give it strings to drop in before
and after the highlighted text.

On Fri, Sep 17, 2010 at 9:48 AM, Dennis Gearon  wrote:
> How does highlighting work with JSON output?
>
> Dennis Gearon
>
> Signature Warning
> 
> EARTH has a Right To Life,
>  otherwise we all die.
>
> Read 'Hot, Flat, and Crowded'
> Laugh at http://www.yert.com/film.php
>
>
> --- On Fri, 9/17/10, Ahson Iqbal  wrote:
>
>> From: Ahson Iqbal 
>> Subject: Solr Highlighting Issue
>> To: solr-user@lucene.apache.org
>> Date: Friday, September 17, 2010, 12:36 AM
>> Hi All
>>
>> I have an issue in highlighting that if i query solr on
>> more than one fields
>> like "+Contents:risk +Form:1" and even i specify the
>> highlighting field is
>> "Contents" it still highlights risk as well as 1, because
>> it is specified in the
>> query.. now if i split the query as "+Contents:risk" is
>> given as main query and
>> "+Form:1" as filter query and specify "Contents" as
>> highlighting field, it works
>> fine, can any body tell me the reason.
>>
>>
>> Regards
>> Ahsan
>>
>>
>>
>>
>



-- 
Lance Norskog
goks...@gmail.com


Re: Solr Highlighting Issue

How does highlighting work with JSON output?

Dennis Gearon

Signature Warning

EARTH has a Right To Life,
  otherwise we all die.

Read 'Hot, Flat, and Crowded'
Laugh at http://www.yert.com/film.php


--- On Fri, 9/17/10, Ahson Iqbal  wrote:

> From: Ahson Iqbal 
> Subject: Solr Highlighting Issue
> To: solr-user@lucene.apache.org
> Date: Friday, September 17, 2010, 12:36 AM
> Hi All
> 
> I have an issue in highlighting that if i query solr on
> more than one fields 
> like "+Contents:risk +Form:1" and even i specify the
> highlighting field is 
> "Contents" it still highlights risk as well as 1, because
> it is specified in the 
> query.. now if i split the query as "+Contents:risk" is
> given as main query and 
> "+Form:1" as filter query and specify "Contents" as
> highlighting field, it works 
> fine, can any body tell me the reason. 
> 
> 
> Regards
> Ahsan
> 
> 
> 
>      


Re: Solr Highlighting Issue

Hi Koji

thank you very much it really works





From: Koji Sekiguchi 
To: solr-user@lucene.apache.org
Sent: Fri, September 17, 2010 7:11:31 PM
Subject: Re: Solr Highlighting Issue

  (10/09/17 16:36), Ahson Iqbal wrote:
> Hi All
>
> I have an issue in highlighting that if i query solr on more than one fields
> like "+Contents:risk +Form:1" and even i specify the highlighting field is
> "Contents" it still highlights risk as well as 1, because it is specified in 
>the
> query.. now if i split the query as "+Contents:risk" is given as main query 
and
> "+Form:1" as filter query and specify "Contents" as highlighting field, it 
>works
> fine, can any body tell me the reason.
>
>
> Regards
> Ahsan
>
Hi Ahsan,

Use hl.requireFieldMatch=true
http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch

Koji

-- 
http://www.rondhuit.com/en/


  

Re: Solr Highlighting Issue


 (10/09/17 16:36), Ahson Iqbal wrote:

Hi All

I have an issue in highlighting that if i query solr on more than one fields
like "+Contents:risk +Form:1" and even i specify the highlighting field is
"Contents" it still highlights risk as well as 1, because it is specified in the
query.. now if i split the query as "+Contents:risk" is given as main query and
"+Form:1" as filter query and specify "Contents" as highlighting field, it works
fine, can any body tell me the reason.


Regards
Ahsan


Hi Ahsan,

Use hl.requireFieldMatch=true
http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch

Koji

--
http://www.rondhuit.com/en/



Solr Highlighting Issue

Hi All

I have an issue in highlighting that if i query solr on more than one fields 
like "+Contents:risk +Form:1" and even i specify the highlighting field is 
"Contents" it still highlights risk as well as 1, because it is specified in 
the 
query.. now if i split the query as "+Contents:risk" is given as main query and 
"+Form:1" as filter query and specify "Contents" as highlighting field, it 
works 
fine, can any body tell me the reason. 


Regards
Ahsan



  

Re: Highlighting Issue

Have you looked at DisMaxRequestHandler?

Best
Erick

On Thu, Jun 3, 2010 at 11:23 AM, homerlex  wrote:

>
>
> iorixxx wrote:
> >
> > hl.requireFieldMatch=true
> >
> > http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch
> >
> >
>
> I had tried this before but it did not work because in the query I did not
> specify body:.  This does work fine if I put body:terms in the query.
>
> Is there an simpler syntax to say search for terms in the following
> properties X,Y, and Z only or do I have to do this:
> x:terms OR y:terms OR z.terms
>
> Thanks for the help.
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Highlighting-Issue-tp867567p867876.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Highlighting Issue



iorixxx wrote:
> 
> hl.requireFieldMatch=true
> 
> http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch
> 
> 

I had tried this before but it did not work because in the query I did not
specify body:.  This does work fine if I put body:terms in the query.

Is there an simpler syntax to say search for terms in the following
properties X,Y, and Z only or do I have to do this:
x:terms OR y:terms OR z.terms

Thanks for the help.

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


Re: Highlighting Issue

> We have Highlighting enabled.  We specify that we only
> want highlighting on
> the "body" property.
> 
> When doing a query like this: (body:tester OR
> project_id:704) the text
> highlighted in the body includes any text that is "tester"
> and any text that
> is "704".
> 
> Is there a way to prevent the highlighting from marking up
> values that are
> in the query that have nothing to do with actually matching
> on the body?


hl.requireFieldMatch=true

http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch





Highlighting Issue


We have Highlighting enabled.  We specify that we only want highlighting on
the "body" property.

When doing a query like this: (body:tester OR project_id:704) the text
highlighted in the body includes any text that is "tester" and any text that
is "704".

Is there a way to prevent the highlighting from marking up values that are
in the query that have nothing to do with actually matching on the body?

Thanks in advance.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-Issue-tp867567p867567.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: highlighting issue lst.name is a leaf node

I found the solution.
If somebody will run into the same problem, here is how I solved it.

- while uploading the document:

req.setParam("uprefix", "attr_");
req.setParam("fmap.content", "attr_content");
req.setParam("overwrite", "true");
req.setParam("commit", "true");

- in the query:
http://localhost:8983/solr/select?q=attr_content:%22Django%22&rows=4
- edit the solrconfig.xml in the requesthandler params

   id,title
so that you won't get the whole text content inside the response.

Regards,
Chuck

On Fri, Nov 13, 2009 at 11:21 AM, Chuck Mysak  wrote:

> Hello list,
>
> I'm new to solr but from what I'm experimenting, it's awesome.
> I have a small issue regarding the highlighting feature.
>
> It finds stuff (as I see from the query analyzer), but the highlight list
> looks something like this:
>
> 
> 
> 
> 
>
> (the files were added using  ContentStreamUpdateRequest req = new
> ContentStreamUpdateRequest("/update/extract"); and I set the "literal.id"
> to the filename)
>
> My solrconfig.xml requesthandler looks like:
>
>default="true">
> 
>  
>explicit
>
>true
>3
>30
>
>
>*
>true
>0.5
>[-\w ,/\n\"']{20,200}
>true
>  
>   
>
> The schema.xml is untouched and downloaded yesterday from the latest stable
> build.
>
> At first, I thought it had something to do with the extraction of the pdf,
> but I tried the demo xml docs also and got the same result.
>
> I'm new to this, so please help.
>
> Thank you,
>
> Chuck
>
>
>
>
>
>


highlighting issue lst.name is a leaf node

Hello list,

I'm new to solr but from what I'm experimenting, it's awesome.
I have a small issue regarding the highlighting feature.

It finds stuff (as I see from the query analyzer), but the highlight list
looks something like this:






(the files were added using  ContentStreamUpdateRequest req = new
ContentStreamUpdateRequest("/update/extract"); and I set the "literal.id" to
the filename)

My solrconfig.xml requesthandler looks like:

  

 
   explicit
   
   true
   3
   30
   
   
   *
   true
   0.5
   [-\w ,/\n\"']{20,200}
   true
 
  

The schema.xml is untouched and downloaded yesterday from the latest stable
build.

At first, I thought it had something to do with the extraction of the pdf,
but I tried the demo xml docs also and got the same result.

I'm new to this, so please help.

Thank you,

Chuck