Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 48AE1200CC2 for ; Tue, 6 Jun 2017 02:11:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47563160BF5; Tue, 6 Jun 2017 00:11:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6DF8C160BEE for ; Tue, 6 Jun 2017 02:11:37 +0200 (CEST) Received: (qmail 64362 invoked by uid 500); 6 Jun 2017 00:11:36 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 63551 invoked by uid 99); 6 Jun 2017 00:11:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 00:11:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E876EE8E72; Tue, 6 Jun 2017 00:11:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Tue, 06 Jun 2017 00:11:44 -0000 Message-Id: <3129663be1aa4bcc8ff52f2af5ce3c47@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [11/48] lucenenet git commit: Lucene.Net.Search: Fixed up documentation comments archived-at: Tue, 06 Jun 2017 00:11:39 -0000 http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DisjunctionMaxQuery.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DisjunctionMaxQuery.cs b/src/Lucene.Net/Search/DisjunctionMaxQuery.cs index ccc2731..dab4dea 100644 --- a/src/Lucene.Net/Search/DisjunctionMaxQuery.cs +++ b/src/Lucene.Net/Search/DisjunctionMaxQuery.cs @@ -34,11 +34,13 @@ namespace Lucene.Net.Search /// score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries. /// this is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be /// combined equivalently into a single search field). We want the primary score to be the one associated with the highest boost, - /// not the sum of the field scores (as BooleanQuery would give). + /// not the sum of the field scores (as would give). + /// /// If the query is "albino elephant" this ensures that "albino" matching one field and "elephant" matching /// another gets a higher score than "albino" matching both fields. - /// To get this result, use both BooleanQuery and DisjunctionMaxQuery: for each term a DisjunctionMaxQuery searches for it in - /// each field, while the set of these DisjunctionMaxQuery's is combined into a BooleanQuery. + /// + /// To get this result, use both and : for each term a searches for it in + /// each field, while the set of these 's is combined into a . /// The tie breaker capability allows results that include the same term in multiple fields to be judged better than results that /// include this term in only the best of those multiple fields, without confusing this with the better case of two different terms /// in the multiple fields. @@ -48,27 +50,31 @@ namespace Lucene.Net.Search #endif public class DisjunctionMaxQuery : Query, IEnumerable { - /* The subqueries */ + /// + /// The subqueries + /// private EquatableList disjuncts = new EquatableList(); - /* Multiple of the non-max disjunct scores added into our final score. Non-zero values support tie-breaking. */ + /// + /// Multiple of the non-max disjunct scores added into our final score. Non-zero values support tie-breaking. + /// private float tieBreakerMultiplier = 0.0f; /// - /// Creates a new empty DisjunctionMaxQuery. Use add() to add the subqueries. - /// the score of each non-maximum disjunct for a document is multiplied by this weight + /// Creates a new empty . Use to add the subqueries. + /// The score of each non-maximum disjunct for a document is multiplied by this weight /// and added into the final score. If non-zero, the value should be small, on the order of 0.1, which says that /// 10 occurrences of word in a lower-scored field that is also in a higher scored field is just as good as a unique - /// word in the lower scored field (i.e., one that is not in any higher scored field. + /// word in the lower scored field (i.e., one that is not in any higher scored field). public DisjunctionMaxQuery(float tieBreakerMultiplier) { this.tieBreakerMultiplier = tieBreakerMultiplier; } /// - /// Creates a new DisjunctionMaxQuery - /// a {@code Collection} of all the disjuncts to add - /// the weight to give to each matching non-maximum disjunct + /// Creates a new + /// A of all the disjuncts to add + /// The weight to give to each matching non-maximum disjunct public DisjunctionMaxQuery(ICollection disjuncts, float tieBreakerMultiplier) { this.tieBreakerMultiplier = tieBreakerMultiplier; @@ -77,7 +83,7 @@ namespace Lucene.Net.Search /// /// Add a subquery to this disjunction - /// the disjunct added + /// The disjunct added public virtual void Add(Query query) { disjuncts.Add(query); @@ -85,14 +91,14 @@ namespace Lucene.Net.Search /// /// Add a collection of disjuncts to this disjunction - /// via {@code Iterable} - /// a collection of queries to add as disjuncts. - public virtual void Add(ICollection disjuncts) + /// via + /// A collection of queries to add as disjuncts. + public virtual void Add(ICollection disjuncts) // LUCENENET TODO: API: change back to IEnumerable. Rename AddRange? { this.disjuncts.AddRange(disjuncts); } - /// An {@code Iterator} over the disjuncts + /// An over the disjuncts public virtual IEnumerator GetEnumerator() { return disjuncts.GetEnumerator(); @@ -103,7 +109,7 @@ namespace Lucene.Net.Search return GetEnumerator(); } - /// the disjuncts. + /// The disjuncts. public virtual IList Disjuncts { get @@ -112,7 +118,7 @@ namespace Lucene.Net.Search } } - /// tie breaker value for multiple matches. + /// Tie breaker value for multiple matches. public virtual float TieBreakerMultiplier { get @@ -125,8 +131,8 @@ namespace Lucene.Net.Search /// Expert: the Weight for DisjunctionMaxQuery, used to /// normalize, score and explain these queries. /// - ///

