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 23822F824 for ; Sat, 6 Apr 2013 14:19:34 +0000 (UTC) Received: (qmail 49462 invoked by uid 500); 6 Apr 2013 14:19:30 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 49413 invoked by uid 500); 6 Apr 2013 14:19:30 -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 49405 invoked by uid 99); 6 Apr 2013 14:19:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Apr 2013 14:19:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.160.46 as permitted sender) Received: from [209.85.160.46] (HELO mail-pb0-f46.google.com) (209.85.160.46) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Apr 2013 14:19:26 +0000 Received: by mail-pb0-f46.google.com with SMTP id rp8so2473445pbb.19 for ; Sat, 06 Apr 2013 07:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=+HZFhU0fwDhZI898bW9UYYUKN3/E0MJpUu0cTkpmSuo=; b=C8ft4CDy3sZ9vxXpjZXZqTXr55llwLAAxGub1/IaqrNsEmJh4aw7AfeP7vi8E01Z8y 79p48O8+pijJkuLR8/OGKiuLiL3TTs5uFRC69n2Uo5pkgSuxtErPP3KFrW3nxvUSdpi7 hASFrJmWETF8DoBv/a+CfWDdukbaMW9BYNdyAZhgib1Y7QQV3FdKSxxSSzGVbrzC+zYr CJIYQ9JMdS5kV3JkOEeiv1v0eVFTbcWvwXnPfsh9Ln0oVhWQ6qqGpi4CBFbJii05xRME /C9lbf4ceCIkk5Nl0PVBgoywMgDIRt+9wXXA7l+KnCrLXAa7Ag/bIxi3mwVOrQ8xm3mn ++Jg== MIME-Version: 1.0 X-Received: by 10.66.75.193 with SMTP id e1mr20906732paw.202.1365257945941; Sat, 06 Apr 2013 07:19:05 -0700 (PDT) Sender: yseeley@gmail.com Received: by 10.68.230.164 with HTTP; Sat, 6 Apr 2013 07:19:05 -0700 (PDT) In-Reply-To: References: Date: Sat, 6 Apr 2013 10:19:05 -0400 X-Google-Sender-Auth: SsJ30y4SUHgZlrXH6guvtkJn93c Message-ID: Subject: Re: Boost parameter with query function - how to pass in complex params? From: Yonik Seeley To: "solr-user@lucene.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Apr 6, 2013 at 9:42 AM, dc tech wrote: > See example below > 1. Search for SUVs and boost Honda models > q=suv&boost=query({! v='honda'},1) > > 2. Search for SUVs and boost Honda OR toyota model > > a) Using OR in the query does NOT work > q=suv&boost=query({! v='honda or toyota'},1) The "or" needs to be uppercase "OR". It might also be easier to compose and read like this: q=suv boost=query($boostQ) boostQ=honda OR toyota OF course something simpler like this might also serve your primary goal: q=+suv (honda OR toyota)^10 -Yonik http://lucidworks.com