Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-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 3B57E11775 for ; Tue, 24 Jun 2014 15:11:08 +0000 (UTC) Received: (qmail 26290 invoked by uid 500); 24 Jun 2014 15:11:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 26224 invoked by uid 500); 24 Jun 2014 15:11:06 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 26208 invoked by uid 99); 24 Jun 2014 15:11:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 15:11:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of west.suhanic@gmail.com designates 209.85.128.179 as permitted sender) Received: from [209.85.128.179] (HELO mail-ve0-f179.google.com) (209.85.128.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 15:11:02 +0000 Received: by mail-ve0-f179.google.com with SMTP id sa20so481414veb.38 for ; Tue, 24 Jun 2014 08:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=8HZtuFp/yUZktbotfLheIIhs+q/DN3z4w6f0hKkTzMc=; b=NJvglDGg6dM8POm6llh4qi1IMnsl/c5IynzyoSA61hYwsfn23ucarjoLZyV3MPikGl LojdDWmcmQtzwdv+NM0RtUKTXEbwtrV2eQPLvC60kE2dkYz4jZ8l5tYHYjQ5QztCqvRS pnWePiL6Oa6C4SCo8SICeosWtnbD2vCJ1CWUq4nn+fbh6d5FsbpH4dH1kP3ioU1VUiIj EG5pGO4nYqb5fr6MrNtOvn6X0/HgpMTkXWHQMIVvPkb/Lb2Kkl+B7ft9Vl8qBSzJN5lp 7axxB2JSVOFbNhSVips89U3PrOIFrMqC5Djc7npD2+wTFj0aK+oK72rX1U4b2j6kZW1v XYWA== MIME-Version: 1.0 X-Received: by 10.220.105.136 with SMTP id t8mr1239305vco.13.1403622638387; Tue, 24 Jun 2014 08:10:38 -0700 (PDT) Received: by 10.220.86.70 with HTTP; Tue, 24 Jun 2014 08:10:38 -0700 (PDT) Reply-To: wsuhanic@alumni.uwaterloo.ca Date: Tue, 24 Jun 2014 11:10:38 -0400 Message-ID: Subject: Re: A question about FacetField constructor, Solved From: west suhanic To: Shai Erera , "java-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=047d7b342e8cc2881104fc965ca4 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b342e8cc2881104fc965ca4 Content-Type: text/plain; charset=UTF-8 On Sun, Jun 22, 2014 at 1:15 PM, Shai Erera wrote: Can you post an example which demonstrates the problem? It's also > interesting how you count the facets, eg do you use a TaxonomyFacets object > or something else? > > Have you looked at the facet demo code? It contains examples for using > hierarchical facets. > > Hello: I solved the problem. My facet search code, which is a separate program from the index code, did not call setHierarchical . Once I called setHierarchical in the search code the problem with null search results disappeared. However as I said if the String array has one element in it the code still works even if setHierarchical is not called. Might I suggest that given its importance some sort of exception gets thrown by the search method if setHierarchical has not been invoked. Thank you for your time and help. regards, west suhanic --047d7b342e8cc2881104fc965ca4--