LuceneQuery::hasTrivialMainQuery method

The method checks if the query has a "match all" main query