Giter Club home page Giter Club logo

Comments (10)

kibertoad avatar kibertoad commented on July 3, 2024 1

I suspect that would be way too much duplicated code. Let me try the axios fallback approach this week.

from solr-node-client.

kibertoad avatar kibertoad commented on July 3, 2024

@melloware So you are trying to use solr-node-client from the frontend and it used to work? Request is also node-only library, so it is interesting that it used to work. Undici is a new http client that we are using. I can try to implement fallback for frontend cases.

from solr-node-client.

melloware avatar melloware commented on July 3, 2024

Exactly. I am using a React Application. I added your SOLR Client 0.10.0-RC8 and get the above compile time failures.

If I go back to your 0.9.0 my code works just fine.

from solr-node-client.

melloware avatar melloware commented on July 3, 2024

I wonder if instead of fallback you should just use Axios so you have 1 lib and the code is cohesive and works on client or server?

from solr-node-client.

kibertoad avatar kibertoad commented on July 3, 2024

@melloware undici is significantly (3-4 times) faster than axios, so I prefer using that for BE.
FE is not a primary use-case for the lib.

from solr-node-client.

melloware avatar melloware commented on July 3, 2024

HA is there a client side library as fast as undici? :)

from solr-node-client.

kibertoad avatar kibertoad commented on July 3, 2024

Let me know if you find one :)

from solr-node-client.

melloware avatar melloware commented on July 3, 2024

HA so I am wondering if FE is not a goal of this library should I fork it? To me its a great use case for FE as I have a dashboard hitting SOLR directly displaying information that is 20X faster than their current application which uses Python middleware. So I did a POC with solr-client and React JS and it delivered impressive results. :)

I could create a solr-browser-client library using AXIOS which could support both?

from solr-node-client.

riccardolardi avatar riccardolardi commented on July 3, 2024

Has there ever been continuation on this? I'm looking to use this lib on frontend too using nextjs

from solr-node-client.

melloware avatar melloware commented on July 3, 2024

@riccardolardi no progress on this that I know of...

from solr-node-client.

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.