You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Leonardo Souza <le...@gmail.com> on 2012/01/09 20:32:08 UTC

querying all data

What's the difference from *:* to * when querying solr core?

Using * takes longer and do not match all documents. Is it that right?

thanks!

--
Leonardo S Souza

Re: querying all data

Posted by Leonardo Souza <le...@gmail.com>.
Thanks Emmanuel!

--
Leonardo S Souza




2012/1/9 Emmanuel Espina <es...@gmail.com>

> *:* is parsed as a MatchAllDocsQuery and * es a wilcard query on the
> default search field. The matchalldocuments does just that, and the *
> has to resolve the wilcard (that is building a automaton query in
> newer versions of Lucene). Also if a document has the default field
> empty that document will not match with the wilcard.
>
> Thanks
>
>
> 2012/1/9 Leonardo Souza <le...@gmail.com>:
> > What's the difference from *:* to * when querying solr core?
> >
> > Using * takes longer and do not match all documents. Is it that right?
> >
> > thanks!
> >
> > --
> > Leonardo S Souza
>

Re: querying all data

Posted by Emmanuel Espina <es...@gmail.com>.
*:* is parsed as a MatchAllDocsQuery and * es a wilcard query on the
default search field. The matchalldocuments does just that, and the *
has to resolve the wilcard (that is building a automaton query in
newer versions of Lucene). Also if a document has the default field
empty that document will not match with the wilcard.

Thanks


2012/1/9 Leonardo Souza <le...@gmail.com>:
> What's the difference from *:* to * when querying solr core?
>
> Using * takes longer and do not match all documents. Is it that right?
>
> thanks!
>
> --
> Leonardo S Souza