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

Update to Lucene 4.8 #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Update to Lucene 4.8 #1

wants to merge 7 commits into from

Conversation

stevetemple
Copy link
Member

@stevetemple stevetemple commented Nov 16, 2021

Initial version for Lucene.net 4.8

@stevetemple stevetemple marked this pull request as ready for review November 23, 2021 10:05
Copy link

@lukehook lukehook left a 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

Copy link

@tristanjthompson tristanjthompson left a 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

Comment on lines +104 to +115
{
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);

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

Suggested change
{
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);

Comment on lines +33 to +35
if (cnt >= _facetSearcherConfiguration.MinimumCountInTotalDatasetForFacet)
yield return new FacetSearcher.FacetValues.FacetValueBitSet
{ Value = termReader.Term.Utf8ToString(), Bitset = bitset, Count = cnt };

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?

Suggested change
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 };
}

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

Successfully merging this pull request may close these issues.

3 participants