Test that long words are omitted from the search index.
Note they do appear in the 'docs' part of searchindex.json (so they will be visible in search teasers).
This commit is contained in:
parent
d65ce55453
commit
00a55b35a8
|
@ -1,3 +1,5 @@
|
|||
Capybara capybara capybara.
|
||||
|
||||
Capybara capybara capybara.
|
||||
Capybara capybara capybara.
|
||||
|
||||
ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.
|
||||
|
|
|
@ -772,7 +772,7 @@ mod search {
|
|||
);
|
||||
assert_eq!(
|
||||
docs[&no_headers]["body"],
|
||||
"Capybara capybara capybara. Capybara capybara capybara."
|
||||
"Capybara capybara capybara. Capybara capybara capybara. ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex."
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
"title": "Unicode stress tests"
|
||||
},
|
||||
"18": {
|
||||
"body": "Capybara capybara capybara. Capybara capybara capybara.",
|
||||
"body": "Capybara capybara capybara. Capybara capybara capybara. ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.",
|
||||
"breadcrumbs": "First Chapter » No Headers",
|
||||
"id": "18",
|
||||
"title": "First Chapter"
|
||||
|
|
Loading…
Reference in New Issue