NOTE: this API and implementation is subject to - /// change suddenly in the next release.

+ /// NOTE: this API and implementation is subject to + /// change suddenly in the next release. /// #if FEATURE_SERIALIZABLE [Serializable] @@ -136,11 +142,11 @@ namespace Lucene.Net.Search private readonly DisjunctionMaxQuery outerInstance; /// - /// The Weights for our subqueries, in 1-1 correspondence with disjuncts + /// The s for our subqueries, in 1-1 correspondence with disjuncts protected List m_weights = new List(); // The Weight's for our subqueries, in 1-1 correspondence with disjuncts /// - /// Construct the Weight for this Query searched by searcher. Recursively construct subquery weights. + /// Construct the for this searched by . Recursively construct subquery weights. public DisjunctionMaxWeight(DisjunctionMaxQuery outerInstance, IndexSearcher searcher) { this.outerInstance = outerInstance; @@ -151,17 +157,17 @@ namespace Lucene.Net.Search } /// - /// Return our associated DisjunctionMaxQuery + /// Return our associated public override Query Query { get - /// - /// Compute the sub of squared weights of us applied to our subqueries. Used for normalization. { return outerInstance; } } + /// + /// Compute the sub of squared weights of us applied to our subqueries. Used for normalization. public override float GetValueForNormalization() { float max = 0.0f, sum = 0.0f; @@ -187,7 +193,7 @@ namespace Lucene.Net.Search } /// - /// Create the scorer used to score our associated DisjunctionMaxQuery + /// Create the scorer used to score our associated public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs) { IList scorers = new List(); @@ -237,7 +243,7 @@ namespace Lucene.Net.Search } // end of DisjunctionMaxWeight inner class /// - /// Create the Weight used to score us + /// Create the used to score us public override Weight CreateWeight(IndexSearcher searcher) { return new DisjunctionMaxWeight(this, searcher); @@ -245,8 +251,8 @@ namespace Lucene.Net.Search /// /// Optimize our representation and our subqueries representations - /// the IndexReader we query - /// an optimized copy of us (which may not be a copy if there is nothing to optimize) + /// The we query + /// An optimized copy of us (which may not be a copy if there is nothing to optimize) public override Query Rewrite(IndexReader reader) { int numDisjunctions = disjuncts.Count; @@ -290,7 +296,7 @@ namespace Lucene.Net.Search /// /// Create a shallow copy of us -- used in rewriting if necessary - /// a copy of us (but reuse, don't copy, our subqueries) + /// A copy of us (but reuse, don't copy, our subqueries) public override object Clone() { DisjunctionMaxQuery clone = (DisjunctionMaxQuery)base.Clone(); @@ -298,7 +304,11 @@ namespace Lucene.Net.Search return clone; } - // inherit javadoc + /// + /// Expert: adds all terms occurring in this query to the terms set. Only + /// works if this query is in its rewritten () form. + /// + /// If this query is not yet rewritten public override void ExtractTerms(ISet terms) { foreach (Query query in disjuncts) @@ -309,8 +319,8 @@ namespace Lucene.Net.Search /// /// Prettyprint us. - /// the field to which we are applied - /// a string that shows what we do, of the form "(disjunct1 | disjunct2 | ... | disjunctn)^boost" + /// The field to which we are applied + /// A string that shows what we do, of the form "(disjunct1 | disjunct2 | ... | disjunctn)^boost" public override string ToString(string field) { StringBuilder buffer = new StringBuilder(); @@ -349,9 +359,9 @@ namespace Lucene.Net.Search } /// - /// Return true iff we represent the same query as o - /// another object - /// true iff o is a DisjunctionMaxQuery with the same boost and the same subqueries, in the same order, as us + /// Return true if we represent the same query as + /// Another object + /// true if is a with the same boost and the same subqueries, in the same order, as us public override bool Equals(object o) { if (!(o is DisjunctionMaxQuery)) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DisjunctionMaxScorer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DisjunctionMaxScorer.cs b/src/Lucene.Net/Search/DisjunctionMaxScorer.cs index d915790..45bddea 100644 --- a/src/Lucene.Net/Search/DisjunctionMaxScorer.cs +++ b/src/Lucene.Net/Search/DisjunctionMaxScorer.cs @@ -20,9 +20,9 @@ namespace Lucene.Net.Search */ /// - /// The Scorer for DisjunctionMaxQuery. The union of all documents generated by the the subquery scorers + /// The for . The union of all documents generated by the the subquery scorers /// is generated in document number order. The score for each document is the maximum of the scores computed - /// by the subquery scorers that generate that document, plus tieBreakerMultiplier times the sum of the scores + /// by the subquery scorers that generate that document, plus times the sum of the scores /// for the other subqueries that generate the document. /// #if FEATURE_SERIALIZABLE @@ -30,24 +30,24 @@ namespace Lucene.Net.Search #endif internal class DisjunctionMaxScorer : DisjunctionScorer { - /* Multiplier applied to non-maximum-scoring subqueries for a document as they are summed into the result. */ + /// Multiplier applied to non-maximum-scoring subqueries for a document as they are summed into the result. private readonly float tieBreakerMultiplier; private int freq = -1; - /* Used when scoring currently matching doc. */ + /// Used when scoring currently matching doc. private float scoreSum; private float scoreMax; /// - /// Creates a new instance of DisjunctionMaxScorer + /// Creates a new instance of /// /// - /// The Weight to be used. + /// The to be used. /// /// Multiplier applied to non-maximum-scoring subqueries for a /// document as they are summed into the result. /// - /// The sub scorers this Scorer should iterate on + /// The sub scorers this should iterate on public DisjunctionMaxScorer(Weight weight, float tieBreakerMultiplier, Scorer[] subScorers) : base(weight, subScorers) { @@ -55,8 +55,8 @@ namespace Lucene.Net.Search } /// - /// Determine the current document score. Initially invalid, until is called the first time. - /// the score of the current generated document + /// Determine the current document score. Initially invalid, until is called the first time. + /// The score of the current generated document public override float GetScore() { return scoreMax + (scoreSum - scoreMax) * tieBreakerMultiplier; @@ -74,7 +74,9 @@ namespace Lucene.Net.Search } } - // Recursively iterate all subScorers that generated last doc computing sum and max + /// + /// Recursively iterate all subScorers that generated last doc computing sum and max + /// private void ScoreAll(int root) { if (root < m_numScorers && m_subScorers[root].DocID == m_doc) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DisjunctionScorer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DisjunctionScorer.cs b/src/Lucene.Net/Search/DisjunctionScorer.cs index 528c977..d35e073 100644 --- a/src/Lucene.Net/Search/DisjunctionScorer.cs +++ b/src/Lucene.Net/Search/DisjunctionScorer.cs @@ -22,7 +22,7 @@ namespace Lucene.Net.Search */ /// - /// Base class for Scorers that score disjunctions. + /// Base class for s that score disjunctions. /// Currently this just provides helper methods to manage the heap. /// #if FEATURE_SERIALIZABLE @@ -107,7 +107,7 @@ namespace Lucene.Net.Search } /// - /// Remove the root Scorer from subScorers and re-establish it as a heap + /// Remove the root from subScorers and re-establish it as a heap /// protected void HeapRemoveRoot() { @@ -201,13 +201,13 @@ namespace Lucene.Net.Search } /// - /// Called after next() or advance() land on a new document. - ///

