Relative Content

Tag Archive for redisredisearch

How to use INKEYS to filter by the key/document_id?

I am trying to create a search query with redis and filter based on the id of the document. It seems we need to use the INKEYS command, but it doesn’t work for the key ru203:book:details:9780002005883 even after escaping the :.

How to use INKEYS to filter by the key/document_id?

I am trying to create a search query with redis and filter based on the id of the document. It seems we need to use the INKEYS command, but it doesn’t work for the key ru203:book:details:9780002005883 even after escaping the :.

How to use INKEYS to filter by the key/document_id?

I am trying to create a search query with redis and filter based on the id of the document. It seems we need to use the INKEYS command, but it doesn’t work for the key ru203:book:details:9780002005883 even after escaping the :.

How to use INKEYS to filter by the key/document_id?

I am trying to create a search query with redis and filter based on the id of the document. It seems we need to use the INKEYS command, but it doesn’t work for the key ru203:book:details:9780002005883 even after escaping the :.

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?