It seems a wanted behaviour (see code at the bottom), Still the behaviour seems wrong to me
the field is not set explicity but in the df, so getExplicitField returns null // called from parser protected Query getWildcardQuery(String field, String termStr) throws SyntaxError { checkNullField(field); // *:* -> MatchAllDocsQuery if ("*".equals(termStr)) { if ("*".equals(field) || getExplicitField() == null) { return newMatchAllDocsQuery(); } } 2016-07-28 9:40 GMT+02:00 Matteo Grolla <matteo.gro...@gmail.com>: > I noticed the behaviour in solr 4.10 and 5.4.1 > > 2016-07-28 9:36 GMT+02:00 Matteo Grolla <matteo.gro...@gmail.com>: > >> Hi, >> I'm surprised by lucene query parser translating this query >> >> http://localhost:8983/solr/collection1/select?df=id&q=* >> >> in >> >> <str name="parsedquery">MatchAllDocsQuery(*:*)</str> >> >> I was expecting it to execute: "id:*" >> is it a bug or a desired behaviour? If desired can you explain why? >> > >