Question about highlighting html-tags

2016-08-22 Thread Jannicke Husby
Hi,


I have a question about searchterms and highlighting, hope you can help me.

The problem is that the HTML-tags get highlighted as well.


Example:

I search for "google". It hits the text "google" and that is a hyperlink like 
this https://www.google.com";>google.  I only want the text between 
the a-tags to get highlighted but it highlight the value in the 
"href"-attribute too.

I want it like this: https://www.google.com";>google
It get like this: https://www.google.com">google

So my question is: How can I prevent Solr to hits the HTML-tags in highlighted 
fields?



Jannicke Husby
Consultant

jannicke.hu...@acando.no

Mobile: +47 950 50 682

[http://www.acando.no/Content/101276/Bilde%20signatur.png]
Acando Norge
Tordenskioldsgate 8-10
0160 Oslo
+47 93 00 10 00
www.acando.no
Follow Acando
Facebook 
Twitter 
Linkedin


Re: Question About Highlighting

2011-02-22 Thread Ahsan |qbal
Hi All

I even tried that (Appending &hl.usePhraseHighlighter=true) but it still
does not work.

Please help
Regards
Ahsan Iqbal

On Fri, Feb 18, 2011 at 12:30 AM, Ahmet Arslan  wrote:

> > I had a requirement to implement phrase proximity like ["a
> > b c" w/5 "d e f"] for
> > this i have implemented a custom query parser plug in which
> > I make use of nested
> > span queries to fulfill this requirement. Now it looks that
> > documents are
> > filtered correctly, but there is an issue in highlighting
> > that also highlights
> > the terms that are alone(not in phrase), can some body
> > suggest me a fix to this
> > issue
> >
>
> Appending &hl.usePhraseHighlighter=true should work.
>
>
>
>


Re: Question About Highlighting

2011-02-17 Thread Ahmet Arslan
> I had a requirement to implement phrase proximity like ["a
> b c" w/5 "d e f"] for 
> this i have implemented a custom query parser plug in which
> I make use of nested 
> span queries to fulfill this requirement. Now it looks that
> documents are 
> filtered correctly, but there is an issue in highlighting
> that also highlights 
> the terms that are alone(not in phrase), can some body
> suggest me a fix to this 
> issue 
> 

Appending &hl.usePhraseHighlighter=true should work.


  


Re: question about highlighting

2007-02-13 Thread Chris Hostetter

: This is part of the response:

what's the rest of the response?

highlighting info comes in a seperate block, after the  section.


(for the record, "hl=on" should work fine too)


-Hoss



Re: question about highlighting

2007-02-13 Thread nick19701

Hi, Andre,
I tried hl=true. But it still doesn't work.

Here is my request:

select?indent=on&version=2.2&q=pageContent%3Adell&start=0&rows=10&fl=pageContent&qt=standard&wt=standard&explainOther=&hl=true&hl.fl=pageContent

This is part of the response:


standard
10

0
pageContent
on
pageContent
true
pageContent:dell
standard
2.2





Dell Business has their Dell W2306C 23" LCD HD-Ready TV for $649 - $150 with
coupon code  $$6FHFKBB6BSBJ  [Exp 2/6, 1900 uses] =  $499  with free
shipping. Features 1366 x 768 resolution, 550:1 contrast ratio, 16 ms
response time.  
Dell W2607C 26" LCD HDTV  $899 - $200 code  WT4035HNC7MGB2  =  $799 
Dell Dell W5001C 50" Plasma HDTV  $2599 - $400 code  BXMHNRV49$D744  = 
$2199 
Click Here 
dell has got to make these alot cheaper if they want to stay competetive. 
Holy overpriced TV Batman. 


-- 
View this message in context: 
http://www.nabble.com/question-about-highlighting-tf3221641.html#a8948538
Sent from the Solr - User mailing list archive at Nabble.com.



Re: question about highlighting

2007-02-13 Thread Andre Halama
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nick19701 schrieb:

Hi Nick,

> select?indent=on&version=2.2&q=dell&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=pageContent

try hl=true...

Hth,

Andre
- --
Andre Halama
hbz, Gruppe Portale, Projekt vascoda (TB1), Softwareentwicklung
- - DigiBib, Online-Fernleihe, Projekt vascoda -
Jülicher Str. 6, 50674 Köln, Deutschland
Telefon +49-221-40075-229, Fax +49-221-40075-190
[EMAIL PROTECTED] - www.vascoda.de - www.hbz-nrw.de
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFF0eqUKWvEdxF+FtQRAjwJAJ0fiS2dnQlAwGzUQHf9TPi8nOVrPgCgxYtl
ikt2z3HAqzeJbKmPT8mOS1o=
=sUBb
-END PGP SIGNATURE-


question about highlighting

2007-02-13 Thread nick19701

I can't locate any concrete examples of using highlighting.
After checking out the following wiki, 
http://wiki.apache.org/solr/HighlightingParameters

I sent my solr server the following request:

select?indent=on&version=2.2&q=dell&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=pageContent

pageContent is the default search field which I need highlighting. But the
xml response I got doesn't include any highlight info.
What have I done wrong?
-- 
View this message in context: 
http://www.nabble.com/question-about-highlighting-tf3221641.html#a8947578
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Newbie question about highlighting

2006-11-26 Thread David Halsted

Perfect -- I saw that but misunderstood it.  Thanks, Yonik.

Dave

On 11/26/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:

On 11/26/06, David Halsted <[EMAIL PROTECTED]> wrote:
> Do I have to search and find the
> spots to reinsert the snippets so I get the highlighting in the
> context of the original paragraph, or is there some easier way?

Hi David,
I think hl.fragsize=0 might do what you want.
From http://wiki.apache.org/solr/HighlightingParameters:

"""
hl.fragsize

The size, in characters, of fragments to consider for highlighting.
"0" indicates that the whole field value should be used (no
fragmenting). This parameter accepts per-field overrides.

The default value is "100".
"""

-Yonik



Re: Newbie question about highlighting

2006-11-26 Thread Yonik Seeley

On 11/26/06, David Halsted <[EMAIL PROTECTED]> wrote:

Do I have to search and find the
spots to reinsert the snippets so I get the highlighting in the
context of the original paragraph, or is there some easier way?


Hi David,
I think hl.fragsize=0 might do what you want.

From http://wiki.apache.org/solr/HighlightingParameters:


"""
hl.fragsize

The size, in characters, of fragments to consider for highlighting.
"0" indicates that the whole field value should be used (no
fragmenting). This parameter accepts per-field overrides.

The default value is "100".
"""

-Yonik


Newbie question about highlighting

2006-11-26 Thread David Halsted

Please forgive if this question is already answered on the Wiki or in
the mailing list archives -- I had a look and didn't quite see it but
may have missed something.

Question is pretty simple; I'm just not sure how to merge highlighted
snippets back into a stored field.  For example, I have a stored field
containing a paragraph of three lines or so. I want display the
paragraph as a whole, with the found terms highlighted.   What I get
back from a Solr query is the paragraph in  tags in the main
results, and then a set of  snippets with highlights representing only
part of the original paragraph.  Do I have to search and find the
spots to reinsert the snippets so I get the highlighting in the
context of the original paragraph, or is there some easier way?

Thanks in advance,
Dave Halsted