Skip to content

Commit

Permalink
Updating the identifier search query to utilized the collation index …
Browse files Browse the repository at this point in the history
…and drop the `BINARY` keyword

Updating the identifier search query to utilized the collation index and drop the `BINARY` keyword
- improves search speed

Reference: #159 #160
  • Loading branch information
rushirajnenuji committed Oct 27, 2021
1 parent e322199 commit 251c8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/search_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def formulateQuery(
v = "doi:" + v
if v == None:
v = value
filters.append(django.db.models.Q(identifier__startswith=v))
filters.append(django.db.models.Q(identifier__istartswith=v))
elif column == "identifierType":
if isinstance(value, basestring):
value = [value]
Expand Down

0 comments on commit 251c8d5

Please sign in to comment.