Hi, there,

I have a question about how to use the highlight field(hl.fl), below is
my test result. As you can see, if I don't use hl.fl in the query, the
highlighting element in the result only shows the id information. I have
to add the field name (hl.fl=TITLE) to the query to see the field
information. Is that the correct behavior? If there are multiple fields
that could contain the search string, I have to add all of them to
hl.fl?

 

Thanks

Xuesong

 

http://localhost:8080/search/select/?q=Consultant&version=2.2&start=0&ro
ws=10&indent=on&hl=true

 

-
<http://localhost:8080/search/select/?q=senior&version=2.2&start=0&rows=
10&indent=on&hl=true&hl.fl=TITLE##>  <   <lst name="highlighting">

  <      <lst name="id1" /> 

  <   </lst> 

 

 

http://localhost:8080/search/select/?q=Consultant&version=2.2&start=0&ro
ws=10&indent=on&hl=true&hl.fl=TITLE
<http://localhost:8080/search/select/?q=Consultant&version=2.2&start=0&r
ows=10&indent=on&hl=true&hl.fl=TITLE> 

 

 

<     <lst name="highlighting">

  <      <lst name="id1" /> 

             <arr name="TITLE">

               <str><em>Senior</em> Event Manager</str> 

       </arr>

  <      <lst name="id2" />

       </lst> 

 

Reply via email to