/**
 * The purpose of those helpers is to centralize and standardize the work on detecting current running Solr Version
 */ export const Solr3_2 = 302 ; export const Solr4_0 = 400 ; export const Solr5_0 = 500 ; export const Solr5_1 = 501 ; type { { 3.2 : number , 4.0 : number , 5.0 : number , 5.1 : number } } export const versionsEnum = { 3.2 : Solr3_2 , '4.0' : Solr4_0 , '5.0' : Solr5_0 , 5.1 : Solr5_1 , } ; param solrVersion export function version ( solrVersion ) { return typeof solrVersion === 'number' ? versionsEnum [ '' + solrVersion + '.0' ] : versionsEnum [ solrVersion ] ? versionsEnum [ solrVersion ] : versionsEnum [ '3.2' ] ; }