lusini / elasticsearch-grouping-patches Goto Github PK
View Code? Open in Web Editor NEWThis repository yields patches for elasticsearch with grouping support
This repository yields patches for elasticsearch with grouping support
hi,
Thanks for your work on this - much better to be able to apply a patch to the current master version, rather than work with a fork.
However, there is an issue with the Search API 'fields' option after applying this patch - if a specific field is specified, the entire _source in returned (ie the fields option is ignored). If the fields array is provided in the query, but left empty, then the entire _source if correctly omitted - but there's no way to only have specified fields returned. This happens with and without a groupField specified in the query, so something seems to have broken ES's normal behaviour when it comes to returning specific fields from the _source document.
elasticsearch-with-local-grouping, currently built with elasticsearch 0.20.beta, has the correct behaviour.
The 'fields' behaviour is included in the patch, so I'm assuming it was supported in version 0.19.4 (I've also successfully applied the path to 0.19.8 - but it has the same issues). I've not tried this patch against 0.20.beta yet.
I'll continue to look into this - though my java knowledge is pretty minimal!
http://www.elasticsearch.org/guide/reference/api/search/fields.html
Jamie.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.