Skip to content

Commit

Permalink
fix sub field name usage if there are 3 or more fields..
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Guagenti <neu5ron@users.noreply.github.com>
  • Loading branch information
neu5ron committed Aug 25, 2020
1 parent 0d713e4 commit 76910ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/sigma/backends/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ def fieldNameMapping(self, fieldname, value, *agg_option):
keyword_subfield_name = '.%s'%keyword_subfield_name

# Set naming for analyzed fields
if analyzed_subfield_name != '' and not keyword_subfield_name.startswith('.'):
if analyzed_subfield_name != '':
analyzed_subfield_name = '.%s'%analyzed_subfield_name
else:
analyzed_subfield_name = ''

# force keyword on agg_option used in Elasticsearch DSL query key
if agg_option:
Expand Down

0 comments on commit 76910ea

Please sign in to comment.