Giter Club home page Giter Club logo

Comments (8)

lbdremy avatar lbdremy commented on June 20, 2024

Hi,

Which version of Solr are you using?
And did you create your client correctly? Have look to the definition of the method createClient() here http://lbdremy.github.com/solr-node-client/code/solr.js.html.

from solr-node-client.

jochenonline avatar jochenonline commented on June 20, 2024

I am using Solr4 (beta) and I am creating the client like this (Solr running on localhost with standard port):

var solr = require('solr-client'),
    client = solr.createClient(),
    ...

I am using the same client for .add(...), .createQuery(...) and .search(...) successfully. Only deleting documents makes trouble! I had no problems deleting documents with node-solr on the same installation.

from solr-node-client.

lbdremy avatar lbdremy commented on June 20, 2024

Yes the client is not working well with Solr 4 yet, an issue has been raised #27.
If you run the test suite (without the flag mocked : true, look at test/config.json), you will see that couple of test are failing against a Solr 4 server.
Feel free to send a pull request to fix that.

from solr-node-client.

jochenonline avatar jochenonline commented on June 20, 2024

Any workaround possible i.e. via sending the delete command more directly to the server?

from solr-node-client.

lbdremy avatar lbdremy commented on June 20, 2024

Well the method Client.prototype.update (http://lbdremy.github.com/solr-node-client/code/solr.js.html) is used to do all the POST requests, add, delete, commit ... but the thing is the path is not configurable from there, which is probably the reason it's not working since you get HTTP 404 error, you won't be able to modify the path from any methods available using an instance of Client.

from solr-node-client.

marc-portier avatar marc-portier commented on June 20, 2024

I just tested this : on my current v0.3.x branch versus a solr4 instance and it just passes.
So I guess we can close this off together with the v0.3.x release?

Together with #88 and #27 that would mean we have all outstanding solr4 labeled issues covered in v0.3.x

from solr-node-client.

lbdremy avatar lbdremy commented on June 20, 2024

Ok I suppose yes

from solr-node-client.

lbdremy avatar lbdremy commented on June 20, 2024

Landed on npm

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.