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 iori...@yahoo.com 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.






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=onversion=2.2q=dellstart=0rows=10fl=*%2Cscoreqt=standardwt=standardexplainOther=hl=onhl.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: question about highlighting

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

nick19701 schrieb:

Hi Nick,

 select?indent=onversion=2.2q=dellstart=0rows=10fl=*%2Cscoreqt=standardwt=standardexplainOther=hl=onhl.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-


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 str 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


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