I've been working on the highlighting component, and it's a little odd how it works. For myself, if I want terms highlighted, I'd like those in the return results. Solr, on the other hand, returns a separate xml node that represents the portions of the results that are highlighted. I know that it's incorporated that way for other reasons, but it makes patching the highlighted portions together with the doc results in Solrsharp an out-of-band experience.
Nonetheless, the approach I'm trying is one where the highlighted nodes are associated with the SearchResults object, and will have their highlighted text bits incorporated into the associated SearchRecord objects. At least that's what I'm initially trying to accomplish. -- j On 8/15/07, Charlie Jackson <[EMAIL PROTECTED]> wrote: > > Thanks for adding in those facet examples. That should help me out a > great deal. > > As for the highlighting, did you have any ideas about a good way to go > about it? I was thinking about taking a stab at it, but I want to get > your input first. > > > Thanks, > Charlie > > > -----Original Message----- > From: Jeff Rodenburg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 14, 2007 1:08 AM > To: solr-user@lucene.apache.org > Subject: Re: Solrsharp highlighting > > Pull down the latest example code from > http://solrstuff.org/svn/solrsharpwhich includes adding facets to > search results. It's really short and > simple to add facets; the example application implements one form of it. > The nice thing about the facet support is that it utilizes generics to > allow > you to have strongly typed name/value pairs for the fieldname/count > data. > > Hope this helps. > > -- jeff r. > > On 8/10/07, Charlie Jackson <[EMAIL PROTECTED]> wrote: > > > > Also, are there any examples out there of how to use Solrsharp's > > faceting capabilities? > > > > ____________________________________________ > > Charlie Jackson > > 312-873-6537 > > [EMAIL PROTECTED] > > -----Original Message----- > > From: Charlie Jackson [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 10, 2007 3:51 PM > > To: solr-user@lucene.apache.org > > Subject: Solrsharp highlighting > > > > Trying to use Solrsharp (which is a great tool, BTW) to get some > results > > in a C# application. I see the HighlightFields method of the > > QueryBuilder object and I've set it to my highlight field, but how do > I > > get at the results? I don't see anything in the SearchResults code > that > > does anything with the highlight results XML. Did I miss something? > > > > > > > > > > > > Thanks, > > > > Charlie > > > > >