[
https://issues.apache.org/jira/browse/LUCENE-6466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555307#comment-14555307
]
Robert Muir commented on LUCENE-6466:
-------------------------------------
Do we really need to expose SpanSimilarity as a separate class here? I find it
confusing (e.g. no-op method that returns a null scorer), and its a lot of
plumbing. I think instead of this class, there could just be a final method on
SpanWeight base-class, to retrieve the appropriate Similarity, and impls of
normalization and so on like any other Weights.
> Move SpanQuery.getSpans() to SpanWeight
> ---------------------------------------
>
> Key: LUCENE-6466
> URL: https://issues.apache.org/jira/browse/LUCENE-6466
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Alan Woodward
> Priority: Minor
> Attachments: LUCENE-6466.patch, LUCENE-6466.patch, LUCENE-6466.patch,
> LUCENE-6466.patch, LUCENE-6466.patch
>
>
> SpanQuery.getSpans() should only be called on rewritten queries, so it seems
> to make more sense to have this being called from SpanWeight
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]