From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Search engines (was: HTML-Info design) Date: Sun, 28 Dec 2014 19:47:14 +0100 Message-ID: References: <871tnr1gqo.fsf@ferrier.me.uk> <83bnmvowdb.fsf@gnu.org> <83ppbanqhe.fsf@gnu.org> <87vbl2xigp.fsf@ferrier.me.uk> <83ioh2nlow.fsf@gnu.org> <87sig6xech.fsf@ferrier.me.uk> <83fvc5ni0u.fsf@gnu.org> <87k31fwwyv.fsf@ferrier.me.uk> <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <877fxb9821.fsf@ferrier.me.uk> <87oaqn26vs.fsf@fencepost.gnu.org> <874msfg6p6.fsf@building.gnus.org> <874msf9119.fsf@ferrier.me.uk> <87tx0fbs06.fsf@violet.siamics.net> <87fvbzejtb.fsf_-_@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1419792503 10975 80.91.229.3 (28 Dec 2014 18:48:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2014 18:48:23 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 28 19:48:18 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y5Isz-0004zm-PY for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2014 19:48:17 +0100 Original-Received: from localhost ([::1]:59240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5Isz-0000UR-5C for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2014 13:48:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5Isi-0000TT-9v for emacs-devel@gnu.org; Sun, 28 Dec 2014 13:48:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5Isd-0008Nk-DG for emacs-devel@gnu.org; Sun, 28 Dec 2014 13:48:00 -0500 Original-Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:60479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5Isd-0008NT-66 for emacs-devel@gnu.org; Sun, 28 Dec 2014 13:47:55 -0500 Original-Received: by mail-wg0-f50.google.com with SMTP id a1so17580074wgh.37 for ; Sun, 28 Dec 2014 10:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=fXYjnjPofMEkTzMYwNy7YqzCGV4ptZA53Kjw/kx/gFw=; b=qFOG+WgcSwAcYMfbygYFpoeunf8AyabxpiQc3F/WAtc5I4pTPAHAk1B038YTx9bWqG ede+tl1phr2g9xQS9tDrbayA+ZsUGKTkkTNSd+yy/K1dSEoqBsHXHF+FBnqkimVveqiJ QzZexg4E4lejLQccHM37JpYHseU4vERQLhF5pKysfQE4WezJIWUiBOuTiYuRtvsJA/XQ /Wbm0qU0hQzcsdCge3/GGlyMaaNAR6Jt/BQiRD+LMa5pXPIIcisIbItRc2dW8VUjoyWF Cr8NDJCekG+BoT/PV4Cz3ihneC13vv/Bvqiwc6ykWTT97yQPSjPbDVS43STHhGPran/F e/Sg== X-Received: by 10.180.83.129 with SMTP id q1mr87265100wiy.8.1419792474526; Sun, 28 Dec 2014 10:47:54 -0800 (PST) Original-Received: by 10.194.93.228 with HTTP; Sun, 28 Dec 2014 10:47:14 -0800 (PST) In-Reply-To: <87fvbzejtb.fsf_-_@building.gnus.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180762 Archived-At: On Sun, Dec 28, 2014 at 7:00 PM, Lars Ingebrigtsen wrote: > An interesting problem is Emacs and searching. The various Gnus mail > backends have various searching interfaces, but it would be nice to have > a more general Emacs searching mechanism, where you can search parts of > directory trees, etc. > > Has anybody looked into hooking into the various OS-level search > interfaces? Spotlight in OS X, the Explorer thingie in Windows and > in the various GNU/Linux distributions? > > A basic search engine is easy to implement (I've done it a couple of > times), but the main work is in understanding the various file formats > and keeping the reverse index updated when files change. If there were > OS-level search stuff we could just hook into, that would obviously be > better. > > And provide searching in the Emacs manuals. I did that some years ago and posted about it here. I was mostly looking for a faster grep in the files that I did not change, i e Emacs internals (C/Elisp). It worked pretty well then. The interface is very similar to grep. The search enginges I tried was MS Windows built in and Lucene (not sure there, but I think it was Lucene). I put the code in nXhtml, but have not touched it since then. Looking at http://opensearchserver.com/ I think it would be much easier to implement it now. The API there looks pretty good.