You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.
I am using Solandra to search for events after a certain date. To do this I index the millis since epoch (as slong data type) and use a range search like so: start:[1348992000000 TO *]
A lot of the time this works fine but sometimes there is weird buggy behavior whereby after date X, nothing is brought back but after date Y (where X < Y < date) it is returned.
After a LOT of playing around I have managed to come up with something I can consistently reproduce (on my side at least). Here are the steps to recreate:
Create the following schema (let me know if you want the whole xml file and I will post):
Removing the commit() seems to fix this particular example however I have witnessed it when commits are omitted at other times. As far as I understand from comments Jake Luciani has written, commit() should have no effect so am puzzled as to why this change consistently affects results.
It only seems to happen when I have more than one event indexed (but cannot be sure as the problem seems to crop up at the most random times).
Why am I not using data type date? I did originally but thought that particular data type was causing this issue so switched. Have tried data types date, long, slong, string and text. All exhibit same sporadic missing results behavior. Please also note that switching to a different data type may fix a particular example but will be evident in others.
Have tried with Solandra code directly from github as ready-to-go Solandra as well as embedding within latest Cassandra distribution.
This is driving me crazy so ANY help or suggestions would be greatly appreciated!
Thanks,
Jay
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using Solandra to search for events after a certain date. To do this I index the millis since epoch (as slong data type) and use a range search like so: start:[1348992000000 TO *]
A lot of the time this works fine but sometimes there is weird buggy behavior whereby after date X, nothing is brought back but after date Y (where X < Y < date) it is returned.
After a LOT of playing around I have managed to come up with something I can consistently reproduce (on my side at least). Here are the steps to recreate:
q=start:[1348992000000 TO *]
q=start:[1349049600177 TO *]
Things to note:
Removing the commit() seems to fix this particular example however I have witnessed it when commits are omitted at other times. As far as I understand from comments Jake Luciani has written, commit() should have no effect so am puzzled as to why this change consistently affects results.
It only seems to happen when I have more than one event indexed (but cannot be sure as the problem seems to crop up at the most random times).
Why am I not using data type date? I did originally but thought that particular data type was causing this issue so switched. Have tried data types date, long, slong, string and text. All exhibit same sporadic missing results behavior. Please also note that switching to a different data type may fix a particular example but will be evident in others.
Have tried with Solandra code directly from github as ready-to-go Solandra as well as embedding within latest Cassandra distribution.
This is driving me crazy so ANY help or suggestions would be greatly appreciated!
Thanks,
Jay
The text was updated successfully, but these errors were encountered: