Skip to content

Commit

Permalink
Offset
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Aug 14, 2023
1 parent acdf151 commit 06b49b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@

### Parameters

| Name | Type | Comments |
| --------- | -------- | -------------------------------------------------------------------------------- |
| `q` | `String` | Query |
| `doctype` | `String` | Values : `concept`, `course`, `lecture`, `mooc`, `person`, `publication`, `unit` |
| Name | Type | Comments |
| --------- | -------- | -------------------------------------------------------------------------------------- |
| `q` | `String` | Query |
| `doctype` | `String` | Values : `concept`, `course`, `lecture`, `mooc`, `person`, `publication`, `unit` |
| `offset` | `Number` | The index of the first result to return. The default number of results per page is 10. |

### Examples

Expand Down
1 change: 1 addition & 0 deletions src/services/semantic.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ async function get (query) {
return axios.get('https://graphdb.epfl.ch:41110/search/search.epfl.ch', {
params: {
q: query.q,
offset: query.offset || 0,
types: query.doctype || 'any'
}
});
Expand Down

0 comments on commit 06b49b4

Please sign in to comment.