Comments (5)
Hi @HardlyMirage ,
The sort
method doesn't accept an Array as argument. The sort
method accepts a hash.
For example:
var query = solr.createQuery()
.q({keyword: keyword})
.rangeFilter({field: 'timestamp', start: timestampArr[keyword], end: '*'})
.sort({'created_at' : 'desc' })
.start(0)
.rows(2);
Let me know if your problem is solved :).
I will add an example into the folder examples and into the website for this case.
from solr-node-client.
Hi,
Thanks for the quick response. We did have that syntax initially, but it didn't appear to work. So we tried the other syntax.
Let me quickly confirm this and get back to you.
HM
from solr-node-client.
Hi @HardlyMirage , did that solve your issue or you still have a problem to sort?
from solr-node-client.
Hi @lbdremy, sorry for the delay. I had forgotten about this =)
But yes, the issue is resolved. I was using the wrong syntax, and the actual issue was unrelated to this module.
Thanks!
from solr-node-client.
Ok cool, thanks :)
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.