Skip to content

Commit

Permalink
code review changes.
Browse files Browse the repository at this point in the history
Signed-off-by: talktovikas <[email protected]>
  • Loading branch information
talktovikas committed Dec 12, 2024
1 parent e624bf0 commit 42bdf59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
{timeout, <%= @solr_timeout %>},
{init_count, <%= @solr_http_init_count %>},
{max_count, <%= @solr_http_max_count %>},
{track_total_hits,true},
{track_total_hits, <%= @solr_track_total_hits %>},
{cull_interval, <%= @solr_http_cull_interval %>},
{max_age, <%= @solr_http_max_age %>},
{max_connection_duration, <%= @solr_http_max_connection_duration %>},
Expand Down
2 changes: 1 addition & 1 deletion src/oc_erchef/apps/chef_index/src/chef_index_query.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ from_params(Provider, ObjType, QueryString, Start, Rows) ->
search_provider = Provider,
start = decode({nonneg_int, "start"}, Start, 0),
rows = decode({nonneg_int, "rows"}, Rows, 1000),
track_total_hits = envy:get(chef_index, track_total_hits, true, boolean),
track_total_hits = envy:get(chef_index, track_total_hits, false, boolean),
sort = "X_CHEF_id_CHEF_X asc",
index = index_type(ObjType)}.

Expand Down
4 changes: 2 additions & 2 deletions src/oc_erchef/apps/chef_index/test/chef_index_query_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ query_from_params_test_() ->
sort = "X_CHEF_id_CHEF_X asc",
start = 2,
rows = 5,
track_total_hits=true,
track_total_hits=false,
index = node},
?assertEqual(Expect, Query)
end},
Expand All @@ -58,7 +58,7 @@ query_from_params_test_() ->
sort = "X_CHEF_id_CHEF_X asc",
start = 0,
rows = 1000,
track_total_hits=true,
track_total_hits=false,
index = role},
?assertEqual(Expect, Query)
end},
Expand Down

0 comments on commit 42bdf59

Please sign in to comment.