Comments (3)
SortBy builder only takes one field. The multiple calls to field("...") are just setting the field property multiple times.
from lettusearch.
@jruaux Yes, that's what I noticed after spending some time to understand that FT.SEARCH
supports SORTBY
on a single field only. Since the backend, does not support multi-field SORTBY
, why are you allowing such a construction?
If you look at the construction with FT.AGGREGATE, consecutive calls are not overriding previous ones. This makes sense since FT.AGGREGATE supports multi-field SORTBY but the difference of behavior might look confusing for new users:
Sort.builder()
.property(SortProperty.builder().property("pinned").order(Order.Desc).build())
.property(SortProperty.builder().property("publicationTime").order(Order.Desc).build())
.property(SortProperty.builder().property("updateTime").order(Order.Desc).build())
It was just to say preventing the construction with FT.SEARCH or at least to document the method could save time for new users. Feel free to close the issue if it makes no sense.
from lettusearch.
This is the expected behavior for the builder pattern. Look at how collections are handled by Lombok which is what I use here to generate these builders: https://www.baeldung.com/lombok-builder-singular
from lettusearch.
Related Issues (20)
- LettuSearch client to connect redis cluster HOT 1
- Task: Add support for RediSearch 2.0 HOT 1
- Connecting to a sentinel Redis 5.0.7 fails with `NOAUTH Authentication required` HOT 2
- Copied lettuce classes are problematic -nan ft.info HOT 1
- getInfo in RediSearchUtils does not work with RediSearch 2.0 HOT 8
- NLP when using sugget method HOT 1
- Transformation(Apply) for aggregation is not working. HOT 1
- ToList reducer is not returning results as expected. HOT 2
- Setting scoring function in search HOT 1
- Support for GEOFILTER HOT 1
- Empty AggregateResults if at least one ToList reducer is empty HOT 1
- There is no support for "SCORER" in search options. HOT 1
- SearchOptions without inKeys, inFields and returnFields results in Nullpointer exception. HOT 1
- SearchResult does not return score with withScores field set as true in SearchOptions HOT 1
- SearchOptions with noContent set as true returns array of empty objects. HOT 1
- AGGREGATE filter not respecting codec HOT 1
- SearchOptions with Scorer HOT 2
- Unable to add document to an index with specific language.
- FT.CREATE Unable to set alias for fields during index creation.
- add support for LOAD *
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 lettusearch.