亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? abstractfield.cs

?? 介紹有關全文檢索的類庫,以lucene為例,在.net環境下實現多種類型文檔的全文檢索.
?? CS
字號:
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

using System;

namespace Lucene.Net.Documents
{
	/// <summary> 
	/// 
	/// 
	/// </summary>
	[Serializable]
	public abstract class AbstractField : Fieldable
	{
		
		protected internal System.String name = "body";
		protected internal bool storeTermVector = false;
		protected internal bool storeOffsetWithTermVector = false;
		protected internal bool storePositionWithTermVector = false;
		protected internal bool omitNorms = false;
		protected internal bool isStored = false;
		protected internal bool isIndexed = true;
		protected internal bool isTokenized = true;
		protected internal bool isBinary = false;
		protected internal bool isCompressed = false;
		protected internal bool lazy = false;
		protected internal float boost = 1.0f;
		// the one and only data object for all different kind of field values
		protected internal System.Object fieldsData = null;
		
		protected internal AbstractField()
		{
		}
		
		protected internal AbstractField(System.String name, Field.Store store, Field.Index index, Field.TermVector termVector)
		{
			if (name == null)
				throw new System.NullReferenceException("name cannot be null");
			this.name = String.Intern(name); // field names are interned
			
			if (store == Field.Store.YES)
			{
				this.isStored = true;
				this.isCompressed = false;
			}
			else if (store == Field.Store.COMPRESS)
			{
				this.isStored = true;
				this.isCompressed = true;
			}
			else if (store == Field.Store.NO)
			{
				this.isStored = false;
				this.isCompressed = false;
			}
			else
			{
				throw new System.ArgumentException("unknown store parameter " + store);
			}
			
			if (index == Field.Index.NO)
			{
				this.isIndexed = false;
				this.isTokenized = false;
			}
			else if (index == Field.Index.TOKENIZED)
			{
				this.isIndexed = true;
				this.isTokenized = true;
			}
			else if (index == Field.Index.UN_TOKENIZED)
			{
				this.isIndexed = true;
				this.isTokenized = false;
			}
			else if (index == Field.Index.NO_NORMS)
			{
				this.isIndexed = true;
				this.isTokenized = false;
				this.omitNorms = true;
			}
			else
			{
				throw new System.ArgumentException("unknown index parameter " + index);
			}
			
			this.isBinary = false;
			
			SetStoreTermVector(termVector);
		}
		
		/// <summary>Sets the boost factor hits on this field.  This value will be
		/// multiplied into the score of all hits on this this field of this
		/// document.
		/// 
		/// <p>The boost is multiplied by {@link Lucene.Net.Documents.Document#GetBoost()} of the document
		/// containing this field.  If a document has multiple fields with the same
		/// name, all such values are multiplied together.  This product is then
		/// multipled by the value {@link Lucene.Net.Search.Similarity#LengthNorm(String,int)}, and
		/// rounded by {@link Lucene.Net.Search.Similarity#EncodeNorm(float)} before it is stored in the
		/// index.  One should attempt to ensure that this product does not overflow
		/// the range of that encoding.
		/// 
		/// </summary>
		/// <seealso cref="Lucene.Net.Documents.Document#SetBoost(float)">
		/// </seealso>
		/// <seealso cref="int)">
		/// </seealso>
		/// <seealso cref="Lucene.Net.Search.Similarity#EncodeNorm(float)">
		/// </seealso>
		public virtual void  SetBoost(float boost)
		{
			this.boost = boost;
		}
		
		/// <summary>Returns the boost factor for hits for this field.
		/// 
		/// <p>The default value is 1.0.
		/// 
		/// <p>Note: this value is not stored directly with the document in the index.
		/// Documents returned from {@link Lucene.Net.Index.IndexReader#Document(int)} and
		/// {@link Lucene.Net.Search.Hits#Doc(int)} may thus not have the same value present as when
		/// this field was indexed.
		/// 
		/// </summary>
		/// <seealso cref="#SetBoost(float)">
		/// </seealso>
		public virtual float GetBoost()
		{
			return boost;
		}
		
