Hi all,

I'll answer my own question, in the end ChatGPT gabe me the decisive hint:

One can use authority-IDs in a query by appending '_authority' to the name 
of the index like 'query=author_authority:123-456-789-123'

This feature is actually documented pretty well but apparently I did not 
use the correct search terms in google when trying to find it: 
https://wiki.lyrasis.org/display/DSArchive/Authority+Control+of+Metadata+Values#AuthorityControlofMetadataValues-Searching

Jarmo

On Wednesday, December 11, 2024 at 11:10:43 AM UTC+1 
[email protected] wrote:

> Hi all,
>
> I need to construct a complex query for the Rest-API using authority 
> values for the author field. 
> I know how to use authority as a filter (like f.author=1234567,authority) 
> but is it also possible to use authority values in the query-part of a 
> search request and if so how?
>
> (What I am trying to achieve is this: I need all publications where a 
> given person, identified by his authority-value, is either an author (any 
> publication type) or an editor (all publication types excluding 
> book-chapters).
>
> So something similar to q=(dc.contributor.author :1234567,authority) OR 
> (dc.contributor.editor:1234567,authority NOT dc.type:BookPart)
>
> I am doing this on DSpace CRIS 2023.02 
>
> Any help or pointer to relevant documentation would be highly appreciated.
>
> Jarmo
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/73c0fc7f-8cb0-48a3-b3eb-f864662a0ba7n%40googlegroups.com.

Reply via email to