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 2C3A6175AA for ; Wed, 24 Jun 2015 22:29:23 +0000 (UTC) Received: (qmail 23672 invoked by uid 500); 24 Jun 2015 22:29:18 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 23602 invoked by uid 500); 24 Jun 2015 22:29:18 -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 23590 invoked by uid 99); 24 Jun 2015 22:29:18 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 22:29:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BA7A6C006D for ; Wed, 24 Jun 2015 22:29:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.214 X-Spam-Level: **** X-Spam-Status: No, score=4.214 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=griddynamics.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QdgGIOq883Tm for ; Wed, 24 Jun 2015 22:29:07 +0000 (UTC) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 576E543E2F for ; Wed, 24 Jun 2015 22:29:07 +0000 (UTC) Received: by lagx9 with SMTP id x9so34498116lag.1 for ; Wed, 24 Jun 2015 15:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=griddynamics.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=e+Z8AGYXVvDlXvguyuzD4arw8RaeK1AGgftFIQ/sSCg=; b=FV44C0WhdoYMafbIKGYU7ZHtA/73wj/3Wz9csLSoJiWKuufcTQNxxUfzyH2CuFCjPd fF6VU/ySRADo0GPLgzsmdQ8dp6k1Cdem1d80es6pC2Rr8z+ePv8XtQHOtspd7TGPB7pa T14Adw0+oHpK28RMG5dMLK23DFvcHJF1R1ahY= 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:from:date :message-id:subject:to:content-type; bh=e+Z8AGYXVvDlXvguyuzD4arw8RaeK1AGgftFIQ/sSCg=; b=OOOU2DwFQUJUH6UKq1EGtNKjabvKQnGWb02cyLvynPVlunS3NLeIUyrPgHnzmT6r8V XqBy7kY7fXLgWUWKneeuVHvgorm0ArKFYIVNSb5o0o7W8zMtEBKHGTzUaH0yUjlr2Asm ZuitHHgHGXu4wSmhhj8LVHZhnVSwYcQjdSIVIWUe8etKVkMhRamk/z9WED7/yIVgt8mc Kapk/h7mh0REHeKmP8YHCHSvFhIjppH0GMjjRBmGUlCKA0dqgNuUXf57g/qyxkdKVh9X 0C1xtOXlKicf/xwCwIY2939RgdZXmuhgfrxJG9MXnLsg+QlTtUR0EGd9RwLccsA5zSJH h7oA== X-Gm-Message-State: ALoCoQmSTOkScnxUa2N704g+C00BTAnbmom4AKcs0Pxbodf8cbDWC989BYXGdQCk6a8IDt0ZoWpD X-Received: by 10.112.157.36 with SMTP id wj4mr39313596lbb.115.1435184946278; Wed, 24 Jun 2015 15:29:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.76.70 with HTTP; Wed, 24 Jun 2015 15:28:26 -0700 (PDT) In-Reply-To: <1434971071179-4213242.post@n3.nabble.com> References: <1433493306631-4209940.post@n3.nabble.com> <1434971071179-4213242.post@n3.nabble.com> From: Mikhail Khludnev Date: Thu, 25 Jun 2015 01:28:26 +0300 Message-ID: Subject: Re: Sorting documents by nested / child docs with FunctionQueries To: solr-user , =?UTF-8?B?157XkNeZ15Qg15LXnNei15M=?= Content-Type: multipart/alternative; boundary=001a11c2abc2e90a1c05194b0860 --001a11c2abc2e90a1c05194b0860 Content-Type: text/plain; charset=UTF-8 Just pulled and launched Solr 5.2.1 dropped multivalued child into see data below. Response is quite correct: "id":"22", "COLOR_s":"Blue","SIZE_ss":["XL","XXL"]}]}] http://localhost:8983/solr/solr/select?q={!parent+which%3Dtype_s%3Aparent}%2BCOLOR_s%3ABlue+%2BSIZE_ss%3AXL&fl=id%2C[child+parentFilter%3Dtype_s%3Aparent+childFilter%3D-type_s%3Aparent+limit%3D100]&wt=json&indent=true { "responseHeader":{ "status":0, "QTime":3, "params":{ "q":"{!parent which=type_s:parent}+COLOR_s:Blue +SIZE_ss:XL", "indent":"true", "fl":"id,[child parentFilter=type_s:parent childFilter=-type_s:parent limit=100]", "wt":"json"}}, "response":{"numFound":2,"start":0,"docs":[ { "id":"10", "_childDocuments_":[ { "id":"11", "COLOR_s":"Red", "SIZE_ss":["XL"]}, { "id":"12", "COLOR_s":"Blue", "SIZE_ss":["XL"]}]}, { "id":"20", "_childDocuments_":[ { "id":"21", "COLOR_s":"Red", "SIZE_ss":["M"]}, { "id":"22", "COLOR_s":"Blue", "SIZE_ss":["XL", "XXL"]}]}] }} *:* 10 parent Nike 11 Red XL 12 Blue XL 20 parent Nike 21 Red M 22 Blue XL XXL 30 parent Puma 31 Red XL 32 Blue M On Mon, Jun 22, 2015 at 2:04 PM, Maya G wrote: > I've tried your solution and encountered a problem. > > My child document has a multi-valued field. > > When I query the doc by its' guid, all of the field's values are returned. > When I use the join block query only one value is returned for the > multi-value field. > > Do you have any suggestions? > Thank you, > Maya > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940p4213242.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics --001a11c2abc2e90a1c05194b0860--