- /// {@code subScorers[0]} will be positioned to the new docid, - /// which could be {@code NO_MORE_DOCS} (subclass must handle this). - ///

- /// implementations should assign {@code doc} appropriately, and do any - /// other work necessary to implement {@code score()} and {@code freq()} + /// Called after or land on a new document. + /// + /// subScorers[0] will be positioned to the new docid, + /// which could be NO_MORE_DOCS (subclass must handle this). + /// + /// Implementations should assign doc appropriately, and do any + /// other work necessary to implement and ///

// TODO: make this less horrible protected abstract void AfterNext(); http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DisjunctionSumScorer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DisjunctionSumScorer.cs b/src/Lucene.Net/Search/DisjunctionSumScorer.cs index 372ae9c..e7ece8e 100644 --- a/src/Lucene.Net/Search/DisjunctionSumScorer.cs +++ b/src/Lucene.Net/Search/DisjunctionSumScorer.cs @@ -20,8 +20,8 @@ namespace Lucene.Net.Search */ /// - /// A Scorer for OR like queries, counterpart of ConjunctionScorer. - /// this Scorer implements and uses advance() on the given Scorers. + /// A for OR like queries, counterpart of . + /// This implements and uses Advance() on the given s. /// #if FEATURE_SERIALIZABLE [Serializable] @@ -36,7 +36,7 @@ namespace Lucene.Net.Search private readonly float[] coord; /// - /// Construct a DisjunctionScorer. + /// Construct a . /// The weight to be used. /// Array of at least two subscorers. /// Table of coordination factors @@ -80,7 +80,7 @@ namespace Lucene.Net.Search /// /// Returns the score of the current document matching the query. - /// Initially invalid, until is called the first time. + /// Initially invalid, until is called the first time. /// public override float GetScore() { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DocIdSet.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DocIdSet.cs b/src/Lucene.Net/Search/DocIdSet.cs index 154ab0a..7528f20 100644 --- a/src/Lucene.Net/Search/DocIdSet.cs +++ b/src/Lucene.Net/Search/DocIdSet.cs @@ -22,8 +22,8 @@ namespace Lucene.Net.Search using IBits = Lucene.Net.Util.IBits; /// - /// A DocIdSet contains a set of doc ids. Implementing classes must - /// only implement to provide access to the set. + /// A contains a set of doc ids. Implementing classes must + /// only implement to provide access to the set. /// #if FEATURE_SERIALIZABLE [Serializable] @@ -31,8 +31,8 @@ namespace Lucene.Net.Search public abstract class DocIdSet { /// - /// Provides a to access the set. - /// this implementation can return null if there + /// Provides a to access the set. + /// This implementation can return null if there /// are no docs that match. /// public abstract DocIdSetIterator GetIterator(); @@ -45,29 +45,29 @@ namespace Lucene.Net.Search // (down-low filtering using e.g. FixedBitSet) /// - /// Optionally provides a interface for random access + /// Optionally provides a interface for random access /// to matching documents. - /// {@code null}, if this {@code DocIdSet} does not support random access. - /// In contrast to , a return value of {@code null} + /// null, if this does not support random access. + /// In contrast to , a return value of null /// does not imply that no documents match the filter! /// The default implementation does not provide random access, so you - /// only need to implement this method if your DocIdSet can + /// only need to implement this method if your can /// guarantee random access to every docid in O(1) time without - /// external disk access (as interface cannot throw - /// ). this is generally true for bit sets - /// like , which return - /// itself if they are used as {@code DocIdSet}. + /// external disk access (as interface cannot throw + /// ). This is generally true for bit sets + /// like , which return + /// itself if they are used as . public virtual IBits Bits // LUCENENET NOTE: This isn't a great candidate for a property, but it makes more sense to call this Bits than Bits(). GetBits() was already taken in the same context. { get { return null; } } /// - /// this method is a hint for , if this DocIdSet + /// This method is a hint for , if this /// should be cached without copying it. The default is to return - /// false. If you have an own DocIdSet implementation + /// false. If you have an own implementation /// that does its iteration very effective and fast without doing disk I/O, - /// override this method and return true. + /// override this property and return true. /// public virtual bool IsCacheable { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DocIdSetIterator.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DocIdSetIterator.cs b/src/Lucene.Net/Search/DocIdSetIterator.cs index cca215c..ca91594 100644 --- a/src/Lucene.Net/Search/DocIdSetIterator.cs +++ b/src/Lucene.Net/Search/DocIdSetIterator.cs @@ -21,9 +21,9 @@ namespace Lucene.Net.Search */ /// - /// this abstract class defines methods to iterate over a set of non-decreasing + /// This abstract class defines methods to iterate over a set of non-decreasing /// doc ids. Note that this class assumes it iterates on doc Ids, and therefore - /// is set to {@value #NO_MORE_DOCS} in order to be used as + /// is set to in order to be used as /// a sentinel object. Implementations of this class are expected to consider /// as an invalid value. /// @@ -33,7 +33,7 @@ namespace Lucene.Net.Search public abstract class DocIdSetIterator { /// - /// An empty {@code DocIdSetIterator} instance + /// An empty instance public static DocIdSetIterator GetEmpty() { return new DocIdSetIteratorAnonymousInnerClassHelper(); @@ -74,20 +74,20 @@ namespace Lucene.Net.Search } /// - /// When returned by , and - /// it means there are no more docs in the iterator. + /// When returned by , and + /// it means there are no more docs in the iterator. /// public const int NO_MORE_DOCS = int.MaxValue; /// /// Returns the following: - ///
    - ///
  • -1 or if or - /// were not called yet. - ///
  • if the iterator has exhausted. - ///
  • Otherwise it should return the doc ID it is currently on. - ///
