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

Fixed redisearch query() on non hybrid runs #9

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

filipecosta90
Copy link

Fixes the following error
AttributeError: 'RediSearch' object has no attribute 'text'
( traceback sample of it ) :

Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/main.py", line 41, in run_worker
    args.build_only, args.test_only, args.total_clients, args.client_id)
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/runner.py", line 169, in run
    algo, X_train, X_test, distance, count, run_count, batch)
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/runner.py", line 75, in run_individual_query
    results = [single_query(x) for x in X_test]
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/runner.py", line 75, in <listcomp>
    results = [single_query(x) for x in X_test]
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/runner.py", line 44, in single_query
    candidates = algo.query(v, count)
  File "/home/fco/.local/lib/python3.6/site-packages/redisbench_admin/run/ann/pkg/ann_benchmarks/algorithms/redisearch.py", line 73, in query
    if self.text:
AttributeError: 'RediSearch' object has no attribute 'text'

@filipecosta90 filipecosta90 added the bug Something isn't working label Mar 11, 2022
@filipecosta90 filipecosta90 merged commit 73b674f into multiclient_tool Mar 11, 2022
@filipecosta90 filipecosta90 deleted the run.fix.text branch March 11, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants