Appreciate that, just work perfect! It come up with another question: In response XML, can I suppress output of <result name="">.... section? Because I only need highlight section.
Appreciate in advance again! -----Original Message----- From: Ryan McKinley [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 1:44 AM To: solr-dev@lucene.apache.org Subject: Re: The ability to offering offset of keyword in search result David Xiao wrote: > Thanks. It looks like what I need but I am not quite understand how it > actually modify SolrConfig.xml to > enable highlight. > > Is there an example xml snippet for? > > You don't need to modify solrconfig.xml. Just add parameters to the query string. For example with the sample data, try: http://localhost:8983/solr/select?q=power&hl=true&hl.fl=name you'll get a highlighting section at the bottom > > > -----Original Message----- > From: Ryan McKinley [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 22, 2007 2:39 PM > To: solr-dev@lucene.apache.org > Subject: Re: The ability to offering offset of keyword in search result > > > are you looking for highlighting? > http://wiki.apache.org/solr/HighlightingParameters > > This would give you: > In God We Trust – <em>Each</em> dollar had this > > > David Xiao wrote: >> Is that a feature that can identify offset of keyword in search result? >> >> >> >> For example, if there is a following text to be indexed: >> >> In God We Trust – Each dollar had this >> >> And user search for: Each, should return with value: 19. Means first occurs >> at character 19. >> >> >> >> I am not sure if lucene or solr will, have provide this functionality? Do >> you thought that could be useful to help give some search result context? >> Like google search does. >> >> >> >> Regards, >> >> David >> >> > >