[ 
https://issues.apache.org/jira/browse/SOLR-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Kudryavtsev updated SOLR-5388:
-------------------------------------

    Description: 
Ability for expressions like _def(min(field1,..,fieldN), defValue)_  return 
_defValue_ if document doesn't have value for any of this fields. 
Implement _exists(int doc)_ method for FunctionValues created in 
MultiFloatFunction. Extract method to get ability other MultiFloatFunction 
implementation to override it. 
Example: 

Doc1: Field1: "1", Field2: "2"
Doc2: Field3: "3", FIeld4: "4"

Now if we call user function "def(min(Field1,Field2),5)" we've got : Doc1 = 1, 
Doc2 = +
 

  was:
Ability for expressions like _def(min(field1,..,fieldN), defValue)_  return 
_defValue_ if document doesn't have value for any of this fields. 
Implement _exists(int doc)_ method for FunctionValues created in 
MultiFloatFunction. Extract method to get ability other MultiFloatFunction 
implementation to override it. 


> Combine def function with "multi" functions (max, min, sum, product)
> --------------------------------------------------------------------
>
>                 Key: SOLR-5388
>                 URL: https://issues.apache.org/jira/browse/SOLR-5388
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Andrey Kudryavtsev
>            Priority: Minor
>              Labels: patch
>             Fix For: 5.0
>
>         Attachments: SOLR-5388.patch, SOLR-5388.patch
>
>
> Ability for expressions like _def(min(field1,..,fieldN), defValue)_  return 
> _defValue_ if document doesn't have value for any of this fields. 
> Implement _exists(int doc)_ method for FunctionValues created in 
> MultiFloatFunction. Extract method to get ability other MultiFloatFunction 
> implementation to override it. 
> Example: 
> Doc1: Field1: "1", Field2: "2"
> Doc2: Field3: "3", FIeld4: "4"
> Now if we call user function "def(min(Field1,Field2),5)" we've got : Doc1 = 
> 1, Doc2 = +
>  



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to