From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Mon, 27 Jul 2009 08:46:21 -0700 Subject: [sup-talk] [PATCH 0/18] Xapian-based index In-Reply-To: <1248497184-sup-939@pion.club.cc.cmu.edu> References: <1245531017-9907-1-git-send-email-rlane@club.cc.cmu.edu> <1245854803-sup-4481@entry> <1245864733-sup-1216@entry> <1246022094-sup-3336@entry> <1247873980-sup-8574@wrasse> <20090723102325.GA4291@chistera.yi.org> <1248497184-sup-939@pion.club.cc.cmu.edu> Message-ID: <1248709366-sup-5856@entry> Reformatted excerpts from Rich Lane's message of 2009-07-24: > > Plus, nor '!label:inbox' or '-label:inbox' work for me. From an > > inspection of the code, it doesn't look to me as random negated > > labels are being parsed. > > > > Any hints? > > You need to specify a non-negated term in the query. "type:mail > -label:inbox" should work. This is a typical restriction for inverted index-based search engines. You need to have at least one positive term or the computation is too expensive (it would have to iterate over every term ever seen.) It's true of Ferret, Google, etc. -- William