Swifttype Weight is not working for my website

As I made custom code and pulled it on Swifttype backend. Now after adding weight to my custom code still less weighted page appeared first. Please help me with it as soon as possible.