From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qGjYAgECeWM5WwEAbAwnHQ (envelope-from ) for ; Sat, 19 Nov 2022 17:19:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ENXXAQECeWPcvgAAG6o9tA (envelope-from ) for ; Sat, 19 Nov 2022 17:19:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A32BF841E for ; Sat, 19 Nov 2022 17:19:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owQYP-0003Vi-Qi; Sat, 19 Nov 2022 11:18:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owQYL-0003RO-G8 for guix-devel@gnu.org; Sat, 19 Nov 2022 11:18:49 -0500 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owQYI-0002X6-Gp for guix-devel@gnu.org; Sat, 19 Nov 2022 11:18:48 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id 44FCE27BBE9; Sat, 19 Nov 2022 16:18:43 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 7b09e27b; Sat, 19 Nov 2022 16:18:42 +0000 (UTC) References: <9vqBOZWiGUiZSkoCuukNGQ3yi98pp4JEJ42TdjCMl3hvFb0HpTZDWD8XCxWkXIwaixIoEAvGrfL-ZUsdw9jgNjOMYrFL0E973-9Cgnv4W_0=@protonmail.com> <87iljtgr72.fsf@cbaines.net> <87zgcqetsk.fsf@cbaines.net> <8735afcip5.fsf@cbaines.net> <874juvj5ck.fsf@protonmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Christopher Baines To: John Kehayias Cc: Luis Felipe , guix-devel@gnu.org Subject: Re: [Guix Website] A Search Page for Packages Date: Sat, 19 Nov 2022 16:13:01 +0000 In-reply-to: <874juvj5ck.fsf@protonmail.com> Message-ID: <87zgcmapen.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668874752; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=JXUaNXTRzvjeDGm/oaLoezPg1XqKnf2VcW86CtvnECY=; b=FOoC2Kq8gQg2luStg9rLBkKV7AHW3gWRSil1n7fntFiY6pSkKShkAEe1lqGmrBAUGcdmB1 AcY5fxHhgbmG9eNZ6M5P/3Re+dX8HZQ3Tfgj8hMWJtwie56w5NWMfA+1PxT47RuQkGEeI3 iG7EJ0UjBGeczrWkCFcXhMxiT1tdMzRElvA4QJn9oreFlCv5bVSvoSitdpNB43ccdN04rK PSWAyPkYBa8WLvJdDM98Rl2+E8Prqq4001km+PsrlM5SEePbifKmkUc02hXCQn9wNW9Jgq b6fxMetEYszN6rsVVw4zuwxxi7PeuBdl4XdEBv+coDk9+Nz+0wgrRdNmVW7bbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668874752; a=rsa-sha256; cv=none; b=SIqvnrct8Q+Gs4qXndTQqeAmCFzWXxMCsM7LwmkPfim36ySxUwxWvrR83wC7zB0oNxLdt+ NBYRNlPbU9v3eveuLWHXeu7fxvR9sB3m/jlTOVHIsZpVqeQci2BthGZChMQPMPzCOqrNkM PUmnHfh6EgY7zFVjJ6cX7igHFiFzKtswPeO3yLd6/bHp8kg2sj9SwgGB9oek/Setid7edG 01COvd7hOVhBIZnWRuSfOIcVuoGjojeblb9UUR4dg+A80aCzlEfd8jlZxp+U4xixWqrhtl YnVEmUzICGyDvpuFirb/9HoV8KA+80+W91OTOWSuvRaQA3IwiLjE69BhGLAqRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A32BF841E X-Spam-Score: -4.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ilq+FtezhWn9 --=-=-= Content-Type: text/plain John Kehayias writes: > Question: what is the search syntax that is expected? I tried > searching for "stump" and it only returned a go package that ended in > "stump." Searching for "stumpwm" turned up all the expected suspects > though. While "stump*" was the same as "stump." The search functionality is being provided by the Guix Data Service, which in turn is searching through records in a PostgreSQL database. The relevant code is here [1], and it's the plainto_tsquery bit that starts the transformation from a string to what PostgreSQL is using for the search. 1: https://git.savannah.gnu.org/cgit/guix/data-service.git/tree/guix-data-service/model/package.scm#n144 So yeah, I don't think the way it's implemented currently supports * as a wildcard, although maybe that could be supported by changing the way the query works. Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmN5AeBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfGyg//Xkk9ATqLzndaqBqSmTG2DxZN3A42I3rE 5b7VHyWC/AASbukmnm3SjIaG5O9i7O0E3F7WL0dpx53FpR0zh9O4lFGTJKB0MD8E JIjO7SHuns/sH+lCpUOPicAlcv0wuB/FHZCYPJMiTwCVA4QQsRwBDypX2hhzIP+I KvqaJjXsVEYsOWV5sq1os0oQRPFCPzxi6NhyHj+gyy8Qhs8CXcMLrjXf8mKjCyQR nyvGY0aUsEiExR/791mwPeqFbBiMikYCZLcYMnrJEPtchlk0dWwlM5syba9/MgYq 4xYZ3+FpJwUaBUTwzLY+RsZY7wm6PPKer6s/9C5+GsEVgPYYoqLUSQnsnDOx/GlY 9NWWVClw0Q3BOW0oR1oQGSFGlKpSgp2hag0tEJZVuoF0aCDPEBz1dXZ7O0Jtd91a FCdQZYnJNZQm2yNQxaEVt5orjj6HDE53LKGofS2E3JIquh5WlotwLhCJzzvwNJbx Pbp5h2xLRVcekVHi+zjN3/RbM8VDyQCQjQMu1ustYwf5QN12nnxmS8/nUk/tF8IP zwyYVfJqfCZMWyIJEBfVy2vJO/M7oidrnG9cgBEdmZC4c7PXg5acWl2OCBZP2OJG r5j+o99tfTVbGQbi+jAJCrmsQM+jEc+jniyj8hho3WU28gi1XE+l2+AWBZ46FX4v nvURSzgPItc= =B25M -----END PGP SIGNATURE----- --=-=-=--