Skip to content
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

Incorrect display of xs:date index keys #37

Open
JonathanRowell opened this issue Jan 5, 2017 · 2 comments
Open

Incorrect display of xs:date index keys #37

JonathanRowell opened this issue Jan 5, 2017 · 2 comments
Labels

Comments

@JonathanRowell
Copy link

In Browse Indexes the position, documents and frequency are all perfectly correct, but under the column "term" only a question mark is displayed.

collection-xconf.txt
kalendar-xml.txt

@joewiz
Copy link
Member

joewiz commented Mar 13, 2017

@JonathanRowell Thanks for posting this.

Just to help me/others remember, here was my initial assessment on exist-open:

My guess is that Lucene stores these date and dateTime values in a slightly different format - as some type of number, rather than the original XSD format from your data. When retrieving the index keys from the index, I didn't account for the mismatch in data. The relevant code is here:

https://github.com/wolfgangmm/monex/blob/master/modules/indexes.xqm#L169-L198

@joewiz
Copy link
Member

joewiz commented Mar 13, 2017

@wolfgangmm Do you think there's any hope of retrieving the original date or datetime values, or is the act of indexing them irretrievably altering the source data for the purposes of querying by lucene?

@line-o line-o added the bug label Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants