From: Eric Wong Date: Sat, 13 Feb 2021 02:15:03 +0000 (+0000) Subject: examples/cgit-commit-filter: improve quoted text handling X-Git-Tag: v1.7.0~1049 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=c9ff20cbef45d32e4b46a78f081312543c781428 examples/cgit-commit-filter: improve quoted text handling With an example such as: something before "quoted phrase" something after The Xapian will now see: [ "something before", "quoted phrase", "something after" ] whereas before it would see: [ "something before", "quoted", "phrase", "something after" ] which should improve search results accuracy when looking up commits by commit title (subject). --- diff --git a/examples/cgit-commit-filter.lua b/examples/cgit-commit-filter.lua index 8f9d3eb5..9614c944 100644 --- a/examples/cgit-commit-filter.lua +++ b/examples/cgit-commit-filter.lua @@ -32,7 +32,8 @@ function filter_close() html(buffer) else html('') html_txt(buffer) html('')