question about highlighting

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

question about highlighting

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?
Reply | Threaded
Open this post in threaded view
|

Re: question about highlighting

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
[hidden email] - 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-----
Reply | Threaded
Open this post in threaded view
|

Re: question about highlighting

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:

<lst name="params">
<str name="wt">standard</str>
<str name="rows">10</str>
<str name="explainOther"/>
<str name="start">0</str>
<str name="hl.fl">pageContent</str>
<str name="indent">on</str>
<str name="fl">pageContent</str>
<str name="hl">true</str>
<str name="q">pageContent:dell</str>
<str name="qt">standard</str>
<str name="version">2.2</str>
</lst>
</lst>
<result name="response" numFound="1448" start="0">
        <doc>
        <str name="pageContent">
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.
</str>
</doc>
Reply | Threaded
Open this post in threaded view
|

Re: question about highlighting

Chris Hostetter-3

: This is part of the response:

what's the rest of the response?

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


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


-Hoss