From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DBCA01F8C2 for ; Sat, 13 Feb 2021 02:15:03 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] examples/cgit-commit-filter: improve quoted text handling Date: Sat, 13 Feb 2021 02:15:03 +0000 Message-Id: <20210213021503.26842-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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). --- examples/cgit-commit-filter.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('')