Giter VIP home page Giter VIP logo

Comments (7)

bcuff avatar bcuff commented on June 1, 2024

The version of Elasticsearch.Net that' I'm targeting 2.4.6 only supports netstandard1.3, net45, and net46. Di you intend to do this for the v1 package?

from elasticsearch-net-aws.

Bikeman868 avatar Bikeman868 commented on June 1, 2024

I am using these packages

  <package id="AWSSDK.Core" version="3.3.14" targetFramework="net40" />
  <package id="AWSSDK.DynamoDBv2" version="3.3.4.13" targetFramework="net40" />
  <package id="AWSSDK.Elasticsearch" version="3.3.1.10" targetFramework="net40" />
  <package id="AWSSDK.S3" version="3.3.6.1" targetFramework="net40" />
  <package id="Microsoft.Owin" version="2.1.0" targetFramework="net40" />
  <package id="Microsoft.Owin.Host.SystemWeb" version="2.1.0" targetFramework="net40" />

from elasticsearch-net-aws.

bcuff avatar bcuff commented on June 1, 2024

Ah. The AWSSDK.Elasticsearch package only has functionality for creating and updating domains. If you actually want search etc. You'll need to use NEST, Elasticsearch.Net or some other client. This package is an add-on to Elasticsearch.Net & NEST that signs the HTTP requests so you can use AWS authentication.

If you need 4.0 support it looks like you'll need to use

  • Elasticsearch.Net 1.7.1
  • Elasticsearch.Net.Aws-v1 1.2.4

Follow the guide for 1.7.1 in the README

NEST is a higher level client that sits on top of Elasticsearch.Net. If you want to use that you'll need to also target the appropriate version that works with Elasticsearch.Net 1.7.1

Hope this helps.

from elasticsearch-net-aws.

bcuff avatar bcuff commented on June 1, 2024

Also, I just checked and Elasticsearch.Net.Aws-v1 1.2.4 doesn't support 4.0, however Elasticsearch.Net 1.7.1 does. If you submit a PR I would be happy to publish a new version for you. The V1 package is maintained on the version-1 branch.

from elasticsearch-net-aws.

Bikeman868 avatar Bikeman868 commented on June 1, 2024

Thanks for the info. I will go play :-)

from elasticsearch-net-aws.

Bikeman868 avatar Bikeman868 commented on June 1, 2024

I was able to get it working with this package

   <package id="Elasticsearch.Net" version="1.7.1" targetFramework="net40" />

and this code

    var endpoint = GetElasticSearchEndpoint(_awsConfiguration.ElasticSearch.ContentDomain);
    var baseUri = new Uri("http://" + endpoint + "/");

    var settings = new Elasticsearch.Net.Connection.ConnectionConfiguration(baseUri);
    var connection = new Elasticsearch.Net.Connection.HttpConnection(settings);

    var uri = new Uri(baseUri, "content/article/" + contentItemId);
    var document = new
    {
        title = article.Title,
        body = article.Body,
        deck = article.Deck
    };
    var json = JsonConvert.SerializeObject(document);
    var task = connection.Put(uri, Encoding.UTF8.GetBytes(json));

Thanks for your help

from elasticsearch-net-aws.

bcuff avatar bcuff commented on June 1, 2024

you're welcome.

from elasticsearch-net-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.