From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4C2601F406; Thu, 2 Nov 2023 21:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698960443; bh=p8QTz/2U8OTXghJNuIG2BzWDW4OhciafjMVo1mckElo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RSUBVHgOB9DvllFleOOMT/ZqZppdgj+tmgF1FWdqUA6X75Or52NCXTighSFjZVzSJ S3SnAjWgzGP4KbR/tTSiHowLM5ypExGlZz4DQUOn7zpMVHpWacwkes6Tiwc+I8nQLc s7WWpR3qfE5KswiOO+UJ/0h9O4RFlB4BUceFUyfU= Date: Thu, 2 Nov 2023 21:27:22 +0000 From: Eric Wong To: David Wei Cc: meta@public-inbox.org Subject: Re: lei - dfn filters for net/* catching drivers/net/* Message-ID: <20231102212722.M583684@dcvr> References: <0ac65bb7-9a27-4bdf-9f3f-7419a3e802b6@davidwei.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0ac65bb7-9a27-4bdf-9f3f-7419a3e802b6@davidwei.uk> List-Id: David Wei wrote: > Hi, > > I have a problem with lei dfn filters. Here is my query: > > lei q -o ~/Mail/overlay -I https://lore.kernel.org/all -t '(dfn:net/* OR dfn:drivers/net/ethernet/mellanox/mlx5/* OR dfn:drivers/net/ethernet/broadcom/bnxt/*) AND tc:netdev@vger.kernel.org AND rt:2.week.ago..' > > I'm seeing patches that touch drivers/net/* whereas I only want to match > net/*. > > I tried changing it to dfn:^net/* and dfn:b/net/* but neither is > working, Right, ^ is a regexp thing and I don't think Xapian supports anything like it. > I also read the Xapian docs: https://xapian.org/docs/queryparser.html > but didn't see anything more than * wildcards. > > Could you please advise on how I can limit my query to only net/*? I'm not an expert in Xapian's parser, either, but I think `AND NOT' is appropriate here. So something like: dfn:net/* AND NOT dfn:drivers/net/* Would be helpful to know if it works for you. (having NOT only is very expensive and not allowed via the web interface, but combining it a positive match should be fine)