You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2013/05/30 07:52:20 UTC

[jira] [Moved] (LUCENE-5023) Only reader that contains fields can be added into readerContext

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

Uwe Schindler moved SOLR-4876 to LUCENE-5023:
---------------------------------------------

          Component/s:     (was: Build)
        Lucene Fields: New
    Affects Version/s:     (was: 4.2)
                       4.2
                  Key: LUCENE-5023  (was: SOLR-4876)
              Project: Lucene - Core  (was: Solr)
    
> Only reader that contains fields can be added into readerContext
> ----------------------------------------------------------------
>
>                 Key: LUCENE-5023
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5023
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 4.2
>            Reporter: Bao Yang Yang
>            Assignee: Uwe Schindler
>            Priority: Critical
>              Labels: patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When there is only Segements in solr core, which means no any indexes, in CompositeReaderContext.build() method, the atomicReader that has no fields returned should not be added into leaves. Otherwise, in SolrIndexSearcher.getDocSetNC(Query query, DocSet filter), when execute line fields.terms(t.field()), a nullpointerexception will occur since fields variable is null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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