Example #1
0
		/// <summary> TODO: parallelize this one too</summary>
		public override int DocFreq(Term term)
		{
			int docFreq = 0;
			for (int i = 0; i < searchables.Length; i++)
				docFreq += searchables[i].DocFreq(term);
			return docFreq;
		}
        /// <summary> TODO: parallelize this one too</summary>
        public override int DocFreq(Term term)
        {
            int docFreq = 0;

            for (int i = 0; i < searchables.Length; i++)
            {
                docFreq += searchables[i].DocFreq(term);
            }
            return(docFreq);
        }
Example #3
0
 public abstract int DocFreq(Monodoc.Lucene.Net.Index.Term param1);
Example #4
0
		public virtual int DocFreq(Term term)
		{
			return local.DocFreq(term);
		}
Example #5
0
 /// <summary> Factory method for generating a query (similar to
 /// ({@link #getWildcardQuery}). Called when parser parses
 /// an input term token that has the fuzzy suffix (~floatNumber) appended.
 /// 
 /// </summary>
 /// <param name="field">Name of the field query will use.
 /// </param>
 /// <param name="termStr">Term token to use for building term for the query
 /// </param>
 /// <param name="minSimilarity">the minimum similarity required for a fuzzy match
 /// 
 /// </param>
 /// <returns> Resulting {@link Query} built for the term
 /// </returns>
 /// <exception cref=""> ParseException throw in overridden method to disallow
 /// </exception>
 protected internal virtual Query GetFuzzyQuery(System.String field, System.String termStr, float minSimilarity)
 {
     Term t = new Term(field, termStr);
     return new FuzzyQuery(t, minSimilarity);
 }
Example #6
0
		/// <summary> Factory method for generating a query (similar to
		/// ({@link #getWildcardQuery}). Called when parser parses an input term
		/// token that uses prefix notation; that is, contains a single '*' wildcard
		/// character as its last character. Since this is a special case
		/// of generic wildcard term, and such a query can be optimized easily,
		/// this usually results in a different query object.
		/// <p>
		/// Depending on settings, a prefix term may be lower-cased
		/// automatically. It will not go through the default Analyzer,
		/// however, since normal Analyzers are unlikely to work properly
		/// with wildcard templates.
		/// <p>
		/// Can be overridden by extending classes, to provide custom handling for
		/// wild card queries, which may be necessary due to missing analyzer calls.
		/// 
		/// </summary>
		/// <param name="field">Name of the Field query will use.
		/// </param>
		/// <param name="termStr">Term token to use for building term for the query
		/// (<b>without</b> trailing '*' character!)
		/// 
		/// </param>
		/// <returns> Resulting {@link Query} built for the term
		/// </returns>
		/// <exception cref=""> ParseException throw in overridden method to disallow
		/// </exception>
		protected internal virtual Query GetPrefixQuery(System.String field, System.String termStr)
		{
			if (lowercaseWildcardTerms)
			{
				termStr = termStr.ToLower();
			}
			Term t = new Term(field, termStr);
			return new PrefixQuery(t);
		}
Example #7
0
 public virtual int DocFreq(Term term)
 {
     return(local.DocFreq(term));
 }