Comments (3)
Hi @ayouman95, thanks for reaching out!
This is the default limit of the search results returned for an FT.SEARCH
command, you can see this by running FT.INFO idx:vertical_MY
, and observing the MAXSEARCHRESULTS
config param (notice that there is a parallel MAXAGGREGATERESULTS
for FT.AGGREGATE
commands).
You can change this by using FT.CONFIG SET MAXSEARCHRESULTS <value>
, and then get the wanted number of results from your command.
from redisearch.
hi @ayouman95 I created a test case to check limit 10000 2 and it works for me.
In bash, create 200,000 records:
for i in {1..200000}
do
redis-cli hset namespace:test$i address test$i totalSold $i
done
Create index:
FT.CREATE testidx ON hash PREFIX 1 'namespace:' SCHEMA address TAG totalSold numeric SORTABLE
Then, execute the queries:
ft.search testidx "*" LIMIT 10000 2
which returns:
1) "200000"
2) "namespace:test10001"
3) 1) "address"
2) "test10001"
3) "totalSold"
4) "10001"
4) "namespace:test10002"
5) 1) "address"
2) "test10002"
3) "totalSold"
4) "10002"
from redisearch.
my bad, it looks like I did not pass in the MAXSEARCHRESULTS variable and the default is 1,000,000:
> ft.config get MAXSEARCHRESULTS
1) 1) "MAXSEARCHRESULTS"
2) "1000000"
If this is set to 10,000, then there will be no results, like your case. Do note that if you did specify an offset greater than 10,000 then an error will be returned:
> ft.search testidx "*" LIMIT 10001 2
"OFFSET exceeds maximum of 10000"
from redisearch.
Related Issues (20)
- [BUG] Order of precedence not honored in APPLY functions with exponents HOT 1
- MOD-7133: [Feature Request] Add FT.ALIASGET command HOT 2
- L2 distance computation misunderstanding in documentation HOT 4
- [BUG] I can't run "make build" command successfully HOT 3
- Document Distributed Search (RSCoordinator) build/installation HOT 7
- Boost File Error when building 2.8.13 with Bullseye HOT 1
- [BUG] RediSearch HNSW indexing deadlock? HOT 2
- Facing build issue on PPC64LE architecture. HOT 3
- [BUG] APPLY substr function not using -1 count as documented - [MOD-6959]
- the results obtained after indexing are incomplete HOT 29
- Please Help Fix RSCoordinator So that Redis Search (RediSearch) Can Be Used Across Redis Cluster - module-oss.so initialization failed HOT 17
- Configuration of Custom Tokenizer HOT 1
- [BUG] Redis freezes and stops responding with 100% CPU Utilization while using redissearch with HNSW vector indexes HOT 2
- [Feature Request] int8 or float16 support for vector fields
- make cmd not working on linux system [RediSearch Installation] HOT 8
- [BUG] IDF change to 0 after writing the same text three times HOT 6
- [BUG] `disjoint` query for geoshapes yields incorrect results
- [BUG]The num_neighbours parameter of knn does not take effect HOT 1
- [BUG] High insert/delete, index with filter expression gradual slowdown
- Filter negatively impacting scores HOT 2
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 redisearch.