gitea/modules/indexer/code
Jimmy Praet e3021fae79
Use MatchPhraseQuery for bleve code search (#33628)
Fix regression from #32210 which unintentionally changed the search mode
for bleve from MaatchPhraseQuery to MatchQuery.

On the main branch, meanwhile with #33590 a "literal code search" mode
(by using quotes) was implemented as workaround for this unexpected code
search behavior. Maybe that feature needs some redesign as it turns out
to have been caused by a regression.

But this PR at least already fixes the regression for 1.23.x
2025-02-25 20:20:54 +00:00
..
bleve Use MatchPhraseQuery for bleve code search (#33628) 2025-02-25 20:20:54 +00:00
elasticsearch Updated tokenizer to better matching when search for code snippets (#32261) 2024-11-06 20:51:20 +00:00
internal Allow code search by filename (#32210) 2024-10-11 23:35:04 +00:00
git.go Fix index too many file names bug (#31903) 2024-09-01 05:57:31 +00:00
indexer_test.go Use MatchPhraseQuery for bleve code search (#33628) 2025-02-25 20:20:54 +00:00
indexer.go Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
search.go Render embedded code preview by permlink in markdown (#30234) 2024-04-02 17:48:27 +00:00