You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Paul Elschot (JIRA)" <ji...@apache.org> on 2016/12/30 21:01:58 UTC

[jira] [Comment Edited] (LUCENE-7613) Make Surround use DisjunctionMaxQuery for multiple fields

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

Paul Elschot edited comment on LUCENE-7613 at 12/30/16 9:01 PM:
----------------------------------------------------------------

Patch of 30 Dec 2016.

This does not affect the syntax of surround, this only adapts the lucene side to make better use of lucene facilities that are newer than the initial version of surround.

This uses DisjunctionMaxQuery when a query specifies multiple fields.
The method to convert to a lucene query also allows multiple default fields.

This adds methods to BasicQueryFactory to create a new SpanNearQuery and to create a new DisjunctionMaxQuery.

This uses SpanBoostQuery when proximity (sub)queries are boosted. There is no effect on the scores yet, LUCENE-7580 can change that.

This updates the test code to use CheckHits, and one test case is added.
The changes to the test code form the larger part of the patch.



was (Author: paul.elschot@xs4all.nl):
Patch of 30 Dec 2016.

This does not affect the syntax of surround, this only adapts the lucene side to make better use of lucene facilities that are newer than the current version.

This uses DisjunctionMaxQuery when a query specifies multiple fields.
The method to convert to a lucene query also allows multiple default fields.

This adds methods to BasicQueryFactory to create a new SpanNearQuery and to create a new DisjunctionMaxQuery.

This uses SpanBoostQuery when proximity (sub)queries are boosted. There is no effect on the scores yet, LUCENE-7580 can change that.

This updates the test code to use CheckHits, and one test case is added.
The changes to the test code form the larger part of the patch.


> Make Surround use DisjunctionMaxQuery for multiple fields
> ---------------------------------------------------------
>
>                 Key: LUCENE-7613
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7613
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: LUCENE-7613.patch
>
>




--
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