- ///

+ /// + /// -1 or if or + /// were not called yet. + /// if the iterator has exhausted. + /// Otherwise it should return the doc ID it is currently on. + /// + /// /// /// @since 2.9 ///

@@ -95,12 +95,12 @@ namespace Lucene.Net.Search /// /// Advances to the next document in the set and returns the doc it is - /// currently on, or if there are no more docs in the - /// set.
+ /// currently on, or if there are no more docs in the + /// set. /// - /// NOTE: after the iterator has exhausted you should not call this + /// NOTE: after the iterator has exhausted you should not call this /// method, as it may result in unpredicted behavior. - /// + /// /// @since 2.9 ///
public abstract int NextDoc(); @@ -108,39 +108,41 @@ namespace Lucene.Net.Search /// /// Advances to the first beyond the current whose document number is greater /// than or equal to target, and returns the document number itself. - /// Exhausts the iterator and returns if target + /// Exhausts the iterator and returns if target /// is greater than the highest document number in the set. - ///

+ /// /// The behavior of this method is undefined when called with - /// target <= current, or after the iterator has exhausted. + /// target <= current, or after the iterator has exhausted. /// Both cases may result in unpredicted behavior. - ///

- /// When target > current it behaves as if written: + /// + /// When target > current it behaves as if written: /// - ///

