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

Michael McCandless commented on LUCENE-1483:
--------------------------------------------

Maybe, we should add "setDocBase" to HitCollector.  Then, fix all core/contrib 
HitCollectors to respect this.  Then add a method "supportsDocBase()" which 
returns false in default impl in HitCollector.  Then, in search() if we are 
dealing w/ a HitCollector that does not supportDocBase() we have to wrap?

Alternatively, we could throw an UnsupportedOperationException in setDocBase() 
by default, catch that, and fallback to wrapping.

This way we avoid the extra collect() method call in the common cases (builtin 
HitCollectors).  Also, we save an add when the doc is not competitive.

> Change IndexSearcher to use MultiSearcher semantics for sorted searches
> -----------------------------------------------------------------------
>
>                 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
>
>
> Here is a quick test patch. FieldCache for sorting is done at the individual 
> IndexReader level and reloading the fieldcache on reopen can be much faster 
> as only changed segments need to be reloaded.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to