Ahhhh. Good to know. Thanks!

On Mon, 2010-05-24 at 16:34 -0400, Erik Hatcher wrote:

> It's not true that highlighting means you have to return the field  
> from the query too.  You can specify fl independently of hl.fl
> 
>       Erik
> 
> On May 24, 2010, at 12:02 PM, dar...@ontrenet.com wrote:
> 
> > Check that the field you are highlighting on is "stored". It won't  
> > work
> > otherwise.
> >
> > Now, this also means that the field is returned from the query. For  
> > large
> > text fields to be highlighted only, this means the entire text is  
> > returned
> > for each result.
> >
> > There is a pending feature to address this, that allows you to tell  
> > Solr
> > to NOT return a specific field (to avoid unecessary transfer of  
> > large text
> > fields in this scenario).
> >
> > Darren
> >
> >> Hi
> >>
> >>
> >>
> >> I am using dismax request handler, I wanted to highlight the search
> >> field,
> >>
> >> So added
> >>
> >> <str name="hl">true</str>
> >>
> >> I was expecting like if I search for keyword "Akon" resultant docs
> >> wherever the Akon is available is bold.
> >>
> >>
> >>
> >> But I am not seeing them getting bold, could some one tell me the  
> >> real
> >> path where I should tune
> >>
> >> If I pass explicitly the hl=true does not work
> >>
> >>
> >>
> >> I have added the request handler
> >>
> >>
> >>
> >> <requestHandler name="dismax" class="solr.SearchHandler" >
> >>    <lst name="defaults">
> >>     <str name="defType">dismax</str>
> >>     <str name="echoParams">explicit</str>
> >>     <float name="tie">0.01</float>
> >>     <str name="qf">
> >>  name^20.0 coming^5 playing^4 keywords^0.1
> >>     </str>
> >>  <str name="bf">
> >>        rord(isclassic)^0.5 ord(listeners)^0.3
> >>     </str>
> >>  <str name="*,score">
> >>  name, coming, playing, keywords, score
> >>     </str>
> >>     <str name="mm">
> >>        2&lt;-1 5&lt;-2 6&lt;90%
> >>     </str>
> >>     <int name="ps">100</int>
> >>     <str name="q.alt">*:*</str>
> >>     <!-- example highlighter config, enable per-query with hl=true  
> >> -->
> >>
> >>     <str name="hl">true</str>
> >>    <!--   <str name="hl.simple.pre"><b></str>
> >>             <str name="hl.simple.post"></b></str> -->
> >>     <!-- for this field, we want no fragmenting, just highlighting  
> >> -->
> >>     <str name="f.name.hl.fragsize">0</str>
> >>     <!-- instructs Solr to return the field itself if no query terms
> >> are found -->
> >>     <!-- <str name="f.name.hl.alternateField">name</str> -->
> >>     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below  
> >> -->
> >>    </lst>
> >>  </requestHandler>
> >>
> >> regards
> >> prakash
> >>
> >
> 


Reply via email to