Return-Path: X-Original-To: apmail-lucy-user-archive@www.apache.org Delivered-To: apmail-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 591E4CF9A for ; Wed, 26 Jun 2013 14:44:44 +0000 (UTC) Received: (qmail 85967 invoked by uid 500); 26 Jun 2013 14:44:44 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 85857 invoked by uid 500); 26 Jun 2013 14:44:39 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 85831 invoked by uid 99); 26 Jun 2013 14:44:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jun 2013 14:44:37 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hernanlopes@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jun 2013 14:44:32 +0000 Received: by mail-vc0-f178.google.com with SMTP id m17so1179484vca.37 for ; Wed, 26 Jun 2013 07:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zh0TJBgtkNFZ0WnO3Xlw4/Z0gPOKT4k7pC8BRYS8zPQ=; b=dg1FZyUbIM5gctY3Wxf/A2SCu6KbalkdC573d+RlxEOMt882tEc7KOrUsSvxzJxKG4 Jdf3y7EG+JzRfk0QU3b1ue7sXIzrLg6CJIUqdct5NmGsrHrzdZO5Qjvvk+FZSG0OYsen 48I7CNNLMy8622qqiUAk6E+EdhYn2AUNojKL4iTwxDw8X0gt01ID0QTHtbmJl/jr/5+g PYcrOn7U8ii9hVYETNiVz1uGYIhY5Lo/CiCf7/ANrntEnfOlK8EbwNu9AVREMHqP8z+e Mx2I9KAkUgfck7pQFy9IgZwo8KF8McVQapRhviAGCArAFkh69MAd3NfKklp6N5bzQnuz vHbA== MIME-Version: 1.0 X-Received: by 10.58.224.102 with SMTP id rb6mr1782432vec.43.1372257850934; Wed, 26 Jun 2013 07:44:10 -0700 (PDT) Received: by 10.221.16.201 with HTTP; Wed, 26 Jun 2013 07:44:10 -0700 (PDT) In-Reply-To: <1372138230608-4072929.post@n3.nabble.com> References: <1372138230608-4072929.post@n3.nabble.com> Date: Wed, 26 Jun 2013 11:44:10 -0300 Message-ID: From: Hernan Lopes To: user@lucy.apache.org Content-Type: multipart/alternative; boundary=089e011763cdbee01404e00fad7b X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-user] Can Lucene return search results with line number? --089e011763cdbee01404e00fad7b Content-Type: text/plain; charset=ISO-8859-1 for that you have many steps.. i bet lucy wont tell you the specific line number. But it could tell you which documents contain that piece of code. So you will need: - Retrieve a list of files containing the text you are searching. - Create a perl script that will iterate over each file on that returned list. This script must tell you the line number where the text is found. - Show the results to user On Tue, Jun 25, 2013 at 2:30 AM, gramcha wrote: > I want to implement "Find in Files" similar to one in IDE's using lucene. > Basically wants to search in source code files like .c,.cpp,.h,.cs and > .xml. > I tried the demo shown in apache website. It returns the list of files > without line numbers and number of occurance in that file. I am sure there > should be some ways to get it. > > Is there anyway to get those details? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Can-Lucene-return-search-results-with-line-number-tp4072929.html > Sent from the lucy-user mailing list archive at Nabble.com. > --089e011763cdbee01404e00fad7b--