Solr fq

22 views
Skip to first unread message

Youn Noh

unread,
Oct 4, 2024, 11:12:23 AM10/4/24
to Dataverse Users Community
Hello,

Is there a list somewhere of which fields can be used with fq in Solr queries using the Search API? I am trying to filter a query to datasets (or dataset metadata) with more than one version.

Thanks,
Youn

Philip Durbin

unread,
Oct 4, 2024, 12:36:13 PM10/4/24
to dataverse...@googlegroups.com
Hi Youn,

I would suggest adding show_facets=true to your query like this:


You'll find a "facets" array with facets like publicationDate and within it, values like 2024, 2023, etc. In the UI, you'd click on "2024" for example. You can pass these to the API like this:


show_facets is documented in the API Guide: https://guides.dataverse.org/en/6.4/api/search.html

I hope this helps!

Phil


--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/1de053f8-b02a-4136-adb0-b80ee8e7526cn%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages