Skip to content

Instantly share code, notes, and snippets.

https://innovationgraph.github.com/global-metrics/programming-languages
https://github.blog/2022-09-14-8-things-you-didnt-know-you-could-do-with-github-copilot/
@keety
keety / http_streaming.md
Created January 23, 2020 22:26 — forked from CMCDragonkai/http_streaming.md
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

put test
put test/test/_mapping
{
"properties": {
"name": {
"type": "string",
"index_options": "offsets"
}
}
}
@keety
keety / gist:6f9e843df2eadfcfb354
Created October 23, 2015 20:25
QueryOverLoad
put user
put user/user/_mappings
{
"properties": {
"id": {
"type": "integer"
},
"isDirector": {
"type": "object",
put stack_test
put stack_test/stack_test/_mapping
{
"properties" : {
"classification": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
#register template note there is no "query" inside template
PUT <server::port>/_search/template/<template_name>
{
"template": {
"bool": {
"should": [
{
"multi_match": {
"query": "{{query_string}}",