Skip to content

search.show-item-context provides context too infrequently #7803

@aronatkins

Description

@aronatkins

Bug description

Given a hierarchical website configured with search.show-item-context: true, search results are not often presented with a path.

Steps to reproduce

Using the attached project:

project.tar.gz

Searching within this project for "admin", only one result is presented with a path:

image

Expected behavior

Most documents in a hierarchical site should include page path.

Actual behavior

Few documents in a hierarchical site include page path.

Your environment

macOS Sonoma 14.1.1
Quarto 1.4.518

Quarto check output

Quarto 1.4.518
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.9: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.518
      Path: /Users/aron/Downloads/quarto-1.4.518/bin

[✓] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/aron/Library/TinyTeX/bin/universal-darwin
      Version: 2022

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.6
      Path: /Library/Developer/CommandLineTools/usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
      knitr: 1.44
      rmarkdown: 2.25

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions