Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Elastic.Clients.Elasticsearch #84

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a4b976f
Use elasticsearch 8
niemyjski Aug 30, 2024
c6be6c7
WIP - Upgrade to the new Elasticsearch client
niemyjski Aug 30, 2024
aa8e564
Updated elastic
niemyjski Sep 12, 2024
3eec87f
WIP - Added polyfill for what will be added in next client.
niemyjski Sep 12, 2024
5dd521e
Added aggregation container that can be used to map to a descriptor
niemyjski Sep 12, 2024
50c0906
More fixes
niemyjski Sep 12, 2024
3707d56
More work to detect bucket aggs.
niemyjski Sep 12, 2024
1175b50
Commented out code / hacks to get it to compile
niemyjski Sep 12, 2024
020968c
WIP: Fix test compiler errors.
niemyjski Sep 12, 2024
104d5e4
WIP - TESTS
niemyjski Sep 12, 2024
af1f553
WIP - Test updates
niemyjski Sep 13, 2024
001bce4
Upgraded deprecated sync test method.
niemyjski Sep 13, 2024
799f7f3
Small updates
niemyjski Sep 13, 2024
afc472f
More test updates
niemyjski Sep 16, 2024
4b78492
Fixed a query bug
niemyjski Sep 16, 2024
2e1bed2
Merge branch 'main' into feature/elastic-client
niemyjski Oct 28, 2024
cd2e310
Merge branch 'main' into feature/elastic-client
niemyjski Nov 22, 2024
9859e81
Updated to latest client
niemyjski Nov 22, 2024
9526f2b
Merge branch 'main' into feature/elastic-client
niemyjski Nov 26, 2024
d4e8c8f
Merge branch 'main' into feature/elastic-client
niemyjski Jan 24, 2025
b679378
Updated elastic version
niemyjski Jan 24, 2025
a822889
Merge remote-tracking branch 'origin/main' into feature/elastic-client
niemyjski Feb 28, 2025
7d9a25e
WIP: Fixed more compiler errors.
niemyjski Feb 28, 2025
805cfdc
WIP: Down to 71 compiler errors
niemyjski Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"cSpell.words": [
"aggs",
"Foundatio",
"Lucene",
"Niemyjski",
"Xunit",
"aggs"
"Xunit"
],
"msbuildProjectTools.nuget.includePreRelease": true
}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.24
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.1
environment:
discovery.type: single-node
xpack.security.enabled: 'false'
Expand All @@ -19,7 +19,7 @@ services:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:7.17.24
image: docker.elastic.co/kibana/kibana:8.16.1
ports:
- 5601:5601
networks:
Expand Down
11 changes: 11 additions & 0 deletions src/Foundatio.Parsers.ElasticQueries/AggregationMap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Collections.Generic;

namespace Foundatio.Parsers.ElasticQueries;

public record AggregationMap(string Name, object Value)
{
public string Name { get; set; } = Name;
public object Value { get; set; } = Value;
public List<AggregationMap> Aggregations { get; } = new();
public Dictionary<string, object> Meta { get; } = new();
}
Loading