Abstracted some elastic fields into constants
Added test for sort by numbers into elastic