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 7B50E17410 for ; Tue, 6 Oct 2015 07:25:17 +0000 (UTC) Received: (qmail 14096 invoked by uid 500); 6 Oct 2015 07:24:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 14040 invoked by uid 500); 6 Oct 2015 07:24:17 -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 14028 invoked by uid 99); 6 Oct 2015 07:24:17 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 07:24:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E813DC38F2 for ; Tue, 6 Oct 2015 07:24:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.9 X-Spam-Level: *** X-Spam-Status: No, score=3.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wso2.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Iz9TKjoDU2nl for ; Tue, 6 Oct 2015 07:24:09 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6C91B42AB6 for ; Tue, 6 Oct 2015 07:24:09 +0000 (UTC) Received: by qkas79 with SMTP id s79so81324709qka.0 for ; Tue, 06 Oct 2015 00:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=fT1XvJvOnDB80iIYaaDAYBRSHJ6h8fFXwEN/Whm1or0=; b=kN6EmazVDsVXm8UqerQuS7uNvDvUd0py1NW2ICy7WtqdLq0E4hOZBFh+jRvzV1NN2U WKzaqV8EhFwVAajVi2fFPtmOSrHXArnvzdbKTuDKvlhCFDRiNAlMoKs/Y/5co7JxM20P rINSfayRznt2Sv7RLbEy2Dgjc/tHoQ3h0EUKA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=fT1XvJvOnDB80iIYaaDAYBRSHJ6h8fFXwEN/Whm1or0=; b=nCdtr3invT1rewXERq4HYyXqYsYmm2TdDqFkvtwfM4WbOYdryS5KZ+d6rxLAEDIJD7 sfD6qfYkzKBA1oVOAZ9BI7kYjc1XT4ghzvmej8ZPsY+opPXJB4nd7UeyUepRgecjremE qkrYjByA4k8+g4YCqHkc7WX3NDgehnlmsBlOsYHwfa8nKkbBU86Z7hxidf1W7tgzT8Sj 4wOYLgXDN/6z0ocp2uVFBrZkq6mpxwdADAyiDeoSISSBaNKybmDvYa1EJpoULMAj6n6X lrFWGerVFuLO9c5pZtJ3jYSD1GJmqn+YqUpCZ8z96u2ozD5jbfcviNCA7DXhzSfU/FkQ yCQQ== X-Gm-Message-State: ALoCoQmw7+duhzM9LPB/ZzK2e2FsXRuS0za0BU/uwgUN9Lc/2el3C6ipyD5+3HyVridNIiZuSGBA MIME-Version: 1.0 X-Received: by 10.140.102.1 with SMTP id v1mr45194573qge.60.1444116248988; Tue, 06 Oct 2015 00:24:08 -0700 (PDT) Received: by 10.55.177.193 with HTTP; Tue, 6 Oct 2015 00:24:08 -0700 (PDT) Date: Tue, 6 Oct 2015 03:24:08 -0400 Message-ID: Subject: Equivalent API in Lucene 5.x.x for ResultMode.setResultMode and ResultMode.setDepth From: Gimantha Bandara To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c16f84092a5c05216a8471 --001a11c16f84092a5c05216a8471 Content-Type: text/plain; charset=UTF-8 Hi, I want to get the top categories (all the categories) recursively in one call. I know that in Lucene 4.x.x we can simply set the ResultMode to PER_NODE_IN_TREE [1] and set the depth, so we can get the categories recursively to the level we want in the tree. How do I achieve the same in Lucene 5.2.1? [1] http://shaierera.blogspot.com/2012/12/lucene-facets-under-hood.html Thanks, --001a11c16f84092a5c05216a8471--