Comments (9)
Function score now has a different structure and don't use script_score
if I don't miss anything.
Removing params
might not solve the issue.
from elasticsearchdsl.
My bad, actually params
seems are still there in 5.x
: https://www.elastic.co/guide/en/elasticsearch/reference/5.1/query-dsl-function-score-query.html#function-script-score
from elasticsearchdsl.
For now it's just throwing exception and kills the script (even if you don't use this feature). With this fix it's not throwing exception. But I know, for fixing this issue entirely, it's required to make futher changes.
from elasticsearchdsl.
Let's take a look if there is possible to make some adjustments by keeping BC for 2.x Elasticsearch. If the params
causes exception maybe it can be filtered out if this is an empty array?
from elasticsearchdsl.
In my opinion we should BC. Even elasticsearch/elasticsearch
recommends using v5 library with v5 ES. To be honest, this library is not working good with complicated queries accross different ES versions. If you don't believe me, just check it out by yourself.
from elasticsearchdsl.
elasticsearch/elasticsearch
v5 dropped 2.x support for a number of other reasons. Since this library just builds a query, it was ok.
This is the first example it causes search body differences. And if there is no solution, for sure I will release a new major version by dropping 2.x support as well.
from elasticsearchdsl.
Related to #177
from elasticsearchdsl.
Fixed in #186
from elasticsearchdsl.
There is also a test PR (#189) which will check if function score is working correctly on 2.x and 5.x elasticsearch.
from elasticsearchdsl.
Related Issues (20)
- doc page link 404 HOT 1
- Implement GeoDistanceSort
- How do you do this sort HOT 2
- Is this project alive? HOT 8
- HTTP 500 Internal Server Error Class \Document\PostDoc does not exist
- Support Symfony 4.4 HOT 1
- How to build this query ?
- It is not possible to set field at function_score random_score
- DateHistogramAggregation does not support TimeZone HOT 2
- PHP 8 support HOT 7
- DateHistogramAggregation does not support 'timezone' ?
- Missing weight parameter in function score query for certain functions
- Same configuration returned different hits HOT 1
- php 8 support HOT 1
- Add new tag v6.2.1 with renaming of MaxAggregation.php class
- Elasticsearch 8.0 removed support for `interval` in `date_histogram` aggregation types HOT 2
- Lack of symfony/serializer 6 support HOT 1
- php 8.1 support HOT 3
- Elasticsearch 8 support HOT 1
- Compatibility issue with Laravel 10 and symfony/mime in ongr/elasticsearch-dsl v7.2.2 HOT 1
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 elasticsearchdsl.