Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 00261200BA2 for ; Sun, 2 Oct 2016 00:26:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2EBD160AE7; Sat, 1 Oct 2016 22:26:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3ABEE160AD7 for ; Sun, 2 Oct 2016 00:26:48 +0200 (CEST) Received: (qmail 22736 invoked by uid 500); 1 Oct 2016 22:26:46 -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 22724 invoked by uid 99); 1 Oct 2016 22:26:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Oct 2016 22:26:46 +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 E4CEEC099F for ; Sat, 1 Oct 2016 22:26:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dDjUSDqoNsgo for ; Sat, 1 Oct 2016 22:26:44 +0000 (UTC) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 535495F23C for ; Sat, 1 Oct 2016 22:26:43 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id t193so9540114ywc.2 for ; Sat, 01 Oct 2016 15:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cB5iUx4rKY623m6gV9ZMNHNUMr/Z3vLs/lsCQFWrEVE=; b=GZqVxxDZ6+O0eYVBcgelLLJMqbPcVzMX3sCpkJTSg5u8UXzhokFQjR8GRi342rgmCW QqvsXtJ9aFYS0USjLE3j7vzQmkegtiQSvLyTuvPkjSoG2eiyvWk4BEAZq+ehDHdbIv78 U542jASBjf87+29iK37LoGK6Wl+NGhmiZDfh7/3VzkHKMJbnurt0riKzK1IcXRWHdmnS IeQRqg/iE+bNoTGHfTpleXScT6/Azmh2gVWriiZw2c0Okal2kzqaTLK+Hxd55Gl8dqP3 Y6NlSOo/T5CKT1eCNelHOfXttBaugTuFI9ENmictuCu5/Nj4cL93dT/tLirHc+atDZPt mlQQ== 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; bh=cB5iUx4rKY623m6gV9ZMNHNUMr/Z3vLs/lsCQFWrEVE=; b=b+5X7k1Gjhey8NdyB8+lDcenycf9iEGj2LkVYYmr1WPTG1MY3ASchfBj8FPg/qqSM0 a96f85ymGkl4dCFSeJ0MMjA08yWWu5blSmO1NyNyL8QL/WY5kGPVZ3FOUpIQYsSJwX0L 3Jmh9TJJxzi/aWUcOvluO/mejgapult+yZcZngc0dXu9rDqwyRRQwmZHJ//332znHqzR KBNkny+fA//t0YDA8H53KdRktmok7+HgPqGZUN5riJzo79nvXU5r8gZP9WfhOtBXQNsi zgwBWd45+cwC4Hydl9j0SuQefbHDwHxyn4UxX8jBFB/qXi1vst09jpEx0MQnLRPho9hl evMQ== X-Gm-Message-State: AA6/9RlLOrhDRk92koxPNu0pjE4qsnaL27RSLDCgDGtOu29kBv4rvHv7Im0mVIkgJZx0If2cV7ZuuZfPq4WEGg== X-Received: by 10.13.213.71 with SMTP id x68mr10358484ywd.226.1475360796298; Sat, 01 Oct 2016 15:26:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.83.68 with HTTP; Sat, 1 Oct 2016 15:26:35 -0700 (PDT) In-Reply-To: References: From: Joel Bernstein Date: Sat, 1 Oct 2016 18:26:35 -0400 Message-ID: Subject: Re: How to use StreamingApi MultiFieldComparator? To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114fa59c2dd1fe053dd534bb archived-at: Sat, 01 Oct 2016 22:26:49 -0000 --001a114fa59c2dd1fe053dd534bb Content-Type: text/plain; charset=UTF-8 Also you'll probably need to specify the /export handler in the search expressions, so you get the entire result set. qt="/export" Joel Bernstein http://joelsolr.blogspot.com/ On Sat, Oct 1, 2016 at 6:08 PM, Joel Bernstein wrote: > Ok, I took a closer look at the expression. I believe this is not > supported: > > sale_price_d!=c_sale_price_d > > Possibly the complement expression might accomplish what you're trying to > do. > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Sat, Oct 1, 2016 at 5:59 PM, Joel Bernstein wrote: > >> Hi can you attach the stack traces in the logs? I'd like to see where >> this exception coming, this appears to be a bug. >> >> I'll also need to dig into your expression and see if there is an issue >> with the syntax. >> >> Joel Bernstein >> http://joelsolr.blogspot.com/ >> >> On Sat, Oct 1, 2016 at 2:29 PM, Markko Legonkov >> wrote: >> >>> Hi >>> >>> What i would like to achieve is that i want to filter out all products >>> which have different prices on two given dates. >>> Here is a sample expression >>> >>> leftOuterJoin( >>> search( >>> products, >>> q="*:*", >>> fq="product_id_i:1 AND product_name_s:test", >>> fl="id, product_id_i, product_name_s,sale_price_d", >>> sort="product_id_i asc" >>> ), >>> select( >>> search( >>> products, >>> q="product_id_i:1 AND product_name_s:Test", >>> fl="id, product_id_i, product_name_s,sale_price_d", >>> sort="product_id_i asc" >>> ), >>> id as c_id, >>> product_id_i as c_product_id_i, >>> product_name_s as c_product_name_s, >>> sale_price_d as c_sale_price_d >>> ), >>> on="product_id_i=c_product_id_i, sale_price_d!=c_sale_price_d" >>> ) >>> >>> I am using solr 6.2.0 >>> And the result i get from solr is: >>> { >>> "result-set": { >>> "docs": [ >>> { >>> "EXCEPTION": "org.apache.solr.client.solrj. >>> io.comp.FieldComparator >>> cannot be cast to >>> org.apache.solr.client.solrj.io.comp.MultipleFieldComparator", >>> "EOF": true >>> } >>> ] >>> } >>> } >>> >>> Do i have to configure something in solr that it knows it has to use >>> MultipleFieldComparator? >>> >>> Regards >>> Max >>> >> >> > --001a114fa59c2dd1fe053dd534bb--