Skip to content

Commit

Permalink
(docs): Improve website structure (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
drmarjanovic authored Apr 3, 2023
1 parent 2ed8919 commit 8cbd1a9
Show file tree
Hide file tree
Showing 31 changed files with 176 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/overview/aggregations/elastic_aggregation_terms.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_aggregation_terms
id: elastic_aggregation_terms
title: "Terms Aggregation"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/elastic_aggregation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_aggregation
id: elastic_aggregation
title: "Overview"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/elastic_query.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_query
id: elastic_query
title: "Overview"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/elastic_request.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_request
id: elastic_request
title: "Overview"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/queries/elastic_query_contains.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_query_contains
id: elastic_query_contains
title: "Contains Query"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/queries/elastic_query_exists.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_query_exists
id: elastic_query_exists
title: "Exists Query"
---

Expand Down
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_filter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_filter
title: "Filter Query"
---

TBD
21 changes: 21 additions & 0 deletions docs/overview/queries/elastic_query_match_all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
id: elastic_query_match_all
title: "Match All Query"
---

The most simple query, which matches all documents, giving them all a `_score` of `1.0`.

To create a `MatchAll` query do the following:

```scala
import zio.elasticsearch.query.MatchAllQuery
import zio.elasticsearch.ElasticQuery._

val query: MatchAllQuery = matchAll
```

If you want to change the `_score`, you can use the `boost` method:

```scala
val queryWithBoost: MatchAllQuery = matchAll.boost(1.2)
```
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_matches.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_matches
title: "Matches Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_must.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_must
title: "Must Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_must_not.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_must_not
title: "Must Not Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_nested.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_nested
title: "Nested Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_range.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_range
title: "Range Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_should.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_should
title: "Should Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_starts_with.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_starts_with
title: "Starts With Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_term.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_term
title: "Term Query"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/queries/elastic_query_wildcard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_query_wildcard
title: "Wildcard Query"
---

TBD
2 changes: 1 addition & 1 deletion docs/overview/requests/elastic_request_aggregate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_request_aggregate
id: elastic_request_aggregate
title: "Aggregation Request"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/requests/elastic_request_bulk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_request_bulk
id: elastic_request_bulk
title: "Bulk Request"
---

Expand Down
2 changes: 1 addition & 1 deletion docs/overview/requests/elastic_request_count.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: overview_elastic_request_count
id: elastic_request_count
title: "Count Request"
---

Expand Down
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_create
title: "Create Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_create_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_create_index
title: "Create Index Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_delete_by_id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_delete_by_id
title: "Delete By ID Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_delete_by_query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_delete_by_query
title: "Delete By Query Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_delete_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_delete_index
title: "Delete Index Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_exists.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_exists
title: "Exists Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_get_by_id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_get_by_id
title: "Get By ID Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_search
title: "Search Request"
---

TBD
6 changes: 6 additions & 0 deletions docs/overview/requests/elastic_request_upsert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: elastic_request_upsert
title: "Upsert Request"
---

TBD
4 changes: 3 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.0"
"@docusaurus/module-type-aliases": "^2.4.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
"browserslist": {
"production": [
Expand Down
38 changes: 29 additions & 9 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,47 @@ module.exports = {
type: 'category',
label: 'Elastic Query',
items: [
'overview/overview_elastic_query',
'overview/queries/overview_elastic_query_contains',
'overview/queries/overview_elastic_query_exists',
'overview/elastic_query',
'overview/queries/elastic_query_contains',
'overview/queries/elastic_query_exists',
'overview/queries/elastic_query_filter',
'overview/queries/elastic_query_match_all',
'overview/queries/elastic_query_matches',
'overview/queries/elastic_query_must',
'overview/queries/elastic_query_must_not',
'overview/queries/elastic_query_nested',
'overview/queries/elastic_query_range',
'overview/queries/elastic_query_should',
'overview/queries/elastic_query_starts_with',
'overview/queries/elastic_query_term',
'overview/queries/elastic_query_wildcard',
],
},
{
type: 'category',
label: 'Elastic Aggregation',
items: [
'overview/overview_elastic_aggregation',
'overview/aggregations/overview_elastic_aggregation_terms',
'overview/elastic_aggregation',
'overview/aggregations/elastic_aggregation_terms',
],
},
{
type: 'category',
label: 'Elastic Request',
items: [
'overview/overview_elastic_request',
'overview/requests/overview_elastic_request_aggregate',
'overview/requests/overview_elastic_request_bulk',
'overview/requests/overview_elastic_request_count',
'overview/elastic_request',
'overview/requests/elastic_request_aggregate',
'overview/requests/elastic_request_bulk',
'overview/requests/elastic_request_count',
'overview/requests/elastic_request_create',
'overview/requests/elastic_request_create_index',
'overview/requests/elastic_request_delete_by_id',
'overview/requests/elastic_request_delete_by_query',
'overview/requests/elastic_request_delete_index',
'overview/requests/elastic_request_exists',
'overview/requests/elastic_request_get_by_id',
'overview/requests/elastic_request_search',
'overview/requests/elastic_request_upsert',
],
},
'overview/overview_zio_prelude_schema',
Expand Down

0 comments on commit 8cbd1a9

Please sign in to comment.