class_docstr: Takes in a record and returns all blocks that record belongs to
class_docstr_tok: ["Takes","in","a","record","and","returns","all","blocks","that","record","belongs","to"]
docstr: Add docs to the indices used by fingerprinters.
  
  Some fingerprinter methods depend upon having an index of
  values that a field may have in the data. This method adds
  those values to the index. If you don't have any fingerprinter
  methods that use an index, this method will do nothing.
  
  Args:
      docs: an iterator of values from your data to index. While
            not required, it is recommended that docs be a unique
            set of of those values. Indexing can be an expensive
            operation.
      field: fieldname or key associated with the values you are
             indexing
docstr_tok: ["Add","docs","to","the","indices","used","by","fingerprinters",".","Some","fingerprinter","methods","depend","upon","having","an","index","of","values","that","a","field","may","have","in","the","data",".","This","method","adds","those","values","to","the","index",".","If","you","do","n't","have","any","fingerprinter","methods","that","use","an","index",",","this","method","will","do","nothing",".","Args",":","docs",":","an","iterator","of","values","from","your","data","to","index",".","While","not","required",",","it","is","recommended","that","docs","be","a","unique","set","of","of","those","values",".","Indexing","can","be","an","expensive","operation",".","field",":","fieldname","or","key","associated","with","the","values","you","are","indexing"]
code: def index(self, docs: Docs, field: str) -> None:
      """
      Add docs to the indices used by fingerprinters.
  
      Some fingerprinter methods depend upon having an index of
      values that a field may have in the data. This method adds
      those values to the index. If you don't have any fingerprinter
      methods that use an index, this method will do nothing.
  
      Args:
          docs: an iterator of values from your data to index. While
                not required, it is recommended that docs be a unique
                set of of those values. Indexing can be an expensive
                operation.
          field: fieldname or key associated with the values you are
                 indexing
  
      """
      indices = extractIndices(self.index_fields[field])
  
      for doc in docs:
          if doc:
              for _, index, preprocess in indices:
                  index.index(preprocess(doc))
  
      for index_type, index, _ in indices:
          index.initSearch()
  
          for predicate in self.index_fields[field][index_type]:
              logger.debug("Canopy: %s", str(predicate))
              predicate.index = index
              predicate.bust_cache()
  
file_path: dedupe/dedupe/blocking.py
imports: from __future__ import annotations
  import logging
  import time
  from collections import defaultdict
  from typing import TYPE_CHECKING
label_desc: Use image node_id 4 for calling the Fingerprinter obj's underlying member method code with example usage: obj.index(docs, field) without return types