New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format to use for indexing DateRangeField and proper model field type to use? #549
Comments
SolrNet doesn't support DateRangeFields at the moment. |
@mausch Thanks for the suggestion. Any plans for including this in the near future. Happy to create a branch with the suggested solution to speed things up if needed. Also I am guessing the format I should go with should be
Am I right? |
The TypeConverter solution I mentioned is good for easily extending SolrNet externally.
No idea, I've not used this Solr feature 🙂 |
I have been going through the docs to try and understand the right way to index DateRangeFields in Solr using SolrNet. So far I only found samples about how to query them. But none of them explain how to index them. Like what's the correct format I should send them in JSON.
I tried sending below JSON values for testing and they all are accepted with a ok response code and I can see those values when I query them as well.
So not sure what's correct. One thing to note is the stored values are exactly what I send, except, 2D arrays are flattened to 1D.
Also what's the model format I should use in C#. Is it a 1D array or a 2D array of DateTime objects or I am expected to create string values in a specific format.
Any help is much appreciated.
Thanks
The text was updated successfully, but these errors were encountered: