redisearch-py icon indicating copy to clipboard operation
redisearch-py copied to clipboard

Questions about search and add

Open f771216203 opened this issue 4 years ago • 2 comments
trafficstars

Q1: When I use "search()" and show the result, I can see 1277 in total but I can only see 10 resaults. How can I see all the 1277 resaults? Q2: When I search a longer chinese words(about over 4 words), there will find nothing, but the value is exist. Q3: How to add add_document faster, when I add a 3.5G file it cost cover an hour.

f771216203 avatar Apr 22 '21 10:04 f771216203

Q1: By default the search returns 10 results. Look at the LIMIT parameter. https://oss.redislabs.com/redisearch/Commands/#ftsearch

Q2: Can you provide a full example ? It would be useful to see

  • the FT.CREATE commands with the parameters (or the dump of FT.INFO)
  • the content of the document that should be retrieved HMGETALL
  • the FT.SEARCH commands with the parameters

Q3: Did you have a look at RSCoordinator? This module manage the sharing. You can then use several redis instance and speed up the indexing. https://github.com/RediSearch/RSCoordinator

emmanuelkeller avatar Apr 22 '21 11:04 emmanuelkeller

@emmanuelkeller Thanks a lot for the answers. Q1: How could I show more than default by using on python? Q2: In the picture can see when I searhed a sentence in test1 there find nothing in my resault test2. image Q3: Can I use it on Python?

f771216203 avatar Apr 23 '21 03:04 f771216203