From owner-freebsd-doc@FreeBSD.ORG Tue Sep 23 14:44:27 2014 Return-Path: Delivered-To: www@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76F77DB3 for ; Tue, 23 Sep 2014 14:44:27 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4FF8B88F for ; Tue, 23 Sep 2014 14:44:27 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 429B033C46; Tue, 23 Sep 2014 10:44:21 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 6F2ED39822; Tue, 23 Sep 2014 10:44:20 -0400 (EDT) From: Lowell Gilbert To: Can0r Subject: Re: Ports search issue References: <2963931411478988@web4m.yandex.ru> Reply-To: www@freebsd.org Date: Tue, 23 Sep 2014 10:44:20 -0400 In-Reply-To: <2963931411478988@web4m.yandex.ru> (can0r@yandex.ru's message of "Tue, 23 Sep 2014 17:29:48 +0400") Message-ID: <44egv28khn.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: www@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 14:44:27 -0000 Can0r writes: > There is a strange issue with search engine in ports collection. > When I type 'php55', it finds just 3 ports: > http://www.freebsd.org/cgi/ports.cgi?query=php55&stype=all&sektion=all > However there are lots of ports with this query in their names - all > php55 extensions and php55 itself are not displayed in results. > It is really uncomfortable to use search in this way. > Is there any solution for this issue? Hmm. Interesting. I don't understand perl well enough to figure out exactly how that search is implemented, but if you select "Package Name" from pull-down menu to the right of the text field where you entered "php5", you get this: https://www.freebsd.org/cgi/ports.cgi?query=php5&stype=name This seems to be the same output you would get from $ make -C /usr/ports search name=php5 (although it's in a different order, so I'm not completely sure). If you want to search on package name, specify it explicitly. As far as fixing the default search (or at least figuring out what it's supposed to do): somebody who reads perl better than me want to take a look at it?