You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2015/06/16 10:25:00 UTC

[jira] [Updated] (LUCENE-6494) Make PayloadSpanUtil apply to other postings information

     [ https://issues.apache.org/jira/browse/LUCENE-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated LUCENE-6494:
----------------------------------
    Attachment: LUCENE-6494.patch

Here's another go at this:
* SpanQueryWrapper takes a query and a searcher, and translates the query into a spanquery equivalent
* SQW.advanceTo(doc) returns a Spans object (that will only support iteration over Span positions, not .nextDoc() or .advance()), which can be used to collect information via a SpanCollector
* PayloadSpanUtil is rewritten to use SQW under the hood

I'm not overly keen on SpanQueryWrapper as a name, but other than that I think this API is reasonable?

> Make PayloadSpanUtil apply to other postings information
> --------------------------------------------------------
>
>                 Key: LUCENE-6494
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6494
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>             Fix For: 5.2
>
>         Attachments: LUCENE-6494.patch, LUCENE-6494.patch, LUCENE-6494.patch, LUCENE-6494.patch, LUCENE-6494.patch
>
>
> With the addition of SpanCollectors, we can now get arbitrary postings information from SpanQueries.  PayloadSpanUtil does some rewriting to convert non-span queries into SpanQueries so that it can collect payloads.  It would be good to make this more generic, so that we can collect any postings information from any query (without having to make invasive changes to already optimized Scorers, etc).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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