Coder Social home page Coder Social logo

Comments (7)

juzerali avatar juzerali commented on June 15, 2024

node-solr has no documentation. That is the sole reason I switched to this one.

from solr-node-client.

lbdremy avatar lbdremy commented on June 15, 2024

Hello @jochenonline ,

They are few differences between these two clients:

  • node-solr is a low-level client and solr-node-client is more high-level client by providing handy methods to build a Query and some others like Client#addRemoteRessource or Client#createAddStream.
  • node-solr sends XML to Solr, solr-node-client sends JSON to Solr but both ask to retrieve JSON response
  • solr-node-client has documentation on a website http://lbdremy.github.com/solr-node-client/ and in the code
  • Both have tests
  • Both are maintained by their authors and accept pull requests :)

Let me know if you have other questions.

from solr-node-client.

jochenonline avatar jochenonline commented on June 15, 2024

Due to some problems with wildcards (*) and + while searching with node-solr, I switched to solr-node-client!

from solr-node-client.

AvnerCohen avatar AvnerCohen commented on June 15, 2024

I too made a switch after short play with node-solr.

I think solr-node-client has a much nicer api and better support for complex queries, some very basic stuff (like paging) are not obvious on node-solr.

from solr-node-client.

dmgreene avatar dmgreene commented on June 15, 2024

About to make the switch myself. Any advice from @AvnerCohen @jochenonline @juzerali ?

I'm wondering if anyone has any advice on migrating from node-solr to solr-node-client? It seems like they share API signatures, so I'm hoping that it will be a pretty painless switch?

from solr-node-client.

jochenonline avatar jochenonline commented on June 15, 2024

No advice in special. We again switched in the meantime. This time we changed Solr to ElasticSearch which has the far better speed in development and itself has a better support oft replication which is inevitable for us due to failover possibilities.

from solr-node-client.

AvnerCohen avatar AvnerCohen commented on June 15, 2024

@dmgreene I've been a happy user of solr-node-client for a long time now. Working with the package in a rather heavy traffic site as part of the search feature of the site (top 300 sites of the world as per Alexa..).

So, far, I'm a very happy uper :)

I like it that there is a nice API touch when API exists, for example:

  var query = solr_client.createQuery().q(query_string)
  .defType('edismax')
  .qf({term_s:1})
  .pf({term_s:1})
  .mm(escape("100%"));
  return query;

And when API is not already present, I can easily switch to custom code and use whatever I need:

solr_client.createQuery().q(search_str).set("fq=whatever_customer_query");

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.