[
https://issues.apache.org/jira/browse/SOLR-18680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155097#comment-18155097
]
Ivan Saric commented on SOLR-18680:
-----------------------------------
[~ab] {{includeMetadata}}, as #5430 now has it. It follows the one naming
pattern the Schema API already uses for opt-in extras ({{includeDynamic}}), it
cannot be confused with the v2 {{meta=true}} package-info switch, and the
response property can stay {{meta}} to match the {{<meta>}} element.
{{schemaMetadata}} would read as schema-level only, while the switch also
covers fields and types. Agreed that package info and descriptive metadata
should stay separate switches.
> Part 3: Expose schema metadata in the Schema API (read and write)
> -----------------------------------------------------------------
>
> Key: SOLR-18680
> URL: https://issues.apache.org/jira/browse/SOLR-18680
> Project: Solr
> Issue Type: Sub-task
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The Schema API commands ({{add-field, replace-field, add-dynamic-field,
> replace-dynamic-field, add-field-type, replace-field-type}}) should accept
> additional metadata.
> The {{GET /schema/fields}}, {{/dynamicfields}} and {{/fieldtypes}} endpoints
> return metadata as a JSON object, not as strings flattened by {{json.nl}}. A
> new {{withMeta}} parameter, default true, should control this. A
> {{replace-field}} that changes only metadata should inform in its response
> that no reindex is needed.
> This part depends on Part 1, and uses the validation from Part 2 on incoming
> requests. It also needs tests for the v1 and v2 API paths and for the
> {{withMeta}} toggle.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]