For example, I want to search php tag questions linked with https://stackoverflow.com/questions/linked/588004?lq=1, how can I filter them?
1 Answer
Unfortunately you can't with the on-site search.
However, you can just use a SEDE query.
select concat('site://q/', q.id, '|', q.title) as [Linked post]
from postlinks pl
inner join posts q on q.id = pl.postid
inner join posttags pt on pt.postid = q.id
inner join tags t on t.id = pt.tagid
where relatedpostid = ##postid:int?588004##
and t.tagname = ##tagname:string?php##
and linktypeid = 1 -- linked (not duplicate, use 3 for that)
This query uses the PostLinks table that represent the linked questions page you referred to. From there we can join on the Posts table (for the title) as well as on posttags and tags to filter on a specific tag.
See Database schema documentation for the public data dump and SEDE for more background on what these tables and their values mean.
Keep in mind SEDE is only updated once a week, on Sunday around 03:00 UTC. If you're new to SEDE or SQL, give the tutorial a try and/or share feedback in chat.