You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2007/12/11 21:48:43 UTC

[jira] Updated: (LUCENE-1088) PriorityQueue 'wouldBeInserted' method

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

Michael McCandless updated LUCENE-1088:
---------------------------------------

    Attachment: LUCENE-1088.patch

Attached patch.  All tests pass. I plan to commit sometime tomorrow...

> PriorityQueue 'wouldBeInserted' method
> --------------------------------------
>
>                 Key: LUCENE-1088
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1088
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Other
>            Reporter: Peter Keegan
>            Assignee: Michael McCandless
>         Attachments: LUCENE-1088.patch
>
>
> This is a request for a new method in PriorityQueue
> public boolean wouldBeInserted(Object element)
> // returns true if doc would be inserted, without inserting 
> This would allow an application to prevent duplicate entries from being added to the queue.
> Here is a reference to the discussion behind  this request:
> http://www.nabble.com/FieldSortedHitQueue-enhancement-to9733550.html#a9733550

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