Skip to content

Commit

Permalink
Work-in-progress: add terms_ngrams to searchindex.js -- at an app…
Browse files Browse the repository at this point in the history
…roximately-3x size cost.
  • Loading branch information
jayaddison committed Jul 16, 2024
1 parent 88f5a1a commit b7df2b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion sphinx/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ def freeze(self) -> dict[str, Any]:
return dict(docnames=docnames, filenames=filenames, titles=titles, terms=terms,
objects=objects, objtypes=objtypes, objnames=objnames,
titleterms=title_terms, envversion=self.env.version,
alltitles=alltitles, indexentries=index_entries)
alltitles=alltitles, indexentries=index_entries,
terms_ngrams=terms_ngrams)

def label(self) -> str:
return f"{self.lang.language_name} (code: {self.lang.lang})"
Expand Down
2 changes: 1 addition & 1 deletion tests/js/fixtures/cpp/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/js/fixtures/multiterm/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/js/fixtures/partial/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b7df2b8

Please sign in to comment.