Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 81989 invoked from network); 27 Aug 2010 15:17:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Aug 2010 15:17:52 -0000 Received: (qmail 11984 invoked by uid 500); 27 Aug 2010 15:17:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 11928 invoked by uid 500); 27 Aug 2010 15:17:51 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 11919 invoked by uid 99); 27 Aug 2010 15:17:50 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:17:50 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.schrijvers@1hippo.com designates 64.18.2.18 as permitted sender) Received: from [64.18.2.18] (HELO exprod7og120.obsmtp.com) (64.18.2.18) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 27 Aug 2010 15:17:27 +0000 Received: from source ([209.85.215.51]) by exprod7ob120.postini.com ([64.18.6.12]) with SMTP ID DSNKTHfW7WeirneJ+2wMDBkJJevb8mhNbEP2@postini.com; Fri, 27 Aug 2010 08:17:06 PDT Received: by ewy21 with SMTP id 21so2060636ewy.38 for ; Fri, 27 Aug 2010 08:16:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.35.1 with SMTP id n1mr2334363ebd.84.1282922216982; Fri, 27 Aug 2010 08:16:56 -0700 (PDT) Received: by 10.213.104.146 with HTTP; Fri, 27 Aug 2010 08:16:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Aug 2010 17:16:56 +0200 Message-ID: Subject: Re: Searching for binary values From: Ard Schrijvers To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2010/8/27 Slavek Tecl : > > I'm looking for a clarification how the query is processed in my customiz= ed jackrabbit instance. In my case the NodeIndexer is subclassed so it can = add the binary value to the indexed Document even if it does not have nt:re= source type. Then Tika has been customized with my mimetype so the parser i= s able to recognize the binary stream through it's magic and of course the = tika's Parser object was implemented to support the custom binary stream to= extract words from it.If I run a query on nt:resource nodes it correctly r= eturns files including the searched word as expected but when I invoke a si= milar query on a binary property (and the content of this binary property i= s exactly the type of the stream Tika can parse) it does not return anythin= g - is there a way out? Binary properties are only indexed on nodescope level, not on property leve= l. See protected void addBinaryValue(Document doc, String fieldName, InternalValue internalValue) { and then specifically doc.add(createFulltextField(internalValue, metadata))= ; in jr NodeIndexer Regards Ard