Additionally, I should have mentioned that you can instead do: fq=field_3:[* TO *], which uses the filtercache.
The method presented by Chris will probably outperform the above method but only on the first request, from then on the filtercache takes over. >From a performance standpoint it's probably not worth going the 'default value for null-approach' imho. It IS useful however if you want to be able to query on docs with a null-value (instead of excluding them) 2010/6/4 bluestar <sea...@butterflycluster.net> > nice one! thanks. > > > > >> i could be wrong but it seems this > >> way has a performance hit? > >> > >> or i am missing something? > > > > Did you read Chris's message in http://search-lucene.com/m/1o5mEk8DjX1/ > > He proposes alternative (more efficient) way other than [* TO *] > > > > > > > > > > >