Giter VIP home page Giter VIP logo

Comments (5)

flobernd avatar flobernd commented on June 12, 2024 1

@giannik There is a very short example in this migration guide document: https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/migration-guide.html#_workarounds_for_missing_features

Deserializing back to the CLR response types is more complex and I currently don't have any read-to-use documentation for that.

from elasticsearch-net.

flobernd avatar flobernd commented on June 12, 2024

Hi @giannik, You are right, KNN queries are not completeley implemented yet. I can not give you an exact ETA for that, as it currently does not have very high priority.

Besides that, please note, that deserialization of requests is not officially supported (and might not work with some requests). The client usually only serializes requests and deserializes responses. Roundtripping is at best partially implemented 🙂

from elasticsearch-net.

giannik avatar giannik commented on June 12, 2024

@flobernd thanks for the notice.
do you have a recomended generic approach to run queries in the dotnet client based on the json query body given as a string ?
for example easily identify what type of query it is (that derives from base class searchQuery ) from the json string and generically be able to execute the query in dotnet ?

from elasticsearch-net.

flobernd avatar flobernd commented on June 12, 2024

@giannik This scenario is not directly supported by the client. If you have query payloads in JSON format, I would probably use the low level transport client to send raw requests (you could probably still deserialize the response to the corresponding CLR type).

There is a chance that the KNN query deserialization might work after some code generation improvements I'm currently working on (earliest release in the end of Q1), but I can't promise anything.

from elasticsearch-net.

giannik avatar giannik commented on June 12, 2024

thank you @flobernd .
Can you share any links (docs , examples ) on how to use the low level client in latest dotnet client ?
Yiannis

from elasticsearch-net.

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.