Coder Social home page Coder Social logo

elasticsearch-grouping-patches's People

Contributors

spinscale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elasticsearch-grouping-patches's Issues

Search API 'fields' option not working (whole _source is returned).

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.