You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Updated) (JIRA)" <ji...@apache.org> on 2011/12/11 14:10:40 UTC

[jira] [Updated] (LUCENE-3636) make it possible to use searchermanager with distributed stats

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

Robert Muir updated LUCENE-3636:
--------------------------------

    Attachment: LUCENE-3636.patch

attached is a patch, but I'm not sure I like the API on indexsearcher, i think it looks confusing.

I disabled testIntermediateClose in TestSearcherManager, the concurrency is un-understandable and the test seems to rely upon how we warm today (which I changed in the patch)
                
> make it possible to use searchermanager with distributed stats
> --------------------------------------------------------------
>
>                 Key: LUCENE-3636
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3636
>             Project: Lucene - Java
>          Issue Type: Task
>            Reporter: Robert Muir
>         Attachments: LUCENE-3636.patch
>
>
> LUCENE-3555 added explicit stats methods to indexsearcher, but you must
> subclass to override this (e.g. populate with distributed stats).
> Its also impossible to then do this with SearcherManager.
> One idea is make this a factory method (or similar) on IndexSearcher instead,
> so you don't need to subclass it to override.
> Then you can initialize this in a SearcherWarmer, except there is currently
> a lot of hair in what this warming should be. This is a prime example where
> Searcher has different meaning from Reader, we should clean this up.
> Otherwise, lets make NRT/SearcherManager subclassable in such a way that 
> you can return a custom indexsearcher.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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