Hi Yonik,

I'm a bit confused now. In your recent Mastering Solr webinar (great stuff,
btw, thank you!), the slides imply using tdate fields with a precisionStep
of 8 for faster range queries:

   - Use tint, tfloat, tlong, tdouble, tdate for faster range queries
      - <fieldTypename="tint" class="solr.TrieIntField" precisionStep="8"
      omitNorms="true" positionIncrementGap="0"/>
      - Date faceting also uses range queries

I was thinking from this, the higher the value, the bigger the index, but
for faster range query speed.

Below you mention a lower value is better for faster range queries (at the
cost of a bit bigger index).
Can you clarify, for fast 'wide' date range queries (for date faceting and
otherwise), what is the best precisionStep value to use for tdate?

Thanks!
Peter




On Sun, Mar 14, 2010 at 6:03 AM, Yonik Seeley <yo...@lucidimagination.com>wrote:

> On Wed, Mar 3, 2010 at 7:51 AM, Marc Sturlese <marc.sturl...@gmail.com>
> wrote:
> > I am testing date facets in trunk with huge index. Aparently, as the
> default
> > solrconfig.xml shows, the fastest way to run dace facets queries is index
> > the field with this data type:
> >
> >    <!-- A Trie based date field for faster date range queries and date
> > faceting. -->
> >    <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"
> > precisionStep="6" positionIncrementGap="0"/>
> >
> > I am wandering... setting precisionStep="8" to the TriedateField would
> > improve even more the speed of the queries??
>
> The lower the precisionStep, the more tokens are indexed per value,
> and the faster that "wide" range queries get (those that cover many
> terms).  Lower also means bigger index  though.
>
> -Yonik
> http://www.lucidimagination.com
>

Reply via email to