Skip to content

Commit

Permalink
Don't expand on xref
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Apr 1, 2021
1 parent e59c95b commit c62fc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph/logic/xref.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _query_item(entity, entitysets=True):
log.debug("Candidate [%s]: %s", entity.schema.name, entity.caption)
entityset_ids = EntitySet.entity_entitysets(entity.id) if entitysets else []
query = {"query": query, "size": 50, "_source": ENTITY_SOURCE}
index = entities_read_index(schema=list(entity.schema.matchable_schemata))
index = entities_read_index(schema=entity.schema.matchable_schemata, expand=False)
result = es.search(index=index, body=query)
for result in result.get("hits").get("hits"):
result = unpack_result(result)
Expand Down

0 comments on commit c62fc8e

Please sign in to comment.