Skip to content

Commit

Permalink
Allow to add custom extra fields on search queries
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jun 17, 2024
1 parent 4236106 commit b657c83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/query/search/query.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% if filters|length > 0 %}
,{% include '@WebgriffeSyliusElasticsearchPlugin/query/search/search/' ~ filterType ~ '.json.twig' %}
{% endif %}
{% endfor %}
{% endfor %}{% block extra_filter_fields %}{% endblock %}
],
"should": [
{
Expand Down Expand Up @@ -203,7 +203,7 @@
}
}
}
}
}{% block extra_should_fields %}{% endblock %}
]
}
}
2 changes: 1 addition & 1 deletion templates/query/taxon/query.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% if filters|length > 0 %}
,{% include '@WebgriffeSyliusElasticsearchPlugin/query/taxon/search/' ~ filterType ~ '.json.twig' %}
{% endif %}
{% endfor %}
{% endfor %}{% block extra_filter_fields %}{% endblock %}
]
}
}

0 comments on commit b657c83

Please sign in to comment.