Comments (7)
Thanks for reporting this. You learn a new thing every day. :-)
Yes, maybe I should change that. Give me some time to think about it.
from elastic.
Can you test if the issue-51 branch solves the issue for you? If you can, it would be very helpful if you can provide a test for it...
from elastic.
FYI: Marshaling results back into JSON is not tested in Elastic. There might be issues with fields not being attributed with omitempty
etc. You've been warned :-)
from elastic.
Thank you so much for this, I was experiencing the same issue today! go get -u
et voilà! 👍
from elastic.
@sevein My pleasure. May I ask what's your use case for serializing the results back into JSON?
from elastic.
Of course, @olivere! I was basically doing a bad thing :) i.e. embedding the serialized version of elastic.Aggregations
into my HTTP API response. But I've decided to start building my custom response types with its own json tags after seeing your warning in c3351fa. Thanks again!
from elastic.
Thanks! @olivere, sorry was really caught up the last couple weeks... couldn't help
from elastic.
Related Issues (20)
- I want to get the result body. Is there any way? HOT 1
- Generating nested histogram query HOT 1
- The es daterange query data has no expected effect
- how to get root cause with 400 error HOT 1
- ()elastic.Each Swallowed the error
- Unresolved reference 'Aggregation, Size, TrackTotalHits, Pretty, Sort, and Do'
- Append support max_concurrent_shard_requests in msearch
- Support for Version=0 in bulk_delete_request.go HOT 2
- The collapse query does not support multiple inner_hit conditions HOT 1
- elastic v6 not work correctly with http proxy
- elastic: Error 400 (Bad Request): only write ops with an op_type of create are allowed in data streams [type=illegal_argument_exception]
- Can't use REST compatibility headers
- The context field in the structure SearchSuggestionOption(in search.go) should change to be highlight
- How to search data with a 'knn query'?
- the return value of add document
- Issue with Elasticsearch Alias Removal and Addition
- cannot unmarshal object into Go struct field ProductHits.hits.total of type int
- EasyJson compatibility issue
- search without retry when es return io.EOF
- How can I use Offset in date_histogram of composite aggregation?
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 elastic.