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
1f8c090a5f
commit
000a93dc77
|
@ -1,3 +1,5 @@
|
||||||
Capybara capybara capybara.
|
Capybara capybara capybara.
|
||||||
|
|
||||||
Capybara capybara capybara.
|
Capybara capybara capybara.
|
||||||
|
|
||||||
|
ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.
|
||||||
|
|
|
@ -772,7 +772,7 @@ mod search {
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
docs[&no_headers]["body"],
|
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"
|
"title": "Unicode stress tests"
|
||||||
},
|
},
|
||||||
"18": {
|
"18": {
|
||||||
"body": "Capybara capybara capybara. Capybara capybara capybara.",
|
"body": "Capybara capybara capybara. Capybara capybara capybara. ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.",
|
||||||
"breadcrumbs": "First Chapter » No Headers",
|
"breadcrumbs": "First Chapter » No Headers",
|
||||||
"id": "18",
|
"id": "18",
|
||||||
"title": "First Chapter"
|
"title": "First Chapter"
|
||||||
|
|
Loading…
Reference in New Issue