1. A method for ranking one or more products related to a product category in online shopping, the method comprising the steps of: a. receiving a search query for the one or more products; b. extracting one or more attributes related to the product category for each of the one or more products; c. extracting one or more features related to the product category for each of the one or more attributes; d. computing the score of the one or more attributes based on the value of the one or more features; e. assigning weights to each of the one or more attributes based on the one or more features and the search query; and f. generating a product rank for each of the one or more products based on the assigned weights and the scores using a predefined relevancy-ranking algorithm.