From owner-freebsd-doc@FreeBSD.ORG Tue Sep 23 19:04:26 2014 Return-Path: Delivered-To: www@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC8E98DD for ; Tue, 23 Sep 2014 19:04:26 +0000 (UTC) Received: from forward2m.mail.yandex.net (forward2m.mail.yandex.net [37.140.138.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BD52A59 for ; Tue, 23 Sep 2014 19:04:26 +0000 (UTC) Received: from web15m.yandex.ru (web15m.yandex.ru [37.140.138.106]) by forward2m.mail.yandex.net (Yandex) with ESMTP id 7A8695CA0E4E; Tue, 23 Sep 2014 23:04:22 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web15m.yandex.ru (Yandex) with ESMTP id D27351EA097F; Tue, 23 Sep 2014 23:04:21 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1411499062; bh=Te+SsQWi0oQhbJeZw9W863Yy7r//gQn33sVIljqNV0I=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=jQ18tCM2UHJnoK7uM2H051crUZdyEtyO6Yq5nCVsgEytEkoEpBTxvwpnIhBpczA2p gjwlT6K0CjgE6DK4WCrmoL58YdI1UaCo4PnvDr6pI39YKLY82H7oPvb0X8TlE9SEFI 1oDE8BPa2JWx5wvmSBybOwvaFrm9EERSlATx/FBc= Received: from 146r60.metronet.ru (146r60.metronet.ru [176.109.146.60]) by web15m.yandex.ru with HTTP; Tue, 23 Sep 2014 23:04:21 +0400 From: Can0r To: freebsd-lists@be-well.ilk.org In-Reply-To: <44egv28khn.fsf@lowell-desk.lan> References: <2963931411478988@web4m.yandex.ru> <44egv28khn.fsf@lowell-desk.lan> Subject: Re: Ports search issue MIME-Version: 1.0 Message-Id: <520271411499061@web15m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 23 Sep 2014 23:04:21 +0400 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r 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 19:04:26 -0000 The thing is that such query $ make -C /usr/ports search name=php5 provides the full content of ports directory by string 'php5', while this one https://www.freebsd.org/cgi/ports.cgi?query=php5&stype=name doesn't show any of main php5 language ports in 'lang' category. Not a single one! Isn't there anyone in FBSD community, who knows perl well enough to find out what's up? 23.09.2014, 18:44, "Lowell Gilbert" : > 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?