Relative Content

Tag Archive for redisredisearch

Are the results of FT.SEARCH ordered by their scores by default?

According to the documentation of FT.SEARCH, it has a WITHSCORES argument to get the internal scores of the documents, and a SCORER argument to specify a function for scoring the documents, such as the default TFIDF for texts (according to Scoring Documents). However, it does not explicitly mention that the scores are used to sort the documents, though the results do appear to be sorted by the scores in my experiments. Thus, I wonder whether sorting by the scores is indeed the default behavior?