Skip to content

Instantly share code, notes, and snippets.

View milad621's full-sized avatar

Milad Gholami milad621

View GitHub Profile
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / ESQuery.json
Created February 6, 2017 19:12
Run the same 4000 line query but without the 3 category_attributes_* aggregation clauses and record the took time
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / ESQuery.json
Created February 6, 2017 19:19
Run the same 4000 line query without any aggregation clauses and record the took time
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / ESQuery.json
Created February 6, 2017 19:21
Run the same 4000 line query without any aggregation and without any sort clauses and record the took time
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / ESQuery.json
Created February 6, 2017 19:24
Run the same 4000 line query with all aggregations in place but without any sort clauses and record the took time
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / ESQuery.json
Created February 9, 2017 21:13
Same filter for all aggregations
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {
@milad621
milad621 / filter.json
Created February 9, 2017 21:15
direct intent band filter
{
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"bool": {
"must": [
{
{
"from": 0,
"size": 600,
"timeout": 1000,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"dis_max": {