The wiki page on the technique cleans up some small errors from Hoss’s
presentation:
http://wiki.apache.org/solr/SpatialForTimeDurations

But please try Solr trunk which has first-class support for date durations:
https://issues.apache.org/jira/browse/SOLR-6103
Soonish I’ll back-port to 4x.

~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley


On Wed, Jul 30, 2014 at 7:29 PM, Jost Baron <jost.ba...@gmx.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Ryan,
>
> On 07/31/2014 01:26 AM, Ryan Cutter wrote:
> > Is there a way to index time or date ranges?  That is, assume 2
> > docs:
> >
> > #1: date = 2014-01-01 #2: date = 2014-02-01 through 2014-05-01
> >
> > Would there be a way to index #2's date as a single field and have
> > all the search options you usually get with time/date?
> >
> > One strategy could be to index the start and stop values
> > separately.  Just wondering if there's a fancier option out there.
>
> Take a look at this:
>
> https://people.apache.org/~hossman/spatial-for-non-spatial-meetup-20130117/
>
> Regards,
> Jost
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlPZf94ACgkQNme/yCvmvTIp9ACfeuKfCRFuGY/Y2aLH6BxtkS+c
> kNMAoIcWFuJnnwV8ouajvTUXojR6HiTo
> =EKfo
> -----END PGP SIGNATURE-----
>

Reply via email to