Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 852179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:33:09+00:00 2026-05-15T07:33:09+00:00

Date ranges including BC dates is this possible? I would like to return facets

  • 0

Date ranges including BC dates is this possible?

I would like to return facets for all years between 11000 BCE (BC) and 9000 BCE (BC) using SOLR.

A sample query might be with date ranges converted to ISO 8601:

q=*:*&facet.date=myfield_earliestDate&facet.date.end=-92009-01-01T00:00:00&facet.date.gap=%2B1000YEAR&facet.date.other=all&facet=on&f.myfield_earliestDate.facet.date.start=-112009-01-01T00:00:00

However the returned results seem to be suggest that dates are in positive range, ie CE, not BCE…

see sample returned results

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">6</int>
<lst name="params">
<str name="f.vra.work.creation.earliestDate.facet.date.start">-112009-01-01T00:00:00Z</str>
<str name="facet">on</str>
<str name="q">*:*</str>
<str name="facet.date">vra.work.creation.earliestDate</str>
<str name="facet.date.gap">+1000YEAR</str>
<str name="facet.date.other">all</str>
<str name="facet.date.end">-92009-01-01T00:00:00Z</str>
</lst>
</lst>
<result name="response" numFound="9556" start="0">ommitted</result>
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields"/>
<lst name="facet_dates">
<lst name="vra.work.creation.earliestDate">
<int name="112010-01-01T00:00:00Z">0</int>
<int name="111010-01-01T00:00:00Z">0</int>
<int name="110010-01-01T00:00:00Z">0</int>
<int name="109010-01-01T00:00:00Z">0</int>
<int name="108010-01-01T00:00:00Z">0</int>
<int name="107010-01-01T00:00:00Z">0</int>
<int name="106010-01-01T00:00:00Z">0</int>
<int name="105010-01-01T00:00:00Z">0</int>
<int name="104010-01-01T00:00:00Z">0</int>
<int name="103010-01-01T00:00:00Z">0</int>
<int name="102010-01-01T00:00:00Z">0</int>
<int name="101010-01-01T00:00:00Z">0</int>
<int name="100010-01-01T00:00:00Z">5781</int>
<int name="99010-01-01T00:00:00Z">0</int>
<int name="98010-01-01T00:00:00Z">0</int>
<int name="97010-01-01T00:00:00Z">0</int>
<int name="96010-01-01T00:00:00Z">0</int>
<int name="95010-01-01T00:00:00Z">0</int>
<int name="94010-01-01T00:00:00Z">0</int>
<int name="93010-01-01T00:00:00Z">0</int>
<str name="gap">+1000YEAR</str>
<date name="end">92010-01-01T00:00:00Z</date>
<int name="before">224</int>
<int name="after">0</int>
<int name="between">5690</int>
</lst>
</lst>
</lst>
</response>

Any ideas why this is the case, can solr handle negative dates such as -112009-01-01T00:00:00Z?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:33:09+00:00Added an answer on May 15, 2026 at 7:33 am

    I don’t think this is fully supported. At least I don’t see any explicit references to BC dates in the source code or the tests.

    I even tried defining BC years using date math, e.g:

    facet.date.start: NOW-11000YEARS
    facet.date.end: NOW
    facet.date.gap: +1000YEAR
    

    and got some weird results:

    <int name="8991-06-07T20:30:45-.666Z">0</int>
    <int name="7991-06-07T20:30:45-.666Z">0</int>
    <int name="6991-06-07T20:30:45-.666Z">0</int>
    <int name="5991-06-07T20:30:45-.666Z">0</int>
    <int name="4991-06-07T20:30:45-.666Z">0</int>
    <int name="3991-06-07T20:30:45-.666Z">0</int>
    <int name="2991-06-07T20:30:45-.666Z">0</int>
    <int name="1991-06-07T20:30:45-.666Z">0</int>
    <int name="0991-06-07T20:30:45-.666Z">0</int>
    <int name="0010-06-07T20:30:45-.666Z">0</int>
    <int name="1010-06-07T20:30:45-.666Z">1435</int>
    

    Note the - after the seconds. Looks like a bug to me…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to search on date ranges using Lucene in Java? How do
I'm trying to write a query that will return data grouped by date ranges
I've been storing all dates in the database as UTC time for several years
I'm trying to return an array of counted values for consecutive date ranges (that
I need to find out how many days in between two date ranges. The
How would you go about producing reports by user selected date ranges in a
I need to find all the missing date ranges from the rest of the
I have a table with date ranges. I want to look for gaps between
I'm trying to list a few date ranges based off the last Tuesday which
I have 2 independent but contiguous date ranges. The first range is the start

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.