I've run into a strange issue with my Solr installation. I'm running queries that are sorting by a DateField field but from time to time, I'm seeing individual records very much out of order. What's more, they appear on multiple pages of my result set. Let me give an example. Starting with a basic query, I sort on the date that the document was added to the index and see these rows on the first page (I'm just showing the date field here):
<doc><date name="indexed_date">2009-09-23T19:24:47.419Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:25:03.229Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:25:03.400Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:25:19.951</date></doc> <doc><date name="indexed_date">2009-09-23T20:10:07.919Z</date></doc> Note how the last document's date jumps a bit. Not necessarily a problem, but the next page looks this: <doc><date name="indexed_date">2009-09-23T19:26:16.022Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:26:32.547Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:27:45.470Z</date></doc> <doc><date name="indexed_date">2009-09-23T19:27:45.592Z</date></doc> <doc><date name="indexed_date">2009-09-23T20:10:07.919Z</date></doc> So, not only is the date sorting wrong, but the exact same document shows up on the next page, also still out of date order. I've seen the same document show up in 4-5 pages in some cases. It's always the last record on the page, too. If I change the page size, the problem seems to disappear for a while, but then starts up again later. Also, running the same query/queries later on doesn't show the same behavior. Could it be some sort of page boundary issue with the cache? Has anyone else run into a problem like this? I'm using the Sept 22 nightly build. - Charlie