Comments (1)
sort
shouldn't be inside query
.
Example:
➜ ~ mysql -P9306 -h0 -e "drop table if exists t; create table t; insert into t values(1),(1000),(2),(2000),(3),(3000)"
➜ ~ curl -s 0:9308/search -d '{
"index" : "t",
"query":
{
"range": {"id": {"lt": 9999999999}}
},
"sort": [{"id": "desc"}]
}'|jq .
{
"took": 0,
"timed_out": false,
"hits": {
"total": 6,
"total_relation": "eq",
"hits": [
{
"_id": "3000",
"_score": 1,
"_source": {}
},
{
"_id": "2000",
"_score": 1,
"_source": {}
},
{
"_id": "1000",
"_score": 1,
"_source": {}
},
{
"_id": "3",
"_score": 1,
"_source": {}
},
{
"_id": "2",
"_score": 1,
"_source": {}
},
{
"_id": "1",
"_score": 1,
"_source": {}
}
]
}
}
More here https://manual.manticoresearch.com/Searching/Sorting_and_ranking#HTTP
from manticoresearch.
Related Issues (20)
- Thai chars are in the wrong charsets HOT 9
- Treating document IDs as numbers in /search responses HOT 4
- Daemon crashes on _search request from Kibana HOT 1
- Fix json escaping for mysqldump HOT 2
- Make it possible to heal from dupes in a disk chunk HOT 3
- Search by JSON keys works incorrectly HOT 1
- Possible issue with Buddy on Windows HOT 6
- buddy can not work at Windows if listen is 127.0.0.1 HOT 5
- WARNING: wordlist size mismatch (size=18, checkpoints=0) HOT 3
- Crash if I use an SQL with a reserved word HOT 4
- Escape is not working for HTTP and SQL HOT 4
- IDF calculation issue
- Extended quote and double quote functionality
- Show correct data types in /cli_json HOT 2
- Escaping in wordforms and exceptions
- Problem with using > HOT 1
- Error: GPG check FAILED when installing in platform linux/arm64 image almalinux:9 HOT 7
- Non exist chunk crash
- Can't import table with wordforms HOT 8
- plain index needs autodetection of date formats for timestamp fields
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 manticoresearch.