Skip to content

Commit

Permalink
Merge pull request FeatureBaseDB#1551 from jaffee/1550-topn-doc
Browse files Browse the repository at this point in the history
fix topn spec and example in docs

(cherry picked from commit ada9857)
  • Loading branch information
jaffee authored and codysoyland committed Aug 1, 2018
1 parent 8abdd38 commit 00763a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/query-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Count(Row(stargazer=1))
**Spec:**

```
TopN([ROW_CALL], <FIELD>, [n=UINT],
TopN(<FIELD>, [ROW_CALL], [n=UINT],
[attrName=<ATTR_NAME>, attrValues=<[]ATTR_VALUE>])
```

Expand Down Expand Up @@ -468,7 +468,7 @@ TopN(stargazer, n=2)

Filter based on an existing row:
```request
TopN(Row(language=1), stargazer, n=2)
TopN(stargazer, Row(language=1), n=2)
```
```response
{"results":[[{"id":1240,"count":35},{"id":7508,"count":32}]]}
Expand Down

0 comments on commit 00763a3

Please sign in to comment.