You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Gautam Worah (Jira)" <ji...@apache.org> on 2020/08/13 19:42:00 UTC

[jira] [Created] (LUCENE-9460) getPath in DirectoryTaxonomyReader should throw an exception

Gautam Worah created LUCENE-9460:
------------------------------------

             Summary: getPath in DirectoryTaxonomyReader should throw an exception
                 Key: LUCENE-9460
                 URL: https://issues.apache.org/jira/browse/LUCENE-9460
             Project: Lucene - Core
          Issue Type: Improvement
          Components: modules/facet
    Affects Versions: 8.5.2
            Reporter: Gautam Worah


This issue is a spillover from [LUCENE-9450 PR|https://github.com/apache/lucene-solr/pull/1733] and was suggested by [~mikemccand]

If the {{ordinal}} is out of bound it indicates that the user called their main {{IndexReader}} and the {{TaxonomyReader}} in the wrong order. 

In this case, we should throw an {{IllegalArgumentException}} to warn the user instead of returning {{null}}

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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