-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update to Lucene 4.8 #1
base: master
Are you sure you want to change the base?
Conversation
…et into feature/lucene-48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks solid enough to me - aside from the usual whitespace weirdness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Couple of thoughts on formatting/style
{ | ||
var docSet = queryFilter.GetDocIdSet(leaf.AtomicReader.AtomicContext, leaf.AtomicReader.LiveDocs); | ||
if (docSet == null) | ||
{ | ||
continue; | ||
} | ||
var iterator = docSet.GetIterator(); | ||
if (iterator == null) | ||
{ | ||
continue; | ||
} | ||
bitsQueryWithoutFacetDrilldown.InPlaceOr(iterator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting has gone a bit astray here
{ | |
var docSet = queryFilter.GetDocIdSet(leaf.AtomicReader.AtomicContext, leaf.AtomicReader.LiveDocs); | |
if (docSet == null) | |
{ | |
continue; | |
} | |
var iterator = docSet.GetIterator(); | |
if (iterator == null) | |
{ | |
continue; | |
} | |
bitsQueryWithoutFacetDrilldown.InPlaceOr(iterator); | |
{ | |
var docSet = queryFilter.GetDocIdSet(leaf.AtomicReader.AtomicContext, leaf.AtomicReader.LiveDocs); | |
if (docSet == null) | |
{ | |
continue; | |
} | |
var iterator = docSet.GetIterator(); | |
if (iterator == null) | |
{ | |
continue; | |
} | |
bitsQueryWithoutFacetDrilldown.InPlaceOr(iterator); |
if (cnt >= _facetSearcherConfiguration.MinimumCountInTotalDatasetForFacet) | ||
yield return new FacetSearcher.FacetValues.FacetValueBitSet | ||
{ Value = termReader.Term.Utf8ToString(), Bitset = bitset, Count = cnt }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels a bit weird not having braces here?
if (cnt >= _facetSearcherConfiguration.MinimumCountInTotalDatasetForFacet) | |
yield return new FacetSearcher.FacetValues.FacetValueBitSet | |
{ Value = termReader.Term.Utf8ToString(), Bitset = bitset, Count = cnt }; | |
if (cnt >= _facetSearcherConfiguration.MinimumCountInTotalDatasetForFacet) | |
{ | |
yield return new FacetSearcher.FacetValues.FacetValueBitSet | |
{ Value = termReader.Term.Utf8ToString(), Bitset = bitset, Count = cnt }; | |
} |
Initial version for Lucene.net 4.8