Ivan Saric created SOLR-18697:
---------------------------------

             Summary: LukeRequestHandler: analyzer filters are keyed by class 
simple name, so repeated factories repeat the key
                 Key: SOLR-18697
                 URL: https://issues.apache.org/jira/browse/SOLR-18697
             Project: Solr
          Issue Type: Bug
            Reporter: Ivan Saric


{{LukeRequestHandler.getAnalyzerInfo}} builds the {{filters}} (and 
{{charFilters}}) section as a {{SimpleOrderedMap}} keyed by the factory's class 
simple name. An analyzer chain with the same factory twice (for example two 
{{StopFilterFactory}} entries) therefore produces a repeated key, which renders 
as duplicate JSON properties in {{admin/luke?show=schema}}.

Found by the unique-key assertion of https://github.com/apache/solr/pull/5417 
(SIP-22, SOLR-18612): every {{SolrExample*Test.testLukeHandler}} trips it when 
the assertion is on.

The Admin UI schema browser reads {{analyzerData.filters}} as an object 
({{schema.js}}), so a fix needs to keep that in step: either make the entries 
unique (for example suffix repeats) or switch to a list and adapt the UI.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to