bruno-roustant commented on a change in pull request #1039: SOLR-13968: Support postingsFormat and docValuesFormat in schema fields URL: https://github.com/apache/lucene-solr/pull/1039#discussion_r350757900
########## File path: solr/core/src/java/org/apache/solr/schema/SchemaField.java ########## @@ -154,7 +154,33 @@ public SortField getSortField(boolean top) { return type.getSortField(this, top); } - /** + /** + * @return The PostingsFormat name declared as parameter of this field; if it is not + * defined, the PostingsFormat name declared as parameter of this field type; or + * finally null if the parameter is not defined anywhere. + */ + public String getPostingsFormat() { + String postingsFormat = (String) args.get(POSTINGS_FORMAT); + if (postingsFormat == null) { + postingsFormat = type.getPostingsFormat(); + } + return postingsFormat; + } + + /** + * @return The DocValuesFormat name declared as parameter of this field; if it is not Review comment: Ok ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org