1
0
mirror of synced 2026-01-04 09:06:46 -05:00
Commit Graph

1295 Commits

Author SHA1 Message Date
Peter Bengtsson
5d080b74e0 Search with and on title first and favor that more (#22730)
* search improvements

* expose search result score on debug=1 qs (#22452)

* Search index improvements (#22428)

* concatenate headings for search ranking (#22445)

* search index improvements

* update index

* add data-search property used to create search records

* direct match title and normalize results to one per article

* the search index is getting huge

* add chinese lang, intro, and boost

* create a article level record with no heading for each article

* remove chinese language and exact match, boost breadcrumbs

* break out debug mode into separate branch

* break adding chinese out into another branch

* one record per article remove limits

* revert added spaces

* revert adding property on article page

* concatenate headings for search ranking

* remove slug property, fix test

* update record format in tests

* revert adding this property back

* scrape article-body not contents

* adding heading property to tests

* add headings to content property

* Update script/search/parse-page-sections-into-records.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Update script/search/parse-page-sections-into-records.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* search by popularity (#22496)

* search by popularity

* adjust factors based on length of query and normalize Lunr score

* Apply suggestions from code review

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>

* turn html into text with appropriate spaces (#22528)

* turn HTML into text with appropriate spaces

Part of #1141

* fix unit test

* improve tests

* small refactor

* slice the search results .content (#22514)

* search by popularity

* adjust factors based on length of query and normalize Lunr score

* slice the search result .content

Part of #1142

* Update lib/search/lunr-search.js

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>

* truncate translated search index records (#22475)

* truncate translated search index records

* page entire page object

* revert search indexes

* try reverting search indexes again...

* out of sync with main in parent branch so reverting last commit again

* rever deleted indexes

* remove debug lines

* correct package-lock.json

* slice content string better (#22586)

Part of #1149

* include home pages in the search (#22568)

* Search remove hyphen as token (#22584)

* slice better when not present in content (#22672)

* fix missing search breadcrumbs (#22681)

* fix missing search breadcrumbs

* hopefully fix tests

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Highlight based on combined matchData (#22692)

* highlight based on combined matchData

* refactoring

* remove results when lang or version changes (#22697)

* search with AND on title first and favor that more

* commented out code

* Update lib/search/lunr-search.js

* only apply the wildcard to the title search if the last word is short

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-11-16 20:22:09 +00:00
Peter Bengtsson
b1bbafef70 use a smart got() retry in failbot (#22867)
Part of #1225
2021-11-16 19:46:20 +00:00
GitHub Actions
f43957f6ea update search indexes 2021-11-16 18:02:02 +00:00
Rachael Sewell
4cab1e7bc9 stop gap for open redirect (#22839) 2021-11-16 17:48:12 +00:00
Octomerger Bot
1066e91d05 Branch was updated using the 'autoupdate branch' Actions workflow. 2021-11-16 11:49:04 -05:00
Peter Bengtsson
ed53e2dd77 use @github/failbot with got (#22842)
* use @github/failbot

Part of #1222

* tests are not working yet

* fix unit tests

* cleanup
2021-11-16 16:48:40 +00:00
rachmari
0afe1a6bf7 Action ran graphql script"update-files" 2021-11-16 16:39:27 +00:00
github-openapi-bot
faa20aee57 Update OpenAPI Descriptions 2021-11-16 10:23:18 +00:00
GitHub Actions
c2e558957f update search indexes 2021-11-16 10:00:03 +00:00
rachmari
34a762dbcc 🤖 ran script/update-enterprise-dates.js 2021-11-16 02:45:41 +00:00
GitHub Actions
7056a436b8 update search indexes 2021-11-16 02:13:01 +00:00
Peter Bengtsson
fab5bef972 Avoid an infinite FailBot.report() loop (#22837)
* Avoid an infinite FailBot.report() loop

Part of #1221

* Update middleware/events.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-11-16 01:05:03 +00:00
GitHub Actions
857bffa76e update search indexes 2021-11-15 18:06:24 +00:00
github-openapi-bot
fdf6ff03b0 Merge pull request #22823 from github/openapi-update-c9eaa42243c79c3cc71745e015da3073851378001a517d197607b7333f62230b
Update OpenAPI Descriptions
2021-11-15 11:25:01 +00:00
GitHub Actions
63599e43d6 update search indexes 2021-11-15 10:02:58 +00:00
Mike Surowiec
6a96293319 fix: node-fetch was throwing error when auth was in url (#22821) 2021-11-15 03:54:10 -06:00
Lucas Costi
10ff422248 Change the copy code button to the copy octicon (#22769)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-15 02:33:59 +00:00
GitHub Actions
369a7cb765 update search indexes 2021-11-15 02:25:24 +00:00
GitHub Actions
f6313dec22 update search indexes 2021-11-14 18:07:11 +00:00
GitHub Actions
57d04b032f update search indexes 2021-11-14 09:53:49 +00:00
GitHub Actions
894523b380 update search indexes 2021-11-14 02:21:18 +00:00
GitHub Actions
04d213858b update search indexes 2021-11-13 18:05:59 +00:00
Peter Bengtsson
4b59dfd863 Search results content HTML is not escaped (#22782)
Part of #1207
2021-11-13 13:05:06 -05:00
GitHub Actions
dfa9ed4b96 update search indexes 2021-11-13 09:57:33 +00:00
GitHub Actions
c4c15956fa update search indexes 2021-11-13 02:19:19 +00:00
github-openapi-bot
deb4ae7007 Update OpenAPI Descriptions (#22807)
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-12 20:48:36 +00:00
GitHub Actions
ddccebc852 update search indexes 2021-11-12 18:12:26 +00:00
github-openapi-bot
2fe9a34db3 Update OpenAPI Descriptions (#22767)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-12 14:54:25 +00:00
Mike Surowiec
7310fc998a Refactor display-platform-specific-content (#22665)
* refactor display-platform-specific-content

* update PlatformPicker tests and cleanup
2021-11-12 14:40:35 +00:00
GitHub Actions
6ca01eab65 update search indexes 2021-11-12 10:01:46 +00:00
GitHub Actions
87be74964e update search indexes 2021-11-12 02:24:53 +00:00
GitHub Actions
5a59b6d3a8 update search indexes 2021-11-11 18:11:52 +00:00
GitHub Actions
d5383295c7 update search indexes 2021-11-11 10:05:54 +00:00
GitHub Actions
478c27c0e0 update search indexes 2021-11-11 02:21:49 +00:00
github-openapi-bot
b7aab5c5bc Update OpenAPI Descriptions (#22766)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-11 01:06:25 +00:00
Peter Bengtsson
9c42d70a5a jest test suite should never send to Hydro (#22740)
Part of #1200
2021-11-10 21:38:26 +00:00
Rachael Sewell
0244fda807 search improvements (#22443) 2021-11-10 11:11:28 -08:00
GitHub Actions
018fe3477f update search indexes 2021-11-10 18:00:35 +00:00
rachmari
0f38401a88 Action ran graphql script"update-files" 2021-11-10 16:39:24 +00:00
Peter Bengtsson
88ba2a671a remove leftover console log debugging (#22689) 2021-11-10 16:12:05 +00:00
github-openapi-bot
469ff07c9e Update OpenAPI Descriptions (#22725) 2021-11-10 14:39:49 +00:00
GitHub Actions
0679618c56 update search indexes 2021-11-10 09:52:43 +00:00
github-openapi-bot
c1ecb74322 Update OpenAPI Descriptions (#22703)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-10 05:33:43 +00:00
lucascosti
1b6bf0fa62 Action ran graphql script"update-files" 2021-11-10 04:43:57 +00:00
GitHub Actions
0344dde370 update search indexes 2021-11-10 02:31:39 +00:00
github-openapi-bot
7d265d81af Update OpenAPI Descriptions (#22691)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-11-09 20:01:18 +00:00
GitHub Actions
2efa2503c6 update search indexes 2021-11-09 18:41:25 +00:00
GitHub Actions
d607cfc752 update search indexes 2021-11-09 18:18:38 +00:00
Vanessa
8bd8c10f9a GitHub Enterprise Server 3.3 release candidate (#22286)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: vgrl <vgrl@github.com>
Co-authored-by: Elijah Buck <buckelij@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2021-11-09 12:12:00 -05:00
GitHub Actions
6065a2bf40 update search indexes 2021-11-08 17:59:11 +00:00