-        /// int advance(int target) {
-        ///   int doc;
-        ///   while ((doc = nextDoc()) < target) {
-        ///   }
-        ///   return doc;
+        /// 
+        /// int Advance(int target) 
+        /// {
+        ///     int doc;
+        ///     while ((doc = NextDoc()) < target) 
+        ///     {
+        ///     }
+        ///     return doc;
         /// }
-        /// 
+ /// /// /// Some implementations are considerably more efficient than that. - ///

- /// NOTE: this method may be called with for - /// efficiency by some Scorers. If your implementation cannot efficiently + /// + /// NOTE: this method may be called with for + /// efficiency by some s. If your implementation cannot efficiently /// determine that it should exhaust, it is recommended that you check for that /// value in each call to this method. - ///

+ /// /// /// @since 2.9 ///

public abstract int Advance(int target); /// - /// Slow (linear) implementation of relying on - /// to advance beyond the target position. + /// Slow (linear) implementation of relying on + /// to advance beyond the target position. /// protected internal int SlowAdvance(int target) { @@ -154,9 +156,9 @@ namespace Lucene.Net.Search } /// - /// Returns the estimated cost of this . - ///

- /// this is generally an upper bound of the number of documents this iterator + /// Returns the estimated cost of this . + /// + /// This is generally an upper bound of the number of documents this iterator /// might match, but may be a rough heuristic, hardcoded value, or otherwise /// completely inaccurate. ///

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DocTermOrdsRangeFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DocTermOrdsRangeFilter.cs b/src/Lucene.Net/Search/DocTermOrdsRangeFilter.cs index 5d59a29..b2830d3 100644 --- a/src/Lucene.Net/Search/DocTermOrdsRangeFilter.cs +++ b/src/Lucene.Net/Search/DocTermOrdsRangeFilter.cs @@ -27,11 +27,11 @@ namespace Lucene.Net.Search using SortedSetDocValues = Lucene.Net.Index.SortedSetDocValues; /// - /// A range filter built on top of a cached multi-valued term field (in ). + /// A range filter built on top of a cached multi-valued term field (in ). /// - ///

Like , this is just a specialized range query versus - /// using a TermRangeQuery with : it will only do - /// two ordinal to term lookups.

