lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1425) Add ConstantScore highlighting support to SpanScorer
Date Sat, 25 Oct 2008 21:30:44 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642659#action_12642659
] 

Mark Miller commented on LUCENE-1425:
-------------------------------------

Its a balancing act I suppose. Mark Harwood has suggested something similar in the past. Its
ideally where we would like to end up I would think, but at the same time, it requires a lot
more effort to implement the match logic in each query. I'll be happy to give it a shot as
I can, but it would be nice to have some sort of support on a shorter time frame, even if
inefficient. I think there are a lot of setups out there where you wont have enough matches
in a document to consume _that_ much memory. To play nice, we ship with constantscore scoring
off with the option to enable. Technically, its not really going to be any less efficient
than the current support for non constantscore wildcard,prefix,range (other than the instantiated
index).

We can certainly hold off for a while to see where a match solution might go, but if it doesn't
get much momentum, I'd like to offer this option. Its a similar rationality to the Span Highlighter
itself. It could have been done more efficiently if it broke the old API, and it could have
been done right if we built in support to core Lucene, but the way it was done - its there
and available and other ways are not.

I'll let this stew and play around with the token matcher idea for a bit if/when/as time arises.
SpanQueries, FilterQueries, ConstantScoreQueries, oh my.

> Add ConstantScore highlighting support to SpanScorer
> ----------------------------------------------------
>
>                 Key: LUCENE-1425
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1425
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: contrib/highlighter
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>         Attachments: LUCENE-1425.patch
>
>
> Its actually easy enough to support the family of constantscore queries with the new
SpanScorer. This will also remove the requirement that you rewrite queries against the main
index before highlighting (in fact, if you do, the constantscore queries will not highlight).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message