Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 838961813A for ; Tue, 1 Mar 2016 13:04:21 +0000 (UTC) Received: (qmail 51994 invoked by uid 500); 1 Mar 2016 13:04:16 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 51925 invoked by uid 500); 1 Mar 2016 13:04:16 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 51913 invoked by uid 99); 1 Mar 2016 13:04:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 13:04:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3ABB91805A8 for ; Tue, 1 Mar 2016 13:04:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Vn7Uc68dqbUd for ; Tue, 1 Mar 2016 13:04:14 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4BE675F5A5 for ; Tue, 1 Mar 2016 13:04:13 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id c3so166278486vkb.3 for ; Tue, 01 Mar 2016 05:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=QsutBYuEL2GJBe0auWBZT2SqtrS6Yu0OB/BTWG7CTfk=; b=EyG4OArTTthA7+O7KUV5D60ZXpATmm2N7BCIkySyh1lzEdfSVkCxRRsSOgu+pfknbL wBp12Lg7lU01I6lR+uH4AD7n2tf6wI2n8PHlcpopKiVRK3Of3bRyDM9Fhy9TETaM5Hp8 J1XN0Ha59drHOKD8G9r1HrSpJWuT1J06Oo6tDx+wZSwKhd8uTRNgodHHtYSKza8bQ8VI asys5l3cJ5fcwJtSS+E3OuBBS2CLYK7FHu0TtmzmbGy1OeYcVnsC2ePGJAG0PR9WC95m irrIMIJlycKf9msIxFtKqDFpN0x2SSd4Jf7/gqhbZWvpM4C06GeqKDIRWn1sB659W15U 8FJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=QsutBYuEL2GJBe0auWBZT2SqtrS6Yu0OB/BTWG7CTfk=; b=J5eCnXGmshyshlTfzKi0JN0vZiNzEWBJ9YYS6NM9227EwVQQdDC0MPgAO4c2Vs8LCi eEun9lrZveU+UdqDKXYQAi26DhS9Rdkbmbk21KonSU2KwE+Xm2rcfn+OlupM/kvd+Cwk kQpUi6v8V0SCmdPjn818ykK3tUVCMpXj59lsS4E0vnWpMGAPCh2hjQSRSTi9v11q9ehJ sgEBi388YIKO8ld1XYtJKhzu2/S/z/plpEiMuZN+YsxlZuhJzWOedgQxyTM0sF+TUMvA 2oQVz7oWgIgMvI6nlbKp5qE2uvMDzYDkSqg3gvnYVvg8qrjrwgb1G17ExT/W0pF8btN6 QdtA== X-Gm-Message-State: AD7BkJKNK17WHZQkp4hlHDebZvBx8tv7a7LxOC9L54HeX4H2gMMVvUAS8re+w9qFTThCNAGGyxEp0rG57X023w== MIME-Version: 1.0 X-Received: by 10.31.8.142 with SMTP id 136mr15706876vki.14.1456837407160; Tue, 01 Mar 2016 05:03:27 -0800 (PST) Received: by 10.31.54.13 with HTTP; Tue, 1 Mar 2016 05:03:27 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Mar 2016 08:03:27 -0500 Message-ID: Subject: Re: Indexing books, chapters and pages From: Jack Krupansky To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11457788264121052cfc6409 --001a11457788264121052cfc6409 Content-Type: text/plain; charset=UTF-8 To start, what is the form of your input data - is it already divided into chapters and pages? Or... are you starting with raw PDF files? -- Jack Krupansky On Tue, Mar 1, 2016 at 6:56 AM, Zaccheo Bagnati wrote: > Hi all, > I'm searching for ideas on how to define schema and how to perform queries > in this use case: we have to index books, each book is split into chapters > and chapters are split into pages (pages represent original page cutting in > printed version). We should show the result grouped by books and chapters > (for the same book) and pages (for the same chapter). As far as I know, we > have 2 options: > > 1. index pages as SOLR documents. In this way we could theoretically > retrieve chapters (and books?) using grouping but > a. we will miss matches across two contiguous pages (page cutting is > only due to typographical needs so concepts could be split... as in printed > books) > b. I don't know if it is possible in SOLR to group results on two > different levels (books and chapters) > > 2. index chapters as SOLR documents. In this case we will have the right > matches but how to obtain the matching pages? (we need pages because the > client can only display pages) > > we have been struggling on this problem for a lot of time and we're not > able to find a suitable solution so I'm looking if someone has ideas or has > already solved a similar issue. > Thanks > --001a11457788264121052cfc6409--