Skip to content

Commit

Permalink
facets in clients and prefixes changed to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sarala committed Apr 24, 2020
1 parent c5e67b7 commit 4f35562
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ def self.query_aggregations
{
years: { date_histogram: { field: 'created', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 },
aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } },
cumulative_years: { terms: { field: 'cumulative_years', size: 15, min_doc_count: 1, order: { _count: "asc" } } },
providers: { terms: { field: 'provider_id', size: 15, min_doc_count: 1 } },
software: { terms: { field: 'software.keyword', size: 15, min_doc_count: 1 } },
client_types: { terms: { field: 'client_type', size: 15, min_doc_count: 1 } },
repository_types: { terms: { field: 'repository_type', size: 15, min_doc_count: 1 } },
certificates: { terms: { field: 'certificate', size: 15, min_doc_count: 1 } }
cumulative_years: { terms: { field: 'cumulative_years', size: 10, min_doc_count: 1, order: { _count: "asc" } } },
providers: { terms: { field: 'provider_id', size: 10, min_doc_count: 1 } },
software: { terms: { field: 'software.keyword', size: 10, min_doc_count: 1 } },
client_types: { terms: { field: 'client_type', size: 10, min_doc_count: 1 } },
repository_types: { terms: { field: 'repository_type', size: 10, min_doc_count: 1 } },
certificates: { terms: { field: 'certificate', size: 10, min_doc_count: 1 } }
}
end

Expand Down
4 changes: 2 additions & 2 deletions app/models/prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def self.query_aggregations
states: { terms: { field: 'state', size: 3, min_doc_count: 1 } },
years: { date_histogram: { field: 'created_at', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 },
aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } },
providers: { terms: { field: 'provider_ids', size: 15, min_doc_count: 1 } },
clients: { terms: { field: 'client_ids', size: 15, min_doc_count: 1 } },
providers: { terms: { field: 'provider_ids', size: 10, min_doc_count: 1 } },
clients: { terms: { field: 'client_ids', size: 10, min_doc_count: 1 } },
}
end

Expand Down

0 comments on commit 4f35562

Please sign in to comment.