You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2009/10/01 23:19:23 UTC
[jira] Updated: (SOLR-1221) Change Solr Highlighting to use the
SpanScorer with MultiTerm expansion by default
[ https://issues.apache.org/jira/browse/SOLR-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley updated SOLR-1221:
-------------------------------
Attachment: SOLR-1221.patch
OK, here's a potential workaround... simply wraps the NumericRangeQuery in another query and delegates everything. Since it won't be an instanceof MultiTermQuery, it shouldn't trigger any bugs in the highlighters.
I tried starting off with a MultiTermQuery that delegated to the contained NRQ, but it turned out to be impossible because MTQ.getEnum is protected - so can't delegate.
The easiest solution would have been just subclassing NRQ - Lucene shouldn't make stuff like this so hard... we should simply document that most of the classes are not meant to be overridden - and back compat does not extend to subclassing unless the class was specifically designed for it.
> Change Solr Highlighting to use the SpanScorer with MultiTerm expansion by default
> ----------------------------------------------------------------------------------
>
> Key: SOLR-1221
> URL: https://issues.apache.org/jira/browse/SOLR-1221
> Project: Solr
> Issue Type: Improvement
> Components: highlighter
> Reporter: Mark Miller
> Assignee: Mark Miller
> Fix For: 1.4
>
> Attachments: SOLR-1221.patch, SOLR-1221.patch, SOLR-1221.patch, SOLR-1221.patch, SOLR-1221.patch
>
>
> To improve the out of the box experience of Solr 1.4, I really think we should make this change. You will still be able to turn both off.
> Comments?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.