Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 623F6D0E2 for ; Thu, 18 Oct 2012 05:30:07 +0000 (UTC) Received: (qmail 31357 invoked by uid 500); 18 Oct 2012 05:30:05 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 31244 invoked by uid 500); 18 Oct 2012 05:30:05 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 31195 invoked by uid 99); 18 Oct 2012 05:30:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 05:30:03 +0000 Date: Thu, 18 Oct 2012 05:30:02 +0000 (UTC) From: "Bill Bell (JIRA)" To: dev@lucene.apache.org Message-ID: <570766112.62339.1350538203153.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (SOLR-3963) SOLR: map() does not allow passing recip() sub-functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Bill Bell created SOLR-3963: ------------------------------- Summary: SOLR: map() does not allow passing recip() sub-functions Key: SOLR-3963 URL: https://issues.apache.org/jira/browse/SOLR-3963 Project: Solr Issue Type: Bug Affects Versions: 4.0 Reporter: Bill Bell I want to do: boost=map(achievement_count,1,1000,recip(achievement_count,-.5,10,25),1) I want to return recip(achievement_count,-.5,10,25) if achievement_count is between 1 and 1,000. FOr any other values I want to return 1. I cannot get it to work. I get the error below. Interesting this does work: boost=recip(map(achievement_count,0,0,-200),-.5,10,25) It almost appears that map() cannot take a function. Specified argument was out of the range of valid values. Parameter name: value Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value] System.Web.HttpResponse.set_StatusDescription(String value) +5200522 FacilityService.Controllers.FacilityController.ActionCompleted(String actionName, IFacilityResults results) +265 FacilityService.Controllers.FacilityController.SearchByPointCompleted(IFacilityResults results) +25 lambda_method(Closure , ControllerBase , Object[] ) +114 System.Web.Mvc.Async.<>c__DisplayClass7.b__5(IAsyncResult asyncResult) +283 System.Web.Mvc.Async.<>c__DisplayClass41.b__40(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.<>c__DisplayClass3b.b__35() +120 System.Web.Mvc.Async.<>c__DisplayClass51.b__4b() +452 System.Web.Mvc.Async.<>c__DisplayClass39.b__38(IAsyncResult asyncResult) +15 System.Web.Mvc.Async.<>c__DisplayClass2c.b__22() +33 System.Web.Mvc.Async.<>c__DisplayClass27.b__24(IAsyncResult asyncResult) +240 System.Web.Mvc.<>c__DisplayClass19.b__14(IAsyncResult asyncResult) +28 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.AsyncController.EndExecuteCore(IAsyncResult asyncResult) +63 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.<>c__DisplayClassb.b__4(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +282 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org