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

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

?? field.java

?? lucene完整源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package org.apache.lucene.document;/** * Copyright 2004 The Apache Software Foundation * * Licensed 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. */import org.apache.lucene.index.IndexReader;import org.apache.lucene.search.Hits;import org.apache.lucene.search.Similarity;import org.apache.lucene.util.Parameter;import java.io.Reader;import java.io.Serializable;/**  A field is a section of a Document.  Each field has two parts, a name and a  value.  Values may be free text, provided as a String or as a Reader, or they  may be atomic keywords, which are not further processed.  Such keywords may  be used to represent dates, urls, etc.  Fields are optionally stored in the  index, so that they may be returned with hits on the document.  */public final class Field implements Serializable {  private String name = "body";    // the one and only data object for all different kind of field values  private Object fieldsData = null;    private boolean storeTermVector = false;  private boolean storeOffsetWithTermVector = false;   private boolean storePositionWithTermVector = false;  private boolean omitNorms = false;  private boolean isStored = false;  private boolean isIndexed = true;  private boolean isTokenized = true;  private boolean isBinary = false;  private boolean isCompressed = false;    private float boost = 1.0f;    /** Specifies whether and how a field should be stored. */  public static final class Store extends Parameter implements Serializable {    private Store(String name) {      super(name);    }    /** Store the original field value in the index in a compressed form. This is     * useful for long documents and for binary valued fields.     */    public static final Store COMPRESS = new Store("COMPRESS");    /** Store the original field value in the index. This is useful for short texts     * like a document's title which should be displayed with the results. The     * value is stored in its original form, i.e. no analyzer is used before it is     * stored.     */    public static final Store YES = new Store("YES");    /** Do not store the field value in the index. */    public static final Store NO = new Store("NO");  }  /** Specifies whether and how a field should be indexed. */  public static final class Index extends Parameter implements Serializable {    private Index(String name) {      super(name);    }    /** Do not index the field value. This field can thus not be searched,     * but one can still access its contents provided it is     * {@link Field.Store stored}. */    public static final Index NO = new Index("NO");    /** Index the field's value so it can be searched. An Analyzer will be used     * to tokenize and possibly further normalize the text before its     * terms will be stored in the index. This is useful for common text.     */    public static final Index TOKENIZED = new Index("TOKENIZED");    /** Index the field's value without using an Analyzer, so it can be searched.     * As no analyzer is used the value will be stored as a single term. This is     * useful for unique Ids like product numbers.     */    public static final Index UN_TOKENIZED = new Index("UN_TOKENIZED");    /** Index the field's value without an Analyzer, and disable     * the storing of norms.  No norms means that index-time boosting     * and field length normalization will be disabled.  The benefit is     * less memory usage as norms take up one byte per indexed field     * for every document in the index.     */    public static final Index NO_NORMS = new Index("NO_NORMS");  }  /** Specifies whether and how a field should have term vectors. */  public static final class TermVector  extends Parameter implements Serializable {        private TermVector(String name) {      super(name);    }        /** Do not store term vectors.      */    public static final TermVector NO = new TermVector("NO");        /** Store the term vectors of each document. A term vector is a list     * of the document's terms and their number of occurences in that document. */    public static final TermVector YES = new TermVector("YES");        /**     * Store the term vector + token position information     *      * @see #YES     */     public static final TermVector WITH_POSITIONS = new TermVector("WITH_POSITIONS");        /**     * Store the term vector + Token offset information     *      * @see #YES     */     public static final TermVector WITH_OFFSETS = new TermVector("WITH_OFFSETS");        /**     * Store the term vector + Token position and offset information     *      * @see #YES     * @see #WITH_POSITIONS     * @see #WITH_OFFSETS     */     public static final TermVector WITH_POSITIONS_OFFSETS = new TermVector("WITH_POSITIONS_OFFSETS");  }    /** 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 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 Similarity#lengthNorm(String,int)}, and   * rounded by {@link 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.   *   * @see Document#setBoost(float)   * @see Similarity#lengthNorm(String, int)   * @see Similarity#encodeNorm(float)   */  public void setBoost(float boost) {    this.boost = boost;  }  /** 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 IndexReader#document(int)} and   * {@link Hits#doc(int)} may thus not have the same value present as when   * this field was indexed.   *   * @see #setBoost(float)   */  public float getBoost() {    return boost;  }  /** Returns the name of the field as an interned string.   * For example "date", "title", "body", ...   */  public String name()    { return name; }  /** The value of the field as a String, or null.  If null, the Reader value   * or binary value is used.  Exactly one of stringValue(), readerValue(), and   * binaryValue() must be set. */  public String stringValue()   { return fieldsData instanceof String ? (String)fieldsData : null; }    /** The value of the field as a Reader, or null.  If null, the String value   * or binary value is  used.  Exactly one of stringValue(), readerValue(),   * and binaryValue() must be set. */  public Reader readerValue()   { return fieldsData instanceof Reader ? (Reader)fieldsData : null; }    /** The value of the field in Binary, or null.  If null, the Reader or   * String value is used.  Exactly one of stringValue(), readerValue() and   * binaryValue() must be set. */  public byte[] binaryValue()   { return fieldsData instanceof byte[] ? (byte[])fieldsData : null; }    /**   * Create a field by specifying its name, value and how it will   * be saved in the index. Term vectors will not be stored in the index.   *    * @param name The name of the field   * @param value The string to process   * @param store Whether <code>value</code> should be stored in the index   * @param index Whether the field should be indexed, and if so, if it should   *  be tokenized before indexing    * @throws NullPointerException if name or value is <code>null</code>   * @throws IllegalArgumentException if the field is neither stored nor indexed    */  public Field(String name, String value, Store store, Index index) {    this(name, value, store, index, TermVector.NO);  }    /**   * Create a field by specifying its name, value and how it will   * be saved in the index.   *    * @param name The name of the field   * @param value The string to process   * @param store Whether <code>value</code> should be stored in the index   * @param index Whether the field should be indexed, and if so, if it should   *  be tokenized before indexing    * @param termVector Whether term vector should be stored   * @throws NullPointerException if name or value is <code>null</code>   * @throws IllegalArgumentException in any of the following situations:   * <ul>    *  <li>the field is neither stored nor indexed</li>    *  <li>the field is not indexed but termVector is <code>TermVector.YES</code></li>   * </ul>    */   public Field(String name, String value, Store store, Index index, TermVector termVector) {    if (name == null)      throw new NullPointerException("name cannot be null");    if (value == null)      throw new NullPointerException("value cannot be null");    if (name.length() == 0 && value.length() == 0)      throw new IllegalArgumentException("name and value cannot both be empty");    if (index == Index.NO && store == Store.NO)      throw new IllegalArgumentException("it doesn't make sense to have a field that "         + "is neither indexed nor stored");    if (index == Index.NO && termVector != TermVector.NO)      throw new IllegalArgumentException("cannot store term vector information "         + "for a field that is not indexed");              this.name = name.intern();        // field names are interned    this.fieldsData = value;    if (store == Store.YES){      this.isStored = true;      this.isCompressed = false;    }    else if (store == Store.COMPRESS) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲成年网址在线观看| 午夜不卡在线视频| 欧美最猛性xxxxx直播| 美女视频一区二区三区| 中文字幕综合网| 中文字幕电影一区| 国产农村妇女精品| 中文成人综合网| 国产三级一区二区三区| 午夜精品一区二区三区电影天堂| 成人国产一区二区三区精品| 国产精品三级电影| 国产精品一区二区久激情瑜伽| 国产精品综合av一区二区国产馆| 中文天堂在线一区| 色婷婷国产精品| 欧美精品久久一区| 国产一区二区三区久久久| 国产福利一区在线| 色激情天天射综合网| 欧美乱妇20p| 久久91精品久久久久久秒播| 国产乱码精品1区2区3区| 日韩视频免费观看高清完整版| 在线播放欧美女士性生活| 另类专区欧美蜜桃臀第一页| 99免费精品在线观看| 精品国产一区二区精华| 亚洲婷婷综合久久一本伊一区| 91电影在线观看| 国产乱色国产精品免费视频| 人人狠狠综合久久亚洲| 国产成人啪免费观看软件| 亚洲国产视频a| 国产亚洲精品bt天堂精选| 91在线视频18| 色琪琪一区二区三区亚洲区| 日韩欧美中文一区| 久色婷婷小香蕉久久| 亚洲一区二区三区三| 国产精品自产自拍| av在线综合网| 亚洲国产婷婷综合在线精品| 亚洲美女区一区| 亚洲综合一区二区三区| 国产成人丝袜美腿| 国产精品对白交换视频| 亚洲人被黑人高潮完整版| 99国产精品久久| 亚洲成人黄色影院| 国产精品一区二区无线| 欧美日韩精品一区二区在线播放| 国产精品亚洲第一区在线暖暖韩国| 日韩黄色免费网站| 久久久久97国产精华液好用吗| 成人av集中营| 欧洲人成人精品| 国产欧美综合在线观看第十页| 国产午夜精品一区二区| 亚洲欧美在线aaa| 91亚洲精品一区二区乱码| 国产精品每日更新| 亚洲特级片在线| 日韩不卡一区二区| 国产精品女人毛片| 亚洲精品久久久蜜桃| 日韩一区二区免费视频| 国产视频一区在线播放| 无吗不卡中文字幕| 国产剧情一区在线| 欧美精品一二三区| 亚洲女与黑人做爰| 国产一区二区在线观看视频| 在线看国产一区| 久久久久国产精品人| 亚洲欧美日韩中文播放| aaa国产一区| 日本韩国精品一区二区在线观看| 国产精品久久久久久户外露出| 日韩精品电影在线观看| 午夜精品免费在线观看| 国产欧美精品国产国产专区| 亚洲色图视频免费播放| 久久国产夜色精品鲁鲁99| 26uuuu精品一区二区| 综合久久国产九一剧情麻豆| 一区二区三区波多野结衣在线观看 | 欧美午夜精品免费| 中文字幕亚洲精品在线观看| 在线91免费看| 一区二区三区波多野结衣在线观看| 日韩免费观看高清完整版| 国产精一品亚洲二区在线视频| 一本一道波多野结衣一区二区| 中文字幕日韩一区| 成人在线综合网| 国产福利一区二区三区| www欧美成人18+| 韩国成人在线视频| 国产精品77777竹菊影视小说| 精品国产亚洲一区二区三区在线观看| 精品在线观看免费| 国产午夜一区二区三区| 不卡一卡二卡三乱码免费网站| 国产欧美日韩视频在线观看| 日本高清成人免费播放| 一区二区三区电影在线播| 7777精品伊人久久久大香线蕉超级流畅| 亚洲欧美电影院| 日韩免费高清视频| 91免费在线看| 国产精品99久久久久久久女警| 国产精品久久久久一区| 91精品在线免费观看| 国产成人综合网站| 日韩成人午夜电影| 偷拍一区二区三区| 国产偷国产偷精品高清尤物| 欧美大胆一级视频| 美国十次综合导航| 白白色亚洲国产精品| 亚洲免费观看高清完整版在线观看熊 | 成人国产亚洲欧美成人综合网| 欧美96一区二区免费视频| 91麻豆国产福利精品| 一区二区三区日韩| 精品成人私密视频| 亚洲天堂av一区| 伊人性伊人情综合网| 亚洲精品久久久蜜桃| 午夜免费久久看| 免费成人在线网站| 激情图区综合网| a美女胸又www黄视频久久| 99riav一区二区三区| 在线观看一区日韩| 欧美精品一二三区| 久久综合色8888| 中文字幕佐山爱一区二区免费| 亚洲精品菠萝久久久久久久| 亚洲成人免费在线观看| 免费人成在线不卡| 国产成人精品免费看| 色94色欧美sute亚洲线路二| 欧美午夜精品久久久久久超碰| 欧美人与禽zozo性伦| 精品国产免费人成电影在线观看四季| 精品国产自在久精品国产| 国产精品色哟哟| 亚洲午夜视频在线观看| 美女脱光内衣内裤视频久久影院| 国产高清亚洲一区| 欧美性videosxxxxx| 精品国产乱码久久久久久免费| 国产精品区一区二区三区| 亚洲综合小说图片| 国产尤物一区二区在线 | 亚洲第四色夜色| 国产高清视频一区| 欧美蜜桃一区二区三区| 国产欧美日韩视频在线观看| 亚洲国产精品自拍| 国产成人精品亚洲日本在线桃色 | 欧美久久久久久久久中文字幕| 久久影音资源网| 亚洲va在线va天堂| 粉嫩在线一区二区三区视频| 一区二区高清在线| 国产电影一区在线| 欧美一区二区精品在线| 日韩一区二区三区视频在线| 国产精品毛片高清在线完整版| 天堂va蜜桃一区二区三区漫画版| 国产精品一区三区| 91麻豆精品国产91久久久 | 日韩精品一区二区在线| 亚洲综合免费观看高清完整版在线 | 国产电影一区在线| 日韩精品一区在线| 亚洲超碰精品一区二区| 94色蜜桃网一区二区三区| 久久综合色鬼综合色| 麻豆国产欧美日韩综合精品二区| 欧洲av在线精品| 亚洲欧洲日产国产综合网| 国产精品亚洲午夜一区二区三区 | 国产午夜精品理论片a级大结局| 日韩精品一区二区三区视频在线观看| 亚洲男人电影天堂| 91福利视频网站| 亚洲欧洲综合另类在线| 欧美性猛交xxxx乱大交退制版| 一卡二卡欧美日韩| 国产91丝袜在线观看| 国产精品卡一卡二卡三| 91麻豆国产香蕉久久精品| 亚洲电影在线免费观看| 欧美一级一级性生活免费录像| 99精品视频一区二区| 久久精品在这里|