Skip to content

Commit

Permalink
fixed initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-ko committed Oct 30, 2023
1 parent a19ddc5 commit 005dc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Use the following methods to fill, update, reset and search the index.
.. autoclass:: ElasticHash
:members:

Some useful methods for parsing results.
Extract scores from ES result:

.. currentmodule:: elastichash.util

Expand Down
2 changes: 1 addition & 1 deletion src/elastichash/elastichash.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def __init__(self, es: Elasticsearch, additional_fields: List[str] = ["image_pat
:param radius: radius for subcode, defaults to 2
:type radius: int
"""
self.radius = radius
self.num_lines_per_request = 500
self.num_decorrelate = 10000
self.es = es
Expand All @@ -60,7 +61,6 @@ def __init__(self, es: Elasticsearch, additional_fields: List[str] = ["image_pat
self.subcode_len_short = 16
self._remove_blocks(self.index_name)
self.is_decorrelated = False
self.radius = radius

def _init_perm(self):
self.perm_long = range(256)
Expand Down

0 comments on commit 005dc37

Please sign in to comment.