9

I'm looking for answers on SO that contain "type": "docker".

How can I use/escape double quotes in the on-site search? I tried `"type` and ``"type` but didn't work.

So example with the above query it should match at this post: python - Use debugger in VS Code with docker - Stack Overflow

Is it possible?

3
  • 2
    SymbolHound is gone. Dec 13, 2022 at 7:26
  • 5
    No. On-site search is trash. Trying to get it to do what you want, unless it involves special search operators not operating on text (I.e. score, deleted, [tag], ...), is an exercise in futility. If it doesn't work with some search text, it generally can't be done. You can use SEDE or possibly a real search engine, but not on-site search. Dec 13, 2022 at 8:13
  • If only real search engines could be convinced to actually listen to you and take you extremely literally if you ask nicely enough. Dec 14, 2022 at 23:03

1 Answer 1

3

If you have a reasonable way of limiting the number of Posts you want to search for that term, you can use SEDE.

For example with this query

select p.id as [Post Link] 
from posts p
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid and t.tagname = ##tag:string?docker##
where body like concat('%', ##search:string?"type": "docker"##, '%')

but don't be disappointed if the query times out. Full table scans on the Posts table take a lot of resources and a query needs to finish within 2 minutes.

Keep in mind SEDE is updated once a week on Sunday.
Use the fine SEDE Tutorial written by the admirable Monica Cellio.
Say "Hi" in SEDE chat.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .