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

Uwe Schindler commented on LUCENE-1483:
---------------------------------------

{quote}bq. adding a return type to the collect/hit method? ... ie: an enum 
style result indicating "OK" or "ABORT" (with the potential of adding 
additional constants later ala FieldSelectorResult)

I think we should consider this, though this then implies an if stmt checking 
the return result & doing something, on each hit, so we should test the cost of 
doing so vs the cost of throwing an exception instead (eg we could define a 
typed exception in this new interface which means "abort the search now" and 
maybe another to mean "stop searching & return the results you got so far", 
etc.).{quote}

This looks like a really good idea. Currently to stop a iterator, I use an 
exception class that extends RuntimeException (to have it unchecked) to cancel 
a search. Very nice if you support it directly.

> Change IndexSearcher to use MultiSearcher semantics for multiple subreaders
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-1483
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1483
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.9
>            Reporter: Mark Miller
>            Priority: Minor
>         Attachments: LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, 
> LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch, 
> LUCENE-1483.patch, LUCENE-1483.patch, LUCENE-1483.patch
>
>
> FieldCache and Filters are forced down to a single segment reader, allowing 
> for individual segment reloading on reopen.

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to