Skip to content

Commit

Permalink
Fix queries for Elastic v7
Browse files Browse the repository at this point in the history
  • Loading branch information
abi committed Dec 17, 2019
1 parent 242706b commit 3d76db2
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void Rebuild_Index()
{
using (var elasticsearch = new ElasticsearchInside.Elasticsearch(settings => settings
.EnableLogging()
.SetPort(9200)
.SetElasticsearchStartTimeout(180)).ReadySync())
{
ElasticSearchConfig config = new ElasticSearchConfig(new ConnectionSettings(elasticsearch.Url));
Expand All @@ -51,6 +52,7 @@ public void Index_Exists()
{
using (var elasticsearch = new ElasticsearchInside.Elasticsearch(settings => settings
.EnableLogging()
.SetPort(9200)
.SetElasticsearchStartTimeout(180)).ReadySync())
{
ElasticSearchConfig config = new ElasticSearchConfig(new ConnectionSettings(elasticsearch.Url));
Expand All @@ -70,6 +72,7 @@ public void Can_Add_One_Document()
{
using (var elasticsearch = new ElasticsearchInside.Elasticsearch(settings => settings
.EnableLogging()
.SetPort(9200)
.SetElasticsearchStartTimeout(180)).ReadySync())
{
ElasticSearchConfig config = new ElasticSearchConfig(new ConnectionSettings(elasticsearch.Url));
Expand Down Expand Up @@ -120,6 +123,7 @@ public void Can_Add_Multiple_Docs()
using (var elasticsearch = new ElasticsearchInside.Elasticsearch(settings => settings
.EnableLogging()
.SetPort(9200)
.SetElasticsearchStartTimeout(180)).ReadySync())
{
ElasticSearchConfig config = new ElasticSearchConfig(new ConnectionSettings(elasticsearch.Url));
Expand All @@ -146,6 +150,7 @@ public void Can_Delete()
using (var elasticsearch = new ElasticsearchInside.Elasticsearch(settings => settings
.EnableLogging()
.SetPort(9200)
.SetElasticsearchStartTimeout(180)).ReadySync())
{
ElasticSearchConfig config = new ElasticSearchConfig(new ConnectionSettings(elasticsearch.Url));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<Private>True</Private>
</Reference>
<Reference Include="ElasticsearchInside, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\ElasticsearchInside.7.1.2\lib\netstandard2.0\ElasticsearchInside.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\..\Elasticsearch-Inside\source\ElasticsearchInside\bin\Debug\netstandard2.0\ElasticsearchInside.dll</HintPath>
</Reference>
<Reference Include="Examine, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\Examine.1.0.1\lib\net452\Examine.dll</HintPath>
Expand Down
Loading

0 comments on commit 3d76db2

Please sign in to comment.