Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F315918E for ; Mon, 18 Jun 2012 19:05:33 +0000 (UTC) Received: (qmail 18999 invoked by uid 500); 18 Jun 2012 19:05:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 18889 invoked by uid 500); 18 Jun 2012 19:05:31 -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 18868 invoked by uid 99); 18 Jun 2012 19:05:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 19:05:31 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of yannisc@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 19:05:25 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SghG4-0008S2-DX for users@jackrabbit.apache.org; Mon, 18 Jun 2012 12:05:04 -0700 Date: Mon, 18 Jun 2012 12:05:04 -0700 (PDT) From: yannisc To: users@jackrabbit.apache.org Message-ID: <1340046304397-4655486.post@n4.nabble.com> Subject: Problems with fulltext search on nt:binary MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit All, I am reasonably new to jackrabbit. I have set up a schema where I can successfully do full text search on properties of type PropertyType.STRING. I am still not succeeding on finding nodes where I am storing as nt:file. Here is how I form a query (which succeeds for STRING): String statement = "SELECT * FROM [nt:base] WHERE CONTAINS([nt:base].*,'" + fullTextSearch + "')"; Query query = qm.createQuery(statement, Query.JCR_SQL2); The way I am (currently, experimentally) creating the file nodes is: Node fileNode = parentNode.addNode(name, NodeType.NT_FILE); Node valueNode = fileNode.addNode(Property.JCR_CONTENT, NodeType.NT_RESOURCE); valueNode.setProperty("jcr:mimeType", "text/plain"); valueNode.setProperty("jcr:data", binValue); I have experimented with various configuration settings including things like in repository.xml: and in indexing_configuration.xml: nt:file nt:file/jcr:content/* nt:file/jcr:content/*/* but all to no avail. Any help greatly appreciated. I am on jackrabbit 2.4.1 Thanks --Yannis -- View this message in context: http://jackrabbit.510166.n4.nabble.com/Problems-with-fulltext-search-on-nt-binary-tp4655486.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.