[ 
https://issues.apache.org/jira/browse/S2GRAPH-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158917#comment-15158917
 ] 

ASF GitHub Bot commented on S2GRAPH-33:
---------------------------------------

Github user hsleep commented on the pull request:

    https://github.com/apache/incubator-s2graph/pull/30#issuecomment-187714499
  
    +1


> Support weighted sum of multiple query results.
> -----------------------------------------------
>
>                 Key: S2GRAPH-33
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-33
>             Project: S2Graph
>          Issue Type: New Feature
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>              Labels: feature
>
> In some cases, It is necessary to aggregate multiple results from multiple 
> queries. 
> Some example cases would be hybrid recommender which composed of combination 
> of (user based collaborative filtering + most popular + content based 
> collaborative filtering..., etc).
> ex)
> {noformat}
> {
>   "queries": [
>     {
>       "srcVertices": [
>         {
>           "columnName": "user_id_test",
>           "id": 0,
>           "serviceName": "s2graph"
>         }
>       ],
>       "steps": [
>         [
>           {
>             "direction": "out",
>             "label": "s2graph_label_test_0",
>             "offset": 0
>           }
>         ]
>       ]
>     },
>     {
>       "srcVertices": [
>         {
>           "columnName": "user_id_test",
>           "id": 0,
>           "serviceName": "s2graph"
>         }
>       ],
>       "steps": [
>         [
>           {
>             "direction": "out",
>             "label": "s2graph_label_test_1",
>             "offset": 0
>           }
>         ]
>       ]
>     }
>   ],
>   "weights": [
>     0.6,
>     0.4
>   ],
>   "gropuBy": ["to"], 
>   "select": []
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to