You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Binesh Gummadi <bg...@rivetlogic.com> on 2010/06/01 16:29:16 UTC
Highlighting arbitrary text without really indexing it
Hi,
I have a use case where I have to highlight indexed field values in
arbitrary text without indexing arbitrary text.
Here is an example
*Indexed field values are*
Lucid
Platform
Solr
*Arbitrary text (not indexed)*
Lucid Imagination and Guardian News and Media today announced that the
Guardian‘s Open Platform, commercially launched today, is powered by Solr,
the Lucene Enterprise Search Server. During development of the Content API,
the Guardian tapped Lucid Imagination's deep expertise with Solr and related
technologies, unlocking the Guardian’s content for new online commercial
service models.
*Expected result
<em>Lucid</em>* Imagination and Guardian News and Media today announced that
the Guardian‘s Open *<em>Platform</em>*, commercially launched today, is
powered by *<em>Solr</em>*, the Lucene Enterprise Search Server. During
development of the Content API, the Guardian tapped Lucid Imagination's deep
expertise with *<em>Solr</em>* and related technologies, unlocking the
Guardian’s content for new online commercial service models.
One approach is to use FieldAnalysisRequestHandler which takes three inputs
1) field name 2) field value 3) query. I can provide 1 and 3 but I have to
query index to get field value(s). Querying index for values and feeding
them to FieldAnalaysisRequestHandler doesn't sound like a good option in my
opinion.
How can I achieve this? Any pointers would be helpful.
Thank You
Binesh Gummadi
Re: Highlighting arbitrary text without really indexing it
Posted by Binesh Gummadi <bg...@rivetlogic.com>.
Hi,
The only related topic I found is the following
link<http://www.lucidimagination.com/search/document/60f592f5ff0de0c5/highlight_arbitrary_text#3799814845ebf002>and
played with FieldAnalysisRequestHandler. As it expects the field
value
as an input, this is not really useful. I DO NOT want to query all possible
field values and pass it to analyzer.
Ideally in FieldAnalysisRequestHandler I would need some thing like this *
analysis.fieldvalue={useIndex}*. or a different querystring parameter for
that matter (analysis.useindexfieldvalue=true ??). Since we provide *
analysis.fieldname*, it can be used as a field to match as opposed to
reading the value from query string.
Any ideas or pointers to implement this would be appreciated.
Thanks
Binesh Gummadi
On Tue, Jun 1, 2010 at 10:29 AM, Binesh Gummadi <bg...@rivetlogic.com>wrote:
> Hi,
>
> I have a use case where I have to highlight indexed field values in
> arbitrary text without indexing arbitrary text.
>
> Here is an example
>
> *Indexed field values are*
> Lucid
> Platform
> Solr
>
> *Arbitrary text (not indexed)*
> Lucid Imagination and Guardian News and Media today announced that the
> Guardian‘s Open Platform, commercially launched today, is powered by Solr,
> the Lucene Enterprise Search Server. During development of the Content API,
> the Guardian tapped Lucid Imagination's deep expertise with Solr and related
> technologies, unlocking the Guardian’s content for new online commercial
> service models.
>
> *Expected result
> <em>Lucid</em>* Imagination and Guardian News and Media today announced
> that the Guardian‘s Open *<em>Platform</em>*, commercially launched
> today, is powered by *<em>Solr</em>*, the Lucene Enterprise Search
> Server. During development of the Content API, the Guardian tapped Lucid
> Imagination's deep expertise with *<em>Solr</em>* and related
> technologies, unlocking the Guardian’s content for new online commercial
> service models.
>
>
> One approach is to use FieldAnalysisRequestHandler which takes three inputs
> 1) field name 2) field value 3) query. I can provide 1 and 3 but I have to
> query index to get field value(s). Querying index for values and feeding
> them to FieldAnalaysisRequestHandler doesn't sound like a good option in my
> opinion.
>
> How can I achieve this? Any pointers would be helpful.
>
> Thank You
> Binesh Gummadi
>