class_docstr: Search index is a collection of pages and sections (heading
  tags and their following content are sections).
docstr: Given a section on the page, the table of contents and
  the absolute url for the page create an entry in the
  index.
docstr_tok: ["Given","a","section","on","the","page",",","the","table","of","contents","and","the","absolute","url","for","the","page","create","an","entry","in","the","index","."]
code: def create_entry_for_section(
      self, section: ContentSection, toc: TableOfContents, abs_url: str
  ) -> None:
      """
      Given a section on the page, the table of contents and
      the absolute url for the page create an entry in the
      index.
      """
      toc_item = self._find_toc_by_id(toc, section.id)
  
      text = (
          " ".join(section.text)
          if self.config["indexing"] == "full"
          else ""
      )
      if toc_item is not None:
          self._add_entry(
              title=toc_item.title,
              text=text,
              loc=abs_url + toc_item.url,
          )
  
imports: from __future__ import annotations
  import json
  import logging
  import os
  import re
  import subprocess
  from html.parser import HTMLParser
  from typing import TYPE_CHECKING
label_desc: Use image node_id 5 for calling the SearchIndex obj's underlying member method code with example usage: obj.create_entry_for_section(section, toc, abs_url) without return types