lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Commented] (SOLR-3963) SOLR: map() does not allow passing recip() sub-functions
Date Thu, 18 Oct 2012 23:04:03 GMT


Hoss Man commented on SOLR-3963:

Bill: i'm not understanding the error message you've pposted at all -- it seems to be from
some C# client code used to talk to solr?

can you post the actual error message logged by solr? preferably with the (java) stack trace?


bq. map(x,min,max,target) maps any values of the function x that fall within min and max inclusive
to target. *min,max,target are constants.* It outputs the field's value if it does not fall
between min and max. may be possible to modify the function so min/max/target could be functions, but as
designed it does not and you _should_ get a clear error message about that.
> SOLR: map() does not allow passing recip() sub-functions
> --------------------------------------------------------
>                 Key: SOLR-3963
>                 URL:
>             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.<BeginExecute>b__5(IAsyncResult
asyncResult) +283
>    System.Web.Mvc.Async.<>c__DisplayClass41.<BeginInvokeAsynchronousActionMethod>b__40(IAsyncResult
asyncResult) +22
>    System.Web.Mvc.Async.<>c__DisplayClass3b.<BeginInvokeActionMethodWithFilters>b__35()
>    System.Web.Mvc.Async.<>c__DisplayClass51.<InvokeActionMethodFilterAsynchronously>b__4b()
>    System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__38(IAsyncResult
asyncResult) +15
>    System.Web.Mvc.Async.<>c__DisplayClass2c.<BeginInvokeAction>b__22() +33
>    System.Web.Mvc.Async.<>c__DisplayClass27.<BeginInvokeAction>b__24(IAsyncResult
asyncResult) +240
>    System.Web.Mvc.<>c__DisplayClass19.<BeginExecuteCore>b__14(IAsyncResult
asyncResult) +28
>    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult
ar) +15
>    System.Web.Mvc.AsyncController.EndExecuteCore(IAsyncResult asyncResult) +63
>    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult
ar) +15
>    System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__4(IAsyncResult
asyncResult) +42
>    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message