Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periods in a node's name cause search results to be truncated #13

Open
ericlingit opened this issue May 28, 2021 · 0 comments
Open

Periods in a node's name cause search results to be truncated #13

ericlingit opened this issue May 28, 2021 · 0 comments

Comments

@ericlingit
Copy link

When a node's name contains a period (.), only the strings on the right-side of the period show up in the search result.

How to reproduce

  1. Create an index
    HNSW.NEW test DIM 3
    
  2. Add nodes
    HNSW.NODE.ADD test aaa.txt DATA 3 1.0 1.0 1.0
    HNSW.NODE.ADD test bbb.txt DATA 3 1.0 1.0 1.0
    HNSW.NODE.ADD test ccc.txt DATA 3 1.0 1.0 1.0
    
  3. Search
    HNSW.SEARCH test K 3 QUERY 3 1.0 1.0 1.0
    

Expected output

[
    3,
    ['similarity', '-0', 'name', 'aaa.txt'],
    ['similarity', '-0', 'name', 'bbb.txt'],
    ['similarity', '-0', 'name', 'ccc.txt']
]

Actual output

[
    3,
    ['similarity', '-0', 'name', 'txt'],
    ['similarity', '-0', 'name', 'txt'],
    ['similarity', '-0', 'name', 'txt']
]
  • Redis version: Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923
  • libredis_hnsw.so version: v0.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant