Skip to content

Commit a0c2cda

Browse files
committed
fix: retain entire iris in dynamic field names
this makes them easily reversible for highlighting fields that match (previously used "sufficiently unique" iris like "://foo.example/blarg", which works well enough, except it'd take knowledge to get the original)
1 parent fbb7a45 commit a0c2cda

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

share/search/index_strategy/_trovesearch_util.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ def iris_synonyms(iris: typing.Iterable[str], rdfdoc: rdf.RdfGraph) -> set[str]:
107107

108108
def propertypath_as_keyword(path: Propertypath) -> str:
109109
assert not is_globpath(path)
110-
return json.dumps([
111-
get_sufficiently_unique_iri(_iri)
112-
for _iri in path
113-
])
110+
return json.dumps(path)
114111

115112

116113
def b64(value: str) -> str:

0 commit comments

Comments
 (0)