Commit 29ddb24
* Lucene.Net.Codecs.SimpleText.SimpleTextTermVectorsReader.SimpleTVTermsEnum: Use GetViewAfter() to match the upstream code.
* Lucene.Net.Codecs.Compressing.CompressingTermVectorsWriter: Use SortedSet<T>.TryGetLast() rather than Max, since the latter is obsolete. Fixed implementation to throw InvalidOperationException in the same case that Java would throw a NoSuchElementException (when the collection is empty).
* Lucene.Net.Grouping.AbstractFirstPassGroupingCollector: Removed LINQ calls and replaced them with navigable collection APIs, which will reduce allocations.
* Lucene.Net.Grouping.AbstractGrouFacetCollector: Converted calls to the obsolete SortedSet<T>.Max property to calls to RemoveLast() and TryGetLast().
* Lucene.Net.Grouping.SearchGroup.GroupMerger<T>: Replaced calls to the obsolete SortedSet<T> properties Min and Max with RemoveFirst() and RemoveLast()
* Lucene.Net.Search.Suggest.Analyzing.BlendedInfixSuggester: Replaced call to obsolete SortedSet<T>.Min property with TryGetFirst().
* Lucene.Net.Util.Fst.Util: Replaced calls to obsolete SortedSet<T> properties Min and Max with RemoveFirst(), RemoveLast() and TryGetLast()
* Lucene.Net.Analysis.MockCharFilter: Replaced call to obsolete SortedSet<T>.TryGetPredecessor() overload with the new overload.
* Lucene.Net.Search.PostingsHighlight.PostingsHighlighter: Replaced call to obsolete SortedSet<T>.GetViewBetween() method and replaced with GetView().
* Lucene.Net.Codecs.RAMOnly.RamOnlyPostingsFormat.RAMTermsEnum: Changed implementation to use GetViewAfter() and TryGetLast() of SortedDictionary<TKey, TValue> rather than resorting to LINQ calls.
* Lucene.Net.Codecs.Lucene40.Lucene40DocValuesWriter: Added comment defending the use of LINQ for this specific case rather than using GetViewBefore().
* Update src/Lucene.Net.Grouping/AbstractFirstPassGroupingCollector.cs
Added discard as per PR feedback
Co-authored-by: Paul Irwin <paulirwin@gmail.com>
* Update src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
Added discard as per PR feedback
Co-authored-by: Paul Irwin <paulirwin@gmail.com>
---------
Co-authored-by: Paul Irwin <paulirwin@gmail.com>
1 parent dff28e7 commit 29ddb24
11 files changed
Lines changed: 55 additions & 63 deletions
File tree
- src
- Lucene.Net.Codecs/SimpleText
- Lucene.Net.Grouping
- Lucene.Net.Highlighter/PostingsHighlight
- Lucene.Net.Suggest/Suggest/Analyzing
- Lucene.Net.TestFramework
- Analysis
- Codecs
- Lucene40
- RAMOnly
- Lucene.Net
- Codecs/Compressing
- Util/Fst
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 365 | + | |
371 | 366 | | |
372 | 367 | | |
373 | 368 | | |
| |||
Lines changed: 15 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 242 | + | |
256 | 243 | | |
257 | 244 | | |
258 | 245 | | |
| |||
270 | 257 | | |
271 | 258 | | |
272 | 259 | | |
273 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
274 | 263 | | |
275 | 264 | | |
276 | 265 | | |
| |||
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 307 | + | |
| 308 | + | |
328 | 309 | | |
329 | 310 | | |
330 | 311 | | |
| |||
344 | 325 | | |
345 | 326 | | |
346 | 327 | | |
347 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
348 | 333 | | |
349 | 334 | | |
350 | 335 | | |
| |||
390 | 375 | | |
391 | 376 | | |
392 | 377 | | |
393 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
394 | 382 | | |
395 | 383 | | |
396 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
195 | | - | |
196 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
| 395 | + | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
403 | 402 | | |
404 | | - | |
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
| |||
423 | 421 | | |
424 | 422 | | |
425 | 423 | | |
426 | | - | |
427 | | - | |
| 424 | + | |
428 | 425 | | |
429 | 426 | | |
430 | 427 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | | - | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
394 | | - | |
395 | | - | |
| 393 | + | |
396 | 394 | | |
397 | 395 | | |
398 | 396 | | |
| |||
407 | 405 | | |
408 | 406 | | |
409 | 407 | | |
410 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
411 | 414 | | |
412 | 415 | | |
413 | 416 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
476 | 483 | | |
477 | 484 | | |
478 | 485 | | |
| |||
0 commit comments