[GitHub] [lucene] fcofdez commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
fcofdez commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345542724 Thanks all for the reviews! > This sounds good to me. The main issue I see with this is that our default SortFields fail if the field is indexed with multi-valued doc values. But

[GitHub] [lucene] jpountz commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
jpountz commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345543447 Absolutely, adding support for multivalued fields to default sort fields would be a big change too. -- This is an automated message from the Apache Git Service. To respond to the messa

[GitHub] [lucene] stefanvodita commented on pull request #11780: GH#11601: Add ability to compute reader states after refresh

2022-12-11 Thread GitBox
stefanvodita commented on PR #11780: URL: https://github.com/apache/lucene/pull/11780#issuecomment-1345547314 @mikemccand’s feedback made me shift focus from rebuilding ordinal maps on refresh to just making it convenient for the user to do so. `SsdvReaderStatesManager` shows how that might

[GitHub] [lucene] gsmiller commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
gsmiller commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345583546 > maybe we can tackle this in a follow up PR? +1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

[GitHub] [lucene] gsmiller opened a new issue, #12009: Find (and fix) places where we treat a long as a double without an explicit cast

2022-12-11 Thread GitBox
gsmiller opened a new issue, #12009: URL: https://github.com/apache/lucene/issues/12009 ### Description I fixed one instance of this I happened to run across (see GH#12008), which appears to have just been a copy/paste issue, but as @rmuir points out (in the same PR), we can use `err

[GitHub] [lucene] gsmiller commented on pull request #12008: Remove unnecessary NaN checks from LongRange#verifyAndEncode

2022-12-11 Thread GitBox
gsmiller commented on PR #12008: URL: https://github.com/apache/lucene/pull/12008#issuecomment-1345585253 @rmuir done: GH#12009. Thanks for the suggestion! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

[GitHub] [lucene] rmuir commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
rmuir commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345588464 There is already `SortedSetSortField` and `SortedNumericSortField` that do this. So I don't understand why it would be a big change? Maybe just add some sugar (e.g. `newSortField` or simil

[GitHub] [lucene] gsmiller merged pull request #12008: Remove unnecessary NaN checks from LongRange#verifyAndEncode

2022-12-11 Thread GitBox
gsmiller merged PR #12008: URL: https://github.com/apache/lucene/pull/12008 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.ap

[GitHub] [lucene] jpountz commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
jpountz commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345663912 Good point. I was thinking of making changes to `SortField` but adding factory methods to these Field classes feels like a better approach to me. -- This is an automated message from t

[GitHub] [lucene] rmuir commented on pull request #11998: Migrate away from per-segment-per-threadlocals on SegmentReader

2022-12-11 Thread GitBox
rmuir commented on PR #11998: URL: https://github.com/apache/lucene/pull/11998#issuecomment-1345665387 +1 to improve docs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To

[GitHub] [lucene] rmuir commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
rmuir commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345666166 OK, well maybe defer it if we have options. I haven't thought about the `SortField` approach, maybe it could be more natural that way. -- This is an automated message from the Apache Git

[GitHub] [lucene] jpountz commented on pull request #11997: Add IntField, LongField, FloatField and DoubleField

2022-12-11 Thread GitBox
jpountz commented on PR #11997: URL: https://github.com/apache/lucene/pull/11997#issuecomment-1345673357 I just found an issue with this PR which is that multi-valued floats and doubles are encoded with `Double#doubleToLongBits` while they should use `NumericUtil#doubleToSortableLong` to pr

[GitHub] [lucene] LuXugang commented on pull request #12003: Some minor code cleanup in IndexSortSortedNumericDocValuesRangeQuery

2022-12-11 Thread GitBox
LuXugang commented on PR #12003: URL: https://github.com/apache/lucene/pull/12003#issuecomment-1345785775 Thanks @gsmiller , a new syntactic sugar `record` to me and first time appeard in lucene code. -- This is an automated message from the Apache Git Service. To respond to the message,

[GitHub] [lucene] rmuir opened a new pull request, #12010: Enable LongDoubleConversion error-prone check

2022-12-11 Thread GitBox
rmuir opened a new pull request, #12010: URL: https://github.com/apache/lucene/pull/12010 See https://errorprone.info/bugpattern/LongDoubleConversion After seeing #12008 (Calling isNaN on long arguments), looked into this check and it finds a few other things. In general, we do