Hi Simon, Thanks for this. Query time dramatically reduced to 27ms with this.
Many thanks. On Tue, Dec 13, 2011 at 4:20 PM, Simon Willnauer < simon.willna...@googlemail.com> wrote: > try *:* instead of *.* > > simon > > On Tue, Dec 13, 2011 at 5:03 PM, Kissue Kissue <kissue...@gmail.com> > wrote: > > Hi, > > > > I have come across this query in the admin interface: *.* > > Is this meant to match all documents in my index? > > > > Currently when i run query with q= *.*, numFound is 130310 but the > actuall > > number of documents in my index is 603308. > > Shen i then run the query with q = * then numFound is 603308 which is > the > > total number of documents in my index. > > > > So what is the difference between query with q = *.* and q = * ? > > > > I ran into this problem because i have a particular scenario where in my > > index where i have a field called categoryId which i am grouping on and > > another field called orgId which i then filter on. So i do grouping on > > categoryId but on all documents in the index matching the filter query > > field. I use q = *.* but this dosen't give me the true picture as > > highlighted above. So i use q = * and this works fine but takes about > > 2900ms to execute. Is this efficient? Is there a better way to do > something > > like this? > > > > Solr version = 3.5 > > > > Thanks. >