3

The /search/excerpt query enables searching answers for specific text, but searching for Markdown links returns results that don't seem to match the query at all. For instance, the following query value attempts to search answers with links that start with https://vuejs.org/v2 (by looking for the tail end of such a Markdown link):

"](https://vuejs.org/v2" is:answer

But it returns the following irrelevant posts (subset):

It's possible that my query is wrong (perhaps escape characters are needed). What query should I use to enable this search?

tony19
  • 133
  • 3

1 Answers1

3

The search methods work on the HTML version of the post, so searching for Markdown won't work. You can either use this parameter

url - a url which must be contained in a post, may include a wildcard.

leading to this API call, or mimic a site search (I would search for url:"vuejs.org/v2" is:answer) and that leads to this API call.

Glorfindel
  • 6,772
  • 3
  • 20
  • 46