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 9DECD1013B for ; Sat, 31 Aug 2013 14:37:28 +0000 (UTC) Received: (qmail 88420 invoked by uid 500); 31 Aug 2013 14:37:24 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 88380 invoked by uid 500); 31 Aug 2013 14:37:23 -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 88372 invoked by uid 99); 31 Aug 2013 14:37:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Aug 2013 14:37:23 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of danydany.isp@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Aug 2013 14:37:18 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VFmIM-0001Ev-6x for solr-user@lucene.apache.org; Sat, 31 Aug 2013 07:36:58 -0700 Date: Sat, 31 Aug 2013 07:36:58 -0700 (PDT) From: danielitos85 To: solr-user@lucene.apache.org Message-ID: <1377959818206-4087663.post@n3.nabble.com> In-Reply-To: References: <1377871049573-4087503.post@n3.nabble.com> <1377888474689-4087563.post@n3.nabble.com> Subject: Re: Change the score of a document based on the *value* of a multifield using dismax MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Erick, but think if I have an simple float value and not distance. I have a situation like this: - id: 1 - myText: ["iphone", "ipad", "macbook"] - myFieldFloat: [3.4,2.1,5.3] I want to set the value of myFieldFloat at his respective myText. I tried this: but it return an error: org.apache.solr.handler.dataimport.DataImportHandlerException: Data Config problem: For input string: "{$places.distance_place}" at I also tried to set in my query a Cast, but the same error: SELECT myText, CAST(myFloatValue AS DECIMAL(10,6)) as myFloatValue FROM myTable WHERE myCondition please, any suggests? -- View this message in context: http://lucene.472066.n3.nabble.com/Change-the-score-of-a-document-based-on-the-value-of-a-multifield-tp4087503p4087663.html Sent from the Solr - User mailing list archive at Nabble.com.