MusicBrainz API/Search/UrlSearch: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(Initial version, based on the Java search server sources. Searches currently do not return results, so exact behaviour remains unclear.)
 
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
====Search Fields====
====Search Fields====
The URL index contains these fields you can search:
The [[URL]] index contains the following fields you can search
{| border="1" class="wikitable sortable"
{| border="1" class="wikitable sortable"
|-
|-
| '''field''' || '''Description'''
! Field !! Description
|-
|-
| relationtype || the type of relationship via which the URL is tied to another entity (?)
| relationtype || the type of a relationship the URL is in (e.g. "wikidata")
|-
|-
| targetid || the MBID of an entity the URL is related to (?)
| targetid || the MBID of an entity related to the URL
|-
|-
| targettype || the type of entity the URL is related to (?)
| targettype || an entity type related to the URL (e.g. "artist")
|-
|-
| uid || the MBID for the URL
| uid || the URL's MBID
|-
|-
| url || the URL itself
| url || the actual URL string
|-
|-
| url_ancestor || the actual URL string, but also returns any ancestor paths (e.g. "<nowiki>https://example.org/some/stuff</nowiki>" will match "<nowiki>https://example.org/some</nowiki>")
| urlstore || ?
|}
|-
| url_descendent || the actual URL string, but also returns any descendant paths (e.g. "<nowiki>https://example.org/some/stuff</nowiki>" will match "<nowiki>https://example.org/some/stuff/here</nowiki>")


|}
Url search terms with no fields specified search ?.

Latest revision as of 17:57, 27 January 2021

Search Fields

The URL index contains the following fields you can search

Field Description
relationtype the type of a relationship the URL is in (e.g. "wikidata")
targetid the MBID of an entity related to the URL
targettype an entity type related to the URL (e.g. "artist")
uid the URL's MBID
url the actual URL string
url_ancestor the actual URL string, but also returns any ancestor paths (e.g. "https://example.org/some/stuff" will match "https://example.org/some")
url_descendent the actual URL string, but also returns any descendant paths (e.g. "https://example.org/some/stuff" will match "https://example.org/some/stuff/here")