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 E26CA176F1 for ; Mon, 20 Oct 2014 22:04:50 +0000 (UTC) Received: (qmail 74166 invoked by uid 500); 20 Oct 2014 22:04:44 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 74095 invoked by uid 500); 20 Oct 2014 22:04:44 -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 74084 invoked by uid 99); 20 Oct 2014 22:04:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2014 22:04:43 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2014 22:04:39 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XgL3q-0005NJ-GM for solr-user@lucene.apache.org; Mon, 20 Oct 2014 15:04:18 -0700 Date: Mon, 20 Oct 2014 15:04:18 -0700 (PDT) From: "O. Olson" To: solr-user@lucene.apache.org Message-ID: <1413842658496-4165036.post@n3.nabble.com> Subject: Is there a problem with -Infinity as boost? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I am considering using a boost as follows:=20 &boost=3Dlog(qty) Where qty is the quantity in stock of a given product i.e. qty could be 0, 1, 2, 3, =E2=80=A6 etc. The problem I see is that log(0) is -Infinity. Woul= d this be a problem for Solr? For me it is not a problem because=20 log(0) < log(1) < log(2) etc.=20 I'd be grateful for any thoughts. One alternative is to use max e.g. &boost=3Dmax(log(qty), -1)=20 But still this would cause Solr to compute the -Infinity and then discard it. So can I use an expression for boost that would result in =E2=80=93Inf= inity?=20 Thank you O. O. -- View this message in context: http://lucene.472066.n3.nabble.com/Is-there-a= -problem-with-Infinity-as-boost-tp4165036.html Sent from the Solr - User mailing list archive at Nabble.com.