Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyfan109 committed Oct 10, 2024
1 parent 6ec1355 commit d2b9e4f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/dug/core/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,16 +728,6 @@ def _get_var_query(self, concept, fuzziness, prefix_length, query):
def get_simple_search_query(self, query):
"""Returns ES query that allows to use basic operators like AND, OR, NOT...
More info here https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html."""
search_query = {
"query": {
"simple_query_string": {
"query": query,
"fields": ["name", "description", "search_terms"],
"default_operator": "and",
"flags": "OR|AND|NOT|PHRASE|PREFIX"
},
}
}
simple_query_string_search = {
"query": query,
"default_operator": "and",
Expand Down

0 comments on commit d2b9e4f

Please sign in to comment.