Re: Highlight arbitrary text

2009-07-23 Thread Anders Melchiorsen
On Tue, 21 Jul 2009 14:25:52 +0200, Anders Melchiorsen wrote: > On Fri, 17 Jul 2009 16:04:24 +0200, Anders Melchiorsen wrote: >> However, in the normal highlighter, I am using usePhraseHighlighter and >> highlightMultiTerm and it seems that there is no way to turn these on in >> FieldAnalysisRequ

Re: Highlight arbitrary text

2009-07-21 Thread Anders Melchiorsen
On Fri, 17 Jul 2009 16:04:24 +0200, Anders Melchiorsen wrote: > On Thu, 16 Jul 2009 10:56:38 -0400, Erik Hatcher > wrote: > >> One trick worth noting is the FieldAnalysisRequestHandler can provide >> offsets from external text, which could be used for client-side >> highlighting (see the showmatc

Re: Highlight arbitrary text

2009-07-17 Thread Anders Melchiorsen
On Thu, 16 Jul 2009 10:56:38 -0400, Erik Hatcher wrote: > One trick worth noting is the FieldAnalysisRequestHandler can provide > offsets from external text, which could be used for client-side > highlighting (see the showmatch parameter too). Thanks. I tried doing this, and it almost works. Ho

Re: Highlight arbitrary text

2009-07-16 Thread Jason Rutherglen
Interesting, many sites don't store text in Lucene/Solr and so need a way to highlight text stored in a database (or some equivalent), they have two options, re-analyze the doc for the term positions or access the term vectors from Solr and hand them to the client who then performs the highlighting

Re: Highlight arbitrary text

2009-07-16 Thread Erik Hatcher
On Jul 16, 2009, at 7:41 AM, Shalin Shekhar Mangar wrote: On Thu, Jul 16, 2009 at 4:52 PM, Anders Melchiorsen wrote: What we want to do is to have an extra text highlighted by the Solr highlighter. That text should never be stored in the Solr index, but rather be provided in an HTTP reque

Re: Highlight arbitrary text

2009-07-16 Thread Shalin Shekhar Mangar
On Thu, Jul 16, 2009 at 4:52 PM, Anders Melchiorsen wrote: > > What we want to do is to have an extra text highlighted by the Solr > highlighter. That text should never be stored in the Solr index, but rather > be provided in an HTTP request along with the search query. > > Is this possible? > I

Re: Highlight arbitrary text

2009-07-16 Thread Anders Melchiorsen
On Wed, 15 Jul 2009 11:54:22 +0200, Anders Melchiorsen wrote: > Is it possible to have Solr highlight an arbitrary text that is posted at > request time? Hi again. I wonder whether my question was too terse to be well understood. What we want to do is to have an extra text highlighted by the S

Highlight arbitrary text

2009-07-15 Thread Anders Melchiorsen
Is it possible to have Solr highlight an arbitrary text that is posted at request time? Currently, we are storing an unindexed HTML field in Solr, just to have it highlighted. We would prefer to generate the HTML from the database at presentation time, in order to keep the Solr index smaller and f