From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Maihofer Subject: Re: Searching inside of attachments (pdf, odt)? Date: Tue, 13 Oct 2009 10:09:24 +0200 Message-ID: <20091013100924.147106zsin75yyt0@webmail.df.eu> References: <20091012154016.64827lact9yeuj48@webmail.df.eu> <20524da70910121559v6f9ccdfdi5ad27c8c3db07f79@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxcRn-00022N-6T for emacs-orgmode@gnu.org; Tue, 13 Oct 2009 04:09:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxcRi-00021Q-2n for emacs-orgmode@gnu.org; Tue, 13 Oct 2009 04:09:30 -0400 Received: from [199.232.76.173] (port=37603 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxcRh-00021N-U5 for emacs-orgmode@gnu.org; Tue, 13 Oct 2009 04:09:25 -0400 Received: from smtprelay10.ispgateway.de ([80.67.29.24]:56508) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxcRh-0004OS-D1 for emacs-orgmode@gnu.org; Tue, 13 Oct 2009 04:09:25 -0400 Received: from [80.67.16.115] (helo=localhost) by smtprelay10.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1MxcPV-0002Bt-8P for emacs-orgmode@gnu.org; Tue, 13 Oct 2009 10:07:09 +0200 In-Reply-To: <20524da70910121559v6f9ccdfdi5ad27c8c3db07f79@mail.gmail.com> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Samuel, Samuel Wales schrieb: > My idea is to use ordinary agenda search like this: > 1) agenda search displays the headline that has the > attachment. > 2) org uses an alist to determine the correct textifier > according to extension. e.g. '((".pdf" . "pdf2text")). > 3) agenda searches normally (as if the contents of the > attachment were body text). correct me if i'm wrong, but your approach is to search inside (an) already identified attachment(s)? I'd like to find attachments by searching inside the whole set of attachments. I do have many articles (pdf-files) to deal with. When i write a report on a special topic i have to find articles that are relevant to the topic i'm working on at the moment. If we use the standard textifiers the procedure will probably get very slow if there are many attachments. I think using an index would be a good idea. To describe what i'm looking for: My first step is to create an entry for each article, define tags (describing the content) and add some notes. * Title of the article :tag:tag:tag: :PROPERTIES: :Attachments: article.pdf :ID: 387HJGJD78-758GZFHF87-JKHKJ57dfd9 :END: - Very good explanation of X. - New view on Y. But it would be much more powerful to be able not only to find an entry by searching for tags but to search inside the attachments. I'm not a programmer, so sorry if my ideas are stupid. ;-) But i thing the following questions have to be answered: 1) Is there a tool like Lucene that can index pdf-files as they are stored by orgmode (directory structure)? 2) Is it possible to send a query to this tool from within emacs? 3) Is it possible to "import" the answer of the tool into emacs and combine it with orgmode so that the result looks somehow like this: "Search string 'XX' found in file 'article.pdf' attached to task 'Title of the article'". A click on the name of the attachment should open the pdf-file in the pdf-reader; a click on the task name should show the task in the org-buffer. Karl