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 8FA469FA0 for ; Wed, 13 Jun 2012 19:30:24 +0000 (UTC) Received: (qmail 39114 invoked by uid 500); 13 Jun 2012 19:30:24 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 39049 invoked by uid 500); 13 Jun 2012 19:30:24 -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 39039 invoked by uid 99); 13 Jun 2012 19:30:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 19:30:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of svasekar@listenlogic.com designates 74.125.82.179 as permitted sender) Received: from [74.125.82.179] (HELO mail-we0-f179.google.com) (74.125.82.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 19:30:17 +0000 Received: by werh12 with SMTP id h12so665717wer.10 for ; Wed, 13 Jun 2012 12:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=xGm/ZtO0PeeKozK1pcWrvo6TP3iASxStLTNNitsnZxA=; b=WSthHimusyZY5hBQE49HED6kr+NTAGPbzIG8E9COhxrHSHdRrp/zTNwY7UqX/P583p 4v94pCWul8AF9GAAQYfD+0GuecztLFRBdKQ5/Rx32v579cZs4lpKc8yCVirGVOn9L75G X9b1lfE/nNs7mL/sCVH11FgE4hbex8nSuiaitWPxx8QeqAiDab8RvpV+pG9mTVByjl/h JIEE+Z0pAmkSzjDfgDPgsXgB/pKa04D5VTC8ZtrqC38ZaXunsPbI5ofk+3I6z0Xfg9GO Il3xW9/nhOnVQrZt1/2y/ysCogEmu9S2tTOCswf0Gydz8VJ0Q/VUOzPG2hLnTGcC79NH Q+RQ== MIME-Version: 1.0 Received: by 10.180.95.100 with SMTP id dj4mr40218509wib.17.1339615796468; Wed, 13 Jun 2012 12:29:56 -0700 (PDT) Received: by 10.194.45.70 with HTTP; Wed, 13 Jun 2012 12:29:56 -0700 (PDT) Date: Wed, 13 Jun 2012 12:29:56 -0700 Message-ID: From: Saurabh Vasekar To: user@lucy.apache.org Content-Type: multipart/alternative; boundary=f46d0418268eaf1c4a04c25f9b5a X-Gm-Message-State: ALoCoQkjS7MM0EWp7X0VLnUPbDQZVOyKt05tZCkq2puvUU1scKyAJQ136CQXfAKpbidBiaUGparr Subject: [lucy-user] How to add more languages in an analyzer and change path to store indexed documents --f46d0418268eaf1c4a04c25f9b5a Content-Type: text/plain; charset=ISO-8859-1 Hello, I am a beginner to Lucy. This is the first time I am using a Search library. I went through the tutorial at lucy.apache.org. I am confused over the following things mentioned in the tutorial. The tutorial mentions that we can specify the language in which the documents are. Hence while indexing how can I specify multiple languages in the analyzers if my documents are in different languages. my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new( language => 'en', ) How can I specify multiple languages such as Danish, German, Finnish etc etc. Secondly the path_to_index given in the tutorial is '/store/lucy_test'. This path was given in the sample tutorial when I downloaded the apache-lucy-0.3.1 library. Now if I want to change this path meaning I want to store my indexed documents at a different location how can I do that? The location /store/lucy_test contains different sub-folder viz. locks, schema_26.json, set_26, snapshot_26.json The code in indexer.pl is my $path_to_index = '/store/lucy_test'; use Lucy::Index::Indexer; my $indexer = Lucy::Index::Indexer->new( index => $path_to_index, schema => $schema, create => 1, truncate => 1, ); Also what do the 'create' and 'truncate' parameters specify in this case? I changed the default path in the tutorial '/store/lucy_test' to '/store_test'. The script indexer.pl ran perfectly. Then in the cgi-search.pl I made the same change to the $path_to_index variable. It gave the following error - *Index doesn't seem to contain any data* * lucy_IxReader_do_open at /root/apache-lucy-0.3.1/perl/../core/Lucy/Index/IndexReader.c* * * After I made the change to the $path_to_index variable in indexer.pl and ran the script the following folders were created in the path - locks and seg_1. I am terribly stuck and I am not able to go forward. Please bear with the question. Thank you for you patience. Thank you. --f46d0418268eaf1c4a04c25f9b5a--