+ /// Like , this is just a specialized range query versus + /// using a with : it will only do + /// two ordinal to term lookups. ///
#if FEATURE_SERIALIZABLE [Serializable] @@ -54,13 +54,13 @@ namespace Lucene.Net.Search } /// - /// this method is implemented for each data type + /// This method is implemented for each data type public override abstract DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs); /// - /// Creates a BytesRef range filter using . this works with all + /// Creates a BytesRef range filter using . This works with all /// fields containing zero or one term in the field. The range can be half-open by setting one - /// of the values to null. + /// of the values to null. /// public static DocTermOrdsRangeFilter NewBytesRefRange(string field, BytesRef lowerVal, BytesRef upperVal, bool includeLower, bool includeUpper) { @@ -232,14 +232,14 @@ namespace Lucene.Net.Search } /// - /// Returns true if the lower endpoint is inclusive + /// Returns true if the lower endpoint is inclusive public virtual bool IncludesLower { get { return includeLower; } } /// - /// Returns true if the upper endpoint is inclusive + /// Returns true if the upper endpoint is inclusive public virtual bool IncludesUpper { get { return includeUpper; } http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/DocTermOrdsRewriteMethod.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/DocTermOrdsRewriteMethod.cs b/src/Lucene.Net/Search/DocTermOrdsRewriteMethod.cs index 28f2326..77ddffa 100644 --- a/src/Lucene.Net/Search/DocTermOrdsRewriteMethod.cs +++ b/src/Lucene.Net/Search/DocTermOrdsRewriteMethod.cs @@ -31,9 +31,10 @@ namespace Lucene.Net.Search using TermsEnum = Lucene.Net.Index.TermsEnum; /// - /// Rewrites MultiTermQueries into a filter, using DocTermOrds for term enumeration. - ///

- /// this can be used to perform these queries against an unindexed docvalues field. + /// Rewrites s into a filter, using DocTermOrds for term enumeration. + /// + /// This can be used to perform these queries against an unindexed docvalues field. + /// /// @lucene.experimental ///

#if FEATURE_SERIALIZABLE @@ -56,7 +57,7 @@ namespace Lucene.Net.Search protected readonly MultiTermQuery m_query; /// - /// Wrap a as a Filter. + /// Wrap a as a . /// protected internal MultiTermQueryDocTermOrdsWrapperFilter(MultiTermQuery query) { @@ -102,7 +103,7 @@ namespace Lucene.Net.Search } /// - /// Returns a DocIdSet with documents that should be permitted in search + /// Returns a with documents that should be permitted in search /// results. /// public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/Explanation.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/Explanation.cs b/src/Lucene.Net/Search/Explanation.cs index 09e146a..f2c2de1 100644 --- a/src/Lucene.Net/Search/Explanation.cs +++ b/src/Lucene.Net/Search/Explanation.cs @@ -43,12 +43,12 @@ namespace Lucene.Net.Search } /// - /// Indicates whether or not this Explanation models a good match. + /// Indicates whether or not this models a good match. /// - ///

+ /// /// By default, an Explanation represents a "match" if the value is positive. - ///

- /// + ///
+ /// public virtual bool IsMatch { get @@ -58,7 +58,7 @@ namespace Lucene.Net.Search } /// - /// The value assigned to this explanation node. + /// Gets or Sets the value assigned to this explanation node. public virtual float Value { get @@ -72,7 +72,7 @@ namespace Lucene.Net.Search } /// - /// A description of this explanation node. + /// Gets or Sets the description of this explanation node. public virtual string Description { get @@ -87,7 +87,7 @@ namespace Lucene.Net.Search /// /// A short one line summary which should contain all high level - /// information about this Explanation, without the "Details" + /// information about this , without the "Details" /// protected virtual string GetSummary() { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b2db5313/src/Lucene.Net/Search/FakeScorer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Search/FakeScorer.cs b/src/Lucene.Net/Search/FakeScorer.cs index 33f454b..c2e87aa 100644 --- a/src/Lucene.Net/Search/FakeScorer.cs +++ b/src/Lucene.Net/Search/FakeScorer.cs @@ -21,8 +21,8 @@ namespace Lucene.Net.Search */ /// - /// Used by s that need to pass a {@link - /// Scorer} to . + /// Used by s that need to pass a + /// to . /// #if FEATURE_SERIALIZABLE [Serializable]