Skip to content

Commit

Permalink
performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Nov 18, 2024
1 parent d3cc451 commit 18f09b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jamesql/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def search(self, query: dict) -> List[str]:
term_queries = list(set(term_queries))
fields = [field for sublist in fields for field in sublist]

gsis = {field: self.gsis[field]["gsi"] for field in fields}
gsis = {field: self.gsis[field]["gsi"] for field in fields if self.gsis.get(field)}

for doc in results:
doc["_score"] = 0
Expand Down

0 comments on commit 18f09b3

Please sign in to comment.