		/// <summary>Returns the name of the field as an interned string.
		/// For example "date", "title", "body", ...
		/// </summary>
		public virtual System.String Name()
		{
			return name;
		}
		
		protected internal virtual void  SetStoreTermVector(Field.TermVector termVector)
		{
			if (termVector == Field.TermVector.NO)
			{
				this.storeTermVector = false;
				this.storePositionWithTermVector = false;
				this.storeOffsetWithTermVector = false;
			}
			else if (termVector == Field.TermVector.YES)
			{
				this.storeTermVector = true;
				this.storePositionWithTermVector = false;
				this.storeOffsetWithTermVector = false;
			}
			else if (termVector == Field.TermVector.WITH_POSITIONS)
			{
				this.storeTermVector = true;
				this.storePositionWithTermVector = true;
				this.storeOffsetWithTermVector = false;
			}
			else if (termVector == Field.TermVector.WITH_OFFSETS)
			{
				this.storeTermVector = true;
				this.storePositionWithTermVector = false;
				this.storeOffsetWithTermVector = true;
			}
			else if (termVector == Field.TermVector.WITH_POSITIONS_OFFSETS)
			{
				this.storeTermVector = true;
				this.storePositionWithTermVector = true;
				this.storeOffsetWithTermVector = true;
			}
			else
			{
				throw new System.ArgumentException("unknown termVector parameter " + termVector);
			}
		}
		
		/// <summary>True iff the value of the field is to be stored in the index for return
		/// with search hits.  It is an error for this to be true if a field is
		/// Reader-valued. 
		/// </summary>
		public bool IsStored()
		{
			return isStored;
		}
		
		/// <summary>True iff the value of the field is to be indexed, so that it may be
		/// searched on. 
		/// </summary>
		public bool IsIndexed()
		{
			return isIndexed;
		}
		
		/// <summary>True iff the value of the field should be tokenized as text prior to
		/// indexing.  Un-tokenized fields are indexed as a single word and may not be
		/// Reader-valued. 
		/// </summary>
		public bool IsTokenized()
		{
			return isTokenized;
		}
		
		/// <summary>True if the value of the field is stored and compressed within the index </summary>
		public bool IsCompressed()
		{
			return isCompressed;
		}
		
		/// <summary>True iff the term or terms used to index this field are stored as a term
		/// vector, available from {@link Lucene.Net.Index.IndexReader#GetTermFreqVector(int,String)}.
		/// These methods do not provide access to the original content of the field,
		/// only to terms used to index it. If the original content must be
		/// preserved, use the <code>stored</code> attribute instead.
		/// 
		/// </summary>
		/// <seealso cref="String)">
		/// </seealso>
		public bool IsTermVectorStored()
		{
			return storeTermVector;
		}
		
		/// <summary> True iff terms are stored as term vector together with their offsets 
		/// (start and end positon in source text).
		/// </summary>
		public virtual bool IsStoreOffsetWithTermVector()
		{
			return storeOffsetWithTermVector;
		}
		
		/// <summary> True iff terms are stored as term vector together with their token positions.</summary>
		public virtual bool IsStorePositionWithTermVector()
		{
			return storePositionWithTermVector;
		}
		
		/// <summary>True iff the value of the filed is stored as binary </summary>
		public bool IsBinary()
		{
			return isBinary;
		}
		
		/// <summary>True if norms are omitted for this indexed field </summary>
		public virtual bool GetOmitNorms()
		{
			return omitNorms;
		}
		
		/// <summary>Expert:
		/// 
		/// If set, omit normalization factors associated with this indexed field.
		/// This effectively disables indexing boosts and length normalization for this field.
		/// </summary>
		public virtual void  SetOmitNorms(bool omitNorms)
		{
			this.omitNorms = omitNorms;
		}
		
		public virtual bool IsLazy()
		{
			return lazy;
		}
		
