Skip to content

Commit

Permalink
fix(trovesearch_denorm): whole-iris field names
Browse files Browse the repository at this point in the history
retain the entire iri for path-based 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)

(bug introduced in 7b68b96 )
  • Loading branch information
aaxelb committed Nov 27, 2024
1 parent fbb7a45 commit 9b23fad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions share/search/index_strategy/_trovesearch_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ def iris_synonyms(iris: typing.Iterable[str], rdfdoc: rdf.RdfGraph) -> set[str]:

def propertypath_as_keyword(path: Propertypath) -> str:
assert not is_globpath(path)
return json.dumps([
get_sufficiently_unique_iri(_iri)
for _iri in path
])
return json.dumps(path)


def b64(value: str) -> str:
Expand Down

0 comments on commit 9b23fad

Please sign in to comment.