18

On Biblical Hermeneutics, we are trying to provide second opinions. It seems we can search for open questions with no answers:

answers:0 is:question closed:no

Or open questions with one or more answers:

answers:1 is:question closed:no

But we can't easily find the questions with exactly one (1) answer. Or at least, I haven't discovered a way to do that.

8
  • There is no way to do so.
    – nhahtdh
    Jan 7, 2013 at 15:07
  • 1
    @nhahtdh: Hmm... Sounds like I should turn this into a feature-request. Jan 7, 2013 at 15:08
  • That's a cool idea. (Providing a second opinion, I mean)
    – Pekka
    Jan 7, 2013 at 15:09
  • 1
    @Pekka: I was hoping there was a not operator: answers:1 !answers:2. Nope! (Or rather, "not". ;-) Also, it seems answers:X turns on is:question, so we can shorten the URL a bit that way. Jan 7, 2013 at 15:12
  • 1
    I think the only way to conjure up such a query would be through the data explorer. Jan 7, 2013 at 15:20
  • 2
    @JeffMercado: The data explorer doesn't cover beta sites. :(
    – Caleb
    Jan 7, 2013 at 15:28
  • @Caleb: Which is the unfortunate part. Jan 7, 2013 at 16:42
  • +1, this would be an amazing thing to be able to do. Could probably be userscript'd though...
    – Charles
    Jan 7, 2013 at 19:01

1 Answer 1

18

So I was reviewing the revisions to the search announcement when something stuck out in rev 14:

  • New range support, here are some examples:
    • answers:1..1 (exactly one answer)
    • answers:10..20 (10 to 20 answers)

It totally works. Here are all open PHP questions with exactly one answer, which has not been accepted. You can also use the range operator for score, and probably all of the other things that are numbers. For example, here are all 24,000 PHP questions with negative scores, down to -100.

All Hail Elasticsearch!

3

You must log in to answer this question.

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