		/// <summary>Prints a Field for human consumption. </summary>
		public override System.String ToString()
		{
			System.Text.StringBuilder result = new System.Text.StringBuilder();
			if (isStored)
			{
				result.Append("stored");
				if (isCompressed)
					result.Append("/compressed");
				else
					result.Append("/uncompressed");
			}
			if (isIndexed)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("indexed");
			}
			if (isTokenized)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("tokenized");
			}
			if (storeTermVector)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("termVector");
			}
			if (storeOffsetWithTermVector)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("termVectorOffsets");
			}
			if (storePositionWithTermVector)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("termVectorPosition");
			}
			if (isBinary)
			{
				if (result.Length > 0)
					result.Append(",");
				result.Append("binary");
			}
			if (omitNorms)
			{
				result.Append(",omitNorms");
			}
			if (lazy)
			{
				result.Append(",lazy");
			}
			result.Append('<');
			result.Append(name);
			result.Append(':');
			
			if (fieldsData != null && lazy == false)
			{
				result.Append(fieldsData);
			}
			
			result.Append('>');
			return result.ToString();
		}
		public abstract byte[] BinaryValue();
		public abstract System.String StringValue();
		public abstract System.IO.TextReader ReaderValue();
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成熟亚洲日本毛茸茸凸凹| 一区二区三区中文在线| 麻豆精品国产传媒mv男同| 欧美精品高清视频| 日本sm残虐另类| 日韩女优视频免费观看| 韩国女主播成人在线观看| 久久久噜噜噜久噜久久综合| 国产福利一区二区三区| 亚洲欧美日韩在线不卡| 欧美影视一区二区三区| 日本不卡的三区四区五区| www久久久久| 成人精品小蝌蚪| 国产乱国产乱300精品| 国产天堂亚洲国产碰碰| 99久久er热在这里只有精品15| 亚洲三级久久久| 欧美三级电影一区| 狠狠色2019综合网| 中文字幕在线一区免费| 91成人免费在线| 日韩av电影免费观看高清完整版| 欧美刺激午夜性久久久久久久| 国产成人av网站| 亚洲欧美电影一区二区| 日韩一卡二卡三卡| 成人国产免费视频| 午夜精品久久久久久久99樱桃| 2021中文字幕一区亚洲| 一本久久综合亚洲鲁鲁五月天 | 亚洲乱码日产精品bd| 欧美日韩久久不卡| 国产成人精品三级| 亚洲成人免费视频| 国产日韩欧美激情| 欧美精品一级二级三级| 成人免费高清视频| 日韩精品电影在线| 亚洲色图色小说| 欧美电影免费观看完整版| 一本色道久久综合精品竹菊| 国产资源在线一区| 亚洲第一激情av| 国产欧美日韩卡一| 欧美一卡二卡三卡四卡| 成人av电影在线播放| 精品一区二区在线播放| 一二三区精品视频| 国产精品久久福利| 久久久精品免费免费| 制服丝袜中文字幕一区| 色偷偷成人一区二区三区91 | 国产精品视频观看| 日韩久久久精品| 欧美日韩精品欧美日韩精品 | 欧美性色黄大片手机版| 国产v日产∨综合v精品视频| 蜜桃av噜噜一区| 亚洲777理论| 亚洲欧美日韩一区二区 | 日韩一区二区精品葵司在线| 欧美三级日韩在线| 色久综合一二码| 成人av在线影院| 国产大陆a不卡| 久久国产精品99精品国产 | 亚洲激情六月丁香| 国产精品色眯眯| 久久久噜噜噜久久人人看 | 中文字幕一区在线观看视频| 日韩欧美三级在线| 日韩一区二区电影网| 91精品国产综合久久久蜜臀图片| 欧美亚洲自拍偷拍| 精品视频色一区| 欧美日韩黄色一区二区| 欧美日本韩国一区二区三区视频| 91免费版在线看| 94-欧美-setu| 日本韩国欧美一区| 色嗨嗨av一区二区三区| 色噜噜久久综合| 欧洲av一区二区嗯嗯嗯啊| 色婷婷香蕉在线一区二区| 91麻豆国产在线观看| 91久久精品网| 欧美性xxxxx极品少妇| 欧美日韩高清一区| 欧美福利视频一区| 欧美一区二区播放| 精品第一国产综合精品aⅴ| 久久综合99re88久久爱| 国产视频视频一区| 自拍偷拍亚洲激情| 亚洲国产乱码最新视频| 污片在线观看一区二区| 日韩电影在线观看一区| 美女性感视频久久| 国产乱码精品一区二区三区五月婷| 高清不卡一区二区在线| 972aa.com艺术欧美| 欧美日韩精品高清| 久久久久久久久蜜桃| 国产精品免费视频网站| 亚洲永久精品大片| 日韩av中文在线观看| 国产一区二区美女| 91视视频在线观看入口直接观看www | 国产精品另类一区| 亚洲一区二区三区爽爽爽爽爽 | 国产成人精品亚洲午夜麻豆| 91麻豆国产福利在线观看| 在线播放欧美女士性生活| 久久一留热品黄| 亚洲美女少妇撒尿| 蓝色福利精品导航| 91丝袜国产在线播放| 日韩免费高清视频| ...av二区三区久久精品| 午夜精品视频在线观看| 国产黑丝在线一区二区三区| 在线欧美日韩精品| 欧美不卡激情三级在线观看| 亚洲免费av高清| 国产中文字幕一区| 欧美日韩一区精品| 中文在线一区二区| 免费不卡在线观看| 91小视频免费看| 日韩精品一区二区三区视频播放 | 国产成人亚洲精品青草天美| 欧美三区在线视频| 国产精品视频九色porn| 青草国产精品久久久久久| av在线不卡免费看| 亚洲精品一区二区三区精华液| 亚洲激情综合网| 成人av在线电影| 久久久噜噜噜久久中文字幕色伊伊| 天天操天天色综合| 色婷婷av一区二区| 国产精品久久久久一区二区三区共| 丝袜美腿亚洲综合| 日本伦理一区二区| 中文字幕在线视频一区| 久久精品国产精品亚洲综合| 欧美主播一区二区三区美女| 亚洲国产高清在线观看视频| 久久精品久久综合| 欧美丰满高潮xxxx喷水动漫| 亚洲欧美一区二区三区国产精品| 韩国v欧美v日本v亚洲v| 日韩欧美一区二区视频| 亚洲高清在线精品| 欧美色视频一区| 亚洲精品成人精品456| 丁香五精品蜜臀久久久久99网站| 久久久久综合网| 国产一区在线观看视频| 26uuu亚洲| 久久不见久久见免费视频1| 91精品黄色片免费大全| 亚洲高清视频中文字幕| 91久久精品网| 亚洲最大成人网4388xx| 色婷婷av一区二区三区软件| 亚洲欧美日本在线| 色吊一区二区三区| 亚洲一区二区三区四区在线观看| 91丨porny丨户外露出| 亚洲精品一二三四区| 91精品福利在线| 天天色综合天天| 日韩一区二区在线看片| 蜜桃久久av一区| 2017欧美狠狠色| 成人免费av网站| 成人欧美一区二区三区视频网页 | 免费三级欧美电影| 日韩午夜电影av| 国产最新精品精品你懂的| 久久综合色之久久综合| 国产成人啪午夜精品网站男同| 国产午夜亚洲精品午夜鲁丝片| 国产精品1区2区3区| 中文字幕在线免费不卡| 色哦色哦哦色天天综合| 一区二区三区美女视频| 欧美精品久久99久久在免费线| 欧美aⅴ一区二区三区视频| 在线播放91灌醉迷j高跟美女 | 综合色中文字幕| 欧美日韩综合不卡| 久久se这里有精品| 中文字幕欧美日韩一区| 色综合中文字幕国产 | 中文字幕永久在线不卡| 欧美在线小视频| 久久国产综合精品|