This is going to depend on the queryparser that you are using and the field type of `field`. I agree both should be handled as efficiently.
Le jeu. 20 juil. 2017 à 22:56, Hendrik Haddorp <hendrik.hadd...@gmx.net> a écrit : > Hi, > > I had already asked this on the Solr mailing list but would like to > confirm this here: > > If I want to query all documents that have a field or do not have a > field does it really perform better to use "field:[* TO *]" instead of > "field:*" ? I would have expected that Lucene handles both queries > internally the same and is not really expanding the wildcard to all > possible tokens. > > regards, > Hendrik > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >