From 22222ab5a64651e3e4e2bdd778dae17741f2b92c Mon Sep 17 00:00:00 2001 From: Nikolaj Brask-Nielsen Date: Wed, 14 Dec 2022 08:24:23 +0100 Subject: [PATCH] chore: XML docs to refactored code --- src/Examine.Lucene/Search/LuceneBooleanOperation.cs | 4 ++++ src/Examine.Lucene/Search/LuceneBooleanOperationBase.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Examine.Lucene/Search/LuceneBooleanOperation.cs b/src/Examine.Lucene/Search/LuceneBooleanOperation.cs index 222c463e5..27a39e2aa 100644 --- a/src/Examine.Lucene/Search/LuceneBooleanOperation.cs +++ b/src/Examine.Lucene/Search/LuceneBooleanOperation.cs @@ -75,12 +75,16 @@ public LuceneBooleanOperation(LuceneSearchQuery search) /// public override string ToString() => _search.ToString(); + /// public override IFacetQueryField WithFacet(string field) => _search.FacetInternal(field, Array.Empty()); + /// public override IFacetQueryField WithFacet(string field, params string[] values) => _search.FacetInternal(field, values); + /// public override IFacetDoubleRangeQueryField WithFacet(string field, params DoubleRange[] doubleRanges) => _search.FacetInternal(field, doubleRanges); + /// public override IFacetLongRangeQueryField WithFacet(string field, params Int64Range[] longRanges) => _search.FacetInternal(field, longRanges); } } diff --git a/src/Examine.Lucene/Search/LuceneBooleanOperationBase.cs b/src/Examine.Lucene/Search/LuceneBooleanOperationBase.cs index 3be0211d2..d903816b2 100644 --- a/src/Examine.Lucene/Search/LuceneBooleanOperationBase.cs +++ b/src/Examine.Lucene/Search/LuceneBooleanOperationBase.cs @@ -136,12 +136,16 @@ protected internal LuceneBooleanOperationBase Op( /// public abstract IOrdering SelectAllFields(); + /// public abstract IFacetQueryField WithFacet(string field); + /// public abstract IFacetQueryField WithFacet(string field, params string[] values); + /// public abstract IFacetDoubleRangeQueryField WithFacet(string field, params DoubleRange[] doubleRanges); + /// public abstract IFacetLongRangeQueryField WithFacet(string field, params Int64Range[] longRanges); } }