Comments (8)
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.
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.
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.
Any workaround possible i.e. via sending the delete command more directly to the server?
from solr-node-client.
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.
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.
Ok I suppose yes
from solr-node-client.
Landed on npm
from solr-node-client.
Related Issues (20)
- Migrate to TypeScript
- Using dynamic `require` instead of `import` in tests hides typescript errors. HOT 3
- Wrap requests in promises when callback is not set HOT 2
- Update migration guide
- Replace callback-based API with promise-based async functions HOT 37
- Build Issue: 0.10.0-RC8 HOT 10
- Firefox: Uncaught TypeError: Error.captureStackTrace is not a function HOT 1
- UnhandledPromiseRejectionWarning Error HOT 16
- Question: TypeScript Declaration HOT 2
- Requesting an example to add options like SSL parameters (like ca, cert, key). HOT 4
- Undici library causes tests to fail in the browser (Karma).
- Do not require a port when making a connection HOT 5
- Update function fails: "msg":"Unknown command 'id' at [5]" HOT 1
- Uncaught exception when client.ping is called against unresponsive Solr instance
- { library: 'SSL routines', function: 'ssl3_get_record', reason: 'wrong version number', code: 'ERR_SSL_WRONG_VERSION_NUMBER' } Error HOT 1
- Ability to add other parameters like `debug` or `rows` HOT 1
- Support for Solr 9? HOT 3
- TS Export Errors HOT 1
- Any way to mitigate specific errors caused by some field ?
- Facing issue while connecting `solr-client` with Zookeeper for Solr-Cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solr-node-client.