Skip to content

Commit

Permalink
more query parser mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Oct 26, 2024
1 parent 5e96da4 commit 9497513
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,21 @@ RDM_SEARCH = {
],
"query_parser_cls": QueryParser.factory(
mapping={
"content": "custom_fields.rs\:content_text",
"issn": "custom_fields.journal\:journal.issn",
# shortcuts
"title": "metadata.title",
"subject": "metadata.subjects.subject",
"contributor": "metadata.creators.person_or_org.name",
# taken from Zenodo
"doi": FieldValueMapper("pids.doi.identifier", word=word_doi),
"communities": FieldValueMapper("parent.communities.ids", word=word_communities),
# Persistent identifiers
"orcid": "metadata.creators.person_or_org.identifiers.identifier",
"ror": "metadata.creators.affiliations.id",
"communities": FieldValueMapper("parent.communities.ids", word=word_communities),
"issn": "custom_fields.journal\:journal.issn",
# Specific to InveniRDM Starter
"uuid": "metadata.identifiers.identifier",
"guid": "metadata.identifiers.identifier",
"content": "custom_fields.rs\:content_text",
},
tree_transformer_cls=SearchFieldTransformer,
),
Expand Down

0 comments on commit 9497513

Please sign in to comment.