Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 55701 invoked from network); 31 May 2006 15:01:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2006 15:01:34 -0000 Received: (qmail 63292 invoked by uid 500); 31 May 2006 15:01:32 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 63258 invoked by uid 500); 31 May 2006 15:01:32 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 63248 invoked by uid 99); 31 May 2006 15:01:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 08:01:32 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of piccinatto@ibest.com.br designates 200.181.68.91 as permitted sender) Received: from [200.181.68.91] (HELO webemail03.ibest.com.br) (200.181.68.91) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 08:01:31 -0700 Received: from ibest.com.br (webemail03.ibest.com.br [127.0.0.1]) by webemail03.ibest.com.br (Postfix) with ESMTP id E79582BB2B for ; Wed, 31 May 2006 15:01:08 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain MIME-Version: 1.0 X-Mailer: MIME::Lite 2.117 (F2.6; A1.50; B2.12; Q2.03) X-Mailer: IbestMail X-Organization: Ibest S/A X-Identity: 931768_1149087668 From: "hsp" To: dev@jackrabbit.apache.org Cc: Marcel Reutegger Subject: Re: Searching.... Date: Wed, 31 May 2006 12:01:08 -0300 Message-Id: <20060531150108.E79582BB2B@webemail03.ibest.com.br> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >hsp wrote: >> Normally I put the file inside a node (nt:resource) that is inside a >> nt:folder, and do the query: >> SELECT * FROM nt:folder WHERE CONTAINS(*,'TEXTSEARCHINGFOR') > >this will do a fulltext search on nt:folder nodes but not on the resources >that are under those nodes, therefore it will never return results. Ok, but I did for nt:resource too. > >> My repository xml does reference to >> textfilters. The textfilters are based on the information in the >> jcr:mimetype to build the index, no? > >yes, this is correct. > >> Is there no way to rebuild the indexes without have to restart the >> jboss? I am not seeing this funcionallity works, but I need it working, >> what are the best pratice for that (if it exists). > >no this is not possible. if you think your index becomes inconsistent >during normal operation then it is a bug. please post a jira issue with >steps how to reproduce. if you see any errors or warnings in your log >files, please also post those. Thanks I inserted a file.zip tree, and inside it has two files .doc. I can't get the files .doc searching by sql. Otherwise, if I insert just one file .doc per time the sql results the file containg the text. The operation I do with the zip file is unzip it and insert nt:folder/nt:file like they are in the zip file. If I delete the tree files of repository to rebuild the indexes, appears the following log: 11:49:46,803 INFO [STDOUT] 11:49:46,803 INFO [RepositoryImpl] Starting repository... 11:49:48,022 INFO [STDOUT] 11:49:48,022 INFO [RepositoryImpl] initializing workspace 'default'... 11:49:48,247 INFO [STDOUT] 11:49:48,247 INFO [RepositoryImpl] workspace 'default' initialized 11:49:53,502 INFO [STDOUT] 11:49:53,502 INFO [SearchIndex] Index initialized: escriba_virtual_dir/repository/index 11:50:05,469 INFO [STDOUT] 11:50:05,469 INFO [IndexMerger] merged 1000 documents in 322 ms into _a. 11:50:23,597 INFO [STDOUT] 11:50:23,597 WARN [LazyReader] exception initializing reader org.apache.jackrabbit.core.query.MsWordTextFilter$1: java.io.IOException: block[ 0 ] already removed 11:50:46,179 INFO [STDOUT] 11:50:46,178 INFO [IndexMerger] merged 1000 documents in 159 ms into _l. 11:51:03,001 INFO [STDOUT] 11:51:03,001 INFO [IndexMerger] merged 1000 documents in 112 ms into _w. 11:51:23,566 INFO [STDOUT] 11:51:23,566 WARN [LazyReader] exception initializing reader org.apache.jackrabbit.core.query.MsWordTextFilter$1: java.io.IOException: block[ 0 ] already removed 11:51:23,905 INFO [STDOUT] 11:51:23,904 INFO [IndexMerger] merged 1000 documents in 92 ms into _17. 11:51:39,166 INFO [STDOUT] 11:51:39,166 INFO [IndexMerger] merged 1000 documents in 124 ms into _1i. 11:51:48,953 INFO [STDOUT] 11:51:48,953 INFO [IndexMerger] merged 1000 documents in 126 ms into _1t. 11:51:59,477 INFO [STDOUT] 11:51:59,477 INFO [IndexMerger] merged 1000 documents in 88 ms into _24. 11:52:10,130 INFO [STDOUT] 11:52:10,130 INFO [IndexMerger] merged 1000 documents in 85 ms into _2f. 11:52:30,731 INFO [STDOUT] 11:52:30,731 INFO [SearchIndex] Index initialized: escriba_virtual_dir/workspaces/default/index 11:52:30,731 INFO [STDOUT] 11:52:30,731 INFO [RepositoryImpl] Repository started What could be the warning message about LazyReader? Even after rebuild the indexes, I just find only one .doc file, that is the file I put separated (it is the same that is inside the zip file with the same properties inside a nt:resouce node). > >regards > marcel >