Comments (3)
you may be looking for a "convenient" way to automatically embed a filter in a query clause, but for anybody else who is just wondering how to do this explicitly it is explained here:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html#_filtering_without_a_query
from elasticsearch-action-updatebyquery.
@roscue there's an example on how to do it, I just posted at #15 (comment)
from elasticsearch-action-updatebyquery.
natb1 and consulthys are right, you can wrap a filter as a query and you're done.
In ElasticSearch Search API, filter
is now deprecated and renamed to post_filter
, to better reflect how it is used.
It only filters the documents that are returned, not the documents that are considered a match.
Although you can see it affects the number of total hits (because it counts the returned hits), it won't affect the faceting/aggregations.
Hence if I add such a feature, I would call it post_filter
, and it would only affect the returned documents, not the updated ones.
I doubt this is what you need, so I take the liberty to close this issue.
For those interested in such post_filter
functionality, please open a dedicated issue.
from elasticsearch-action-updatebyquery.
Related Issues (20)
- UpdateByQueryRequestBuilder.request() doesn't build source HOT 1
- Does someone know how to install the "updatebyquery" plugin in local? for the server cannot connect to Internert HOT 2
- Elasticsearch 1.5.1 HOT 1
- Question: How to read a script from a file? HOT 2
- Not updating any documents HOT 2
- Update object HOT 4
- Allow to put some limit on number of updated items HOT 1
- elasticsearch-action-updatebyquery updated 0 doc HOT 6
- Problem Elasticsearch 1.6 HOT 10
- No support for retry_on_conflict
- It's highly required to support min_score and ctx._score HOT 5
- Hangs if not existed index is queryied HOT 1
- The number of updated documents is not equal the total of documents that match query HOT 2
- Problem related usage HOT 3
- Not working on ES 2.0 HOT 9
- UpdateByQueryResponse throwing timeout HOT 2
- No such method error on ES 1.7.0
- Elasticsearch [1.5.2] update_by_query plugin doesn't work as expected HOT 1
- Help!does jdbc-importer support ES template?
- not working with 1.0.7 version of Elasticsearch
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 elasticsearch-action-updatebyquery.