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

Add handling for numeric fields #32

Open
javasoze opened this issue Mar 3, 2014 · 3 comments
Open

Add handling for numeric fields #32

javasoze opened this issue Mar 3, 2014 · 3 comments
Assignees

Comments

@javasoze
Copy link
Owner

javasoze commented Mar 3, 2014

add support for parsing and printing when dealing with numeric fields

@javasoze javasoze added this to the release 0.0.5 milestone Mar 3, 2014
@javasoze javasoze self-assigned this Mar 3, 2014
@javasoze javasoze removed this from the release 0.0.5 milestone Mar 14, 2014
@anacronw
Copy link

Are all of lucene's dates stored as binaries? I'm trying to retrieve the value of my date field given the printed utf8 string

Awesome tool by the way :)

@anacronw
Copy link

Ah, I compared with Luke to get a solution. I was able to read the long value of my lucene index value via:

NumericUtils.prefixCodedToLong( text )

where text is the BytesRef of the value. It seems its using this variable encoding technique - which explains why it took me so long to figure out!

@Damiox
Copy link

Damiox commented Jan 20, 2019

Is this issue also going to add support for searching numeric fields through the search command?
I've noticed that for QueryParser to work correctly w/ numeric fields you need to configure the field in QueryParser beforehand (https://github.com/apache/lucene-solr/blob/master/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestPointQueryParser.java#L36-L38)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants