I often type answers:0 closed:no into the search bar.

Today, I typed answers:no closed:no

There are questions with 9 or more pre-existing answers in the search results.

My feature request is: Use some code to enable the boolean operators so that answers:no is interpreted the same way as answers:0?

Similar to the isanswered: function, where yes/true/1 returns only questions that have at least one positively-scored answer and no/false/0 returns only questions with no positively-scored answers.

You can have a function accept a string as input and return an int.

One can use an information retrieval tree (trie data structure) for the following strings:

  • "no"
  • "false"
  • "yes"
  • "true"

The behavior should be case-insensitive.

For any two strings w and w′ if w* is valid input and w(0) = w′(0) and w′ is a sub-sequence of w, then w′ is also valid input.

Input Output
"yes" 1
"Y" 1
"y" 1
"Ye" 1
"Ys" 1
"N" 0
"n" 0
"No" 0
"F" 0
"false" 0
"FLS" 0
  • How is "answers:no" currently interpreted?
    – Joachim
    Commented Sep 26, 2022 at 21:09
  • 3
    @Joachim It seems to be ignored completely. is:q answers:anyNonNumericValue returns the same number of results as is:q.
    – 41686d6564
    Commented Sep 27, 2022 at 0:08


You must log in to answer this question.

Browse other questions tagged .