You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2016/04/21 17:36:25 UTC

[jira] [Comment Edited] (SOLR-8992) Restore Schema API GET method functionality removed by SOLR-8736

    [ https://issues.apache.org/jira/browse/SOLR-8992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15252061#comment-15252061 ] 

Noble Paul edited comment on SOLR-8992 at 4/21/16 3:35 PM:
-----------------------------------------------------------

bq. but you don't guard against that in SchemaProps.toMap(), so NPEs are waiting to happen. 

I think I have copied the code verbatim and it is guarded against NPEs

{code}
Object val = it.fun.apply(this);
  if (val != null) topLevel.put(it.name, val);
{code}


was (Author: noble.paul):
bq. but you don't guard against that in SchemaProps.toMap(), so NPEs are waiting to happen. 

I think I have copied the code verbatim and it is guarded against NPEs

> Restore Schema API GET method functionality removed by SOLR-8736
> ----------------------------------------------------------------
>
>                 Key: SOLR-8992
>                 URL: https://issues.apache.org/jira/browse/SOLR-8992
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Steve Rowe
>            Assignee: Noble Paul
>         Attachments: SOLR-8992.patch
>
>
> The following schema API GET functionality was removed under SOLR-8736; some of this functionality should be restored:
> * {{schema/copyfields}}:
> ** The following information is no longer output:
> *** {{destDynamicBase}}: the matching dynamic field pattern for the destination
> *** {{sourceDynamicBase}}: the matching dynamic field pattern for the source
> ** The following request parameters are no longer supported:
> *** {{dest.fl}}: include only copyFields that have one of these as a destination
> *** {{source.fl}}: include only copyFields that have one of these as a source
> * {{schema/dynamicfields}}:
> ** The following request parameters are no longer supported:
> *** {{fl}}: a comma and/or space separated list of dynamic field patterns to include 
> * {{schema/fields}} and {{schema/fields/_fieldname_}}:
> ** The following information is no longer output:
> *** {{dynamicBase}}: the matching dynamic field pattern, if the {{includeDynamic}} param is given (see below) 
> ** The following request parameters are no longer supported:
> *** {{fl}}: (only supported without {{/_fieldname_}}): a comma and/or space separated list of fields to include 
> *** {{includeDynamic}}: output the matching dynamic field pattern as {{dynamicBase}}, if {{_fieldname_}}, or field(s) listed in {{fl}} param, are not explicitly declared in the schema
> * {{schema/fieldtypes}} and {{schema/fieldtypes/_typename_}}:
> ** The following information is no longer output: 
> *** {{fields}}: the fields with the given field type
> *** {{dynamicFields}}: the dynamic fields with the given field type  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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