Skip to content

Commit

Permalink
Account for fields that field stats knows are searchable even if thei…
Browse files Browse the repository at this point in the history
…r mappings don't include index:true
  • Loading branch information
Bargs committed Feb 9, 2017
1 parent e1d3dae commit 4e39c31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ app.directive('discoverField', function ($compile) {
' Values such as foo-bar will be broken into foo and bar.');
}

if (!field.indexed) {
if (!field.indexed && !field.searchable) {
warnings.push('This field is not indexed and might not be usable in visualizations.');
}
}
Expand Down

0 comments on commit 4e39c31

Please sign in to comment.