You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Peter Keegan (JIRA)" <ji...@apache.org> on 2008/07/19 16:59:31 UTC

[jira] Created: (LUCENE-1341) BoostingNearQuery class (prototype)

BoostingNearQuery class (prototype)
-----------------------------------

                 Key: LUCENE-1341
                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Query/Scoring
    Affects Versions: 2.3.1
            Reporter: Peter Keegan
            Priority: Minor
             Fix For: 2.3.2


This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779

This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)


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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1341:
---------------------------------

    Attachment: lucene-1341-new-2.patch

New version that works with current trunk (8/5/09)

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, lucene-1341-new-2.patch, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Commented: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739464#action_12739464 ] 

Grant Ingersoll commented on LUCENE-1341:
-----------------------------------------

Peter, can you bring this up to date?  I think this could go into 2.9 if you can do so fairly quickly.

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Commented: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695370#action_12695370 ] 

Grant Ingersoll commented on LUCENE-1341:
-----------------------------------------

Hi Peter,

This looks good, I think it just needs some unit tests and then it will be good.

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1341:
---------------------------------

    Attachment: lucene-1341-new-1.patch

As I was debugging a unit test for BoostingNearQuery, I discovered that not all the payloads were getting read. The 'needToLoadPayload' flag on the termpos was getting reset on the last term in the span by NearSpansOrdered. Then I noticed that the term positions aren't even needed in BNQ because they were already collected by the Spans in 'matchPayload'. So, here is a newer, simpler implementation of BNQ along with some unit tests.

Peter



> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1341:
------------------------------------

    Lucene Fields: [Patch Available]  (was: [Patch Available, New])
    Fix Version/s:     (was: 2.4)
                   3.0

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Assigned: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll reassigned LUCENE-1341:
---------------------------------------

    Assignee: Grant Ingersoll

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Resolved: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll resolved LUCENE-1341.
-------------------------------------

       Resolution: Fixed
    Lucene Fields:   (was: [Patch Available])

Committed revision 801667.  thanks Peter!

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, lucene-1341-new-2.patch, LUCENE-1341-new.patch, LUCENE-1341.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1341:
------------------------------------

    Lucene Fields: [New, Patch Available]  (was: [Patch Available, New])
    Fix Version/s:     (was: 2.3.2)
                   2.4

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1341:
---------------------------------

    Attachment: BoostingNearQuery.java
                bnq.patch

Here is version of patch for Java 1.4

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Priority: Minor
>             Fix For: 2.3.2
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1341:
---------------------------------

    Attachment: LUCENE-1341-new.patch

Here is an updated patch for the 2.4 branch.
It's 6 months late because I missed Grant's e-mail requesting me to retest. I was just recently looking to see what became of the original patch.

Peter


> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1341:
------------------------------------

    Attachment: LUCENE-1341.patch

Some minor updates.  Makes the Near spans public and moves the BNQ to the payloads package.

Peter, we need tests before this can be committed.

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


Re: [jira] Commented: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by Grant Ingersoll <gs...@apache.org>.
Hmm, being 1.5 means waiting until 3.0-dev to commit, so your call...

-Grant

On Jul 19, 2008, at 11:03 AM, Peter Keegan (JIRA) wrote:

>
>    [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615004 
> #action_12615004 ]
>
> Peter Keegan commented on LUCENE-1341:
> --------------------------------------
>
> Note that this patch requires java 1.5 or later (easily modified to  
> run on 1.4)
>
>> BoostingNearQuery class (prototype)
>> -----------------------------------
>>
>>                Key: LUCENE-1341
>>                URL: https://issues.apache.org/jira/browse/LUCENE-1341
>>            Project: Lucene - Java
>>         Issue Type: Improvement
>>         Components: Query/Scoring
>>   Affects Versions: 2.3.1
>>           Reporter: Peter Keegan
>>           Priority: Minor
>>            Fix For: 2.3.2
>>
>>        Attachments: bnq.patch, BoostingNearQuery.java
>>
>>
>> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
>> This patch works but probably needs more work. I don't like the use  
>> of 'instanceof', but I didn't want to touch Spans or TermSpans.  
>> Also, the payload code is mostly a copy of what's in  
>> BoostingTermQuery and could be common-sourced somewhere. Feel free  
>> to throw darts at it :)
>
> -- 
> 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
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ








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


[jira] Commented: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615004#action_12615004 ] 

Peter Keegan commented on LUCENE-1341:
--------------------------------------

Note that this patch requires java 1.5 or later (easily modified to run on 1.4)

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Priority: Minor
>             Fix For: 2.3.2
>
>         Attachments: bnq.patch, BoostingNearQuery.java
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Peter Keegan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Keegan updated LUCENE-1341:
---------------------------------

    Attachment: BoostingNearQuery.java
                bnq.patch

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Priority: Minor
>             Fix For: 2.3.2
>
>         Attachments: bnq.patch, BoostingNearQuery.java
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1341:
------------------------------------

    Fix Version/s:     (was: 3.0)
                   2.9

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, lucene-1341-new-2.patch, LUCENE-1341-new.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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


[jira] Updated: (LUCENE-1341) BoostingNearQuery class (prototype)

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1341:
------------------------------------

    Attachment: LUCENE-1341.patch

Minor mods and some javadocs.  Looks pretty good.

I made sumPayloads more generic and protected, so that one could override it and do other things besides sum.  

> BoostingNearQuery class (prototype)
> -----------------------------------
>
>                 Key: LUCENE-1341
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1341
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>    Affects Versions: 2.3.1
>            Reporter: Peter Keegan
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: bnq.patch, bnq.patch, BoostingNearQuery.java, BoostingNearQuery.java, lucene-1341-new-1.patch, lucene-1341-new-2.patch, LUCENE-1341-new.patch, LUCENE-1341.patch, LUCENE-1341.patch
>
>
> This patch implements term boosting for SpanNearQuery. Refer to: http://www.gossamer-threads.com/lists/lucene/java-user/62779
> This patch works but probably needs more work. I don't like the use of 'instanceof', but I didn't want to touch Spans or TermSpans. Also, the payload code is mostly a copy of what's in BoostingTermQuery and could be common-sourced somewhere. Feel free to throw darts at it :)

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