Skip to content

Redisearch list indexes #36

Closed
Closed

Description

@aviperetz34

Hi,
i'm currently using RediSeacrh 0.4 in production and i use FT.INFO num_docs field to get the number of documents in my index. in this method i get less documents then i expect and last documents than showed in redis_docIdCounter, but i guess this counter is global to all indexes.
Is there a way to list indexes ? this will help me debug the problem.

Activity

  1. dvirsky commented on Mar 22, 2017

    @dvirsky
    Contributor

    hi @aviperetz34. I suggest you upgrade to a more recent version of the engine that doesn't use redis_docIdCounter (which indeed was global to all indexes). 0.4 is super old. I suggest you switch to 0.10 ASAP

  2. aviperetz34 commented on Mar 22, 2017

    @aviperetz34
    Author

    i work in Videocites.
    well this will be great but this is not possible for now.
    can you tell me the integrity of FT.INFO num_docs field in this version.

  3. dvirsky commented on Mar 22, 2017

    @dvirsky
    Contributor

    I know, I'm talking to Eitan, he's waiting for 0.11 actually to switch (a fix I'm making especially for you guys). num_docs should be 100% accurate. Things that might make it less than the number of documents you think you should have:

    1. inserting duplicate documents.
    2. deleting documents (not sure if it's even supported in 0.4)
    3. inserting invalid documents (with no tokens or fields maybe)

    I would not invest time investigating bugs in a 3 month old version...

  4. added a commit that references this issue on Oct 7, 2020
  5. added a commit that references this issue on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions