Yeah great idea, thanks. Does anyone know if there is code out there that
will do this sort of thing?

Matt


On Thu, Apr 23, 2009 at 3:23 PM, Ensdorf Ken <ensd...@zoominfo.com> wrote:

> > Hi,
> >
> > I'm storing some raw xml in solr (stored and non-tokenized). I'd like
> > to
> > highlight hits in the response, obviously this is problematic as the
> > highlighting elements are also xml. So if I match an attribute value or
> > tag
> > name, the xml response is messed up. Is there a way to highlight only
> > text,
> > that is not part of an xml element? As in, only the text content?
>
> You could create a custom Analyzer or Tokenizer that strips everything but
> the text content.
>
> -Ken
>
>

Reply via email to