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

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

?? query.java

?? lucene-2.4.0 是一個全文收索的工具包
?? JAVA
字號:
package org.apache.lucene.search;/** * 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. */import java.io.IOException;import java.util.HashSet;import java.util.Iterator;import java.util.Set;import org.apache.lucene.index.IndexReader;/** The abstract base class for queries.    <p>Instantiable subclasses are:    <ul>    <li> {@link TermQuery}    <li> {@link MultiTermQuery}    <li> {@link BooleanQuery}    <li> {@link WildcardQuery}    <li> {@link PhraseQuery}    <li> {@link PrefixQuery}    <li> {@link MultiPhraseQuery}    <li> {@link FuzzyQuery}    <li> {@link RangeQuery}    <li> {@link org.apache.lucene.search.spans.SpanQuery}    </ul>    <p>A parser for queries is contained in:    <ul>    <li>{@link org.apache.lucene.queryParser.QueryParser QueryParser}    </ul>*/public abstract class Query implements java.io.Serializable, Cloneable {  private float boost = 1.0f;                     // query boost factor  /** Sets the boost for this query clause to <code>b</code>.  Documents   * matching this clause will (in addition to the normal weightings) have   * their score multiplied by <code>b</code>.   */  public void setBoost(float b) { boost = b; }  /** Gets the boost for this clause.  Documents matching   * this clause will (in addition to the normal weightings) have their score   * multiplied by <code>b</code>.   The boost is 1.0 by default.   */  public float getBoost() { return boost; }  /** Prints a query to a string, with <code>field</code> assumed to be the    * default field and omitted.   * <p>The representation used is one that is supposed to be readable   * by {@link org.apache.lucene.queryParser.QueryParser QueryParser}. However,   * there are the following limitations:   * <ul>   *  <li>If the query was created by the parser, the printed   *  representation may not be exactly what was parsed. For example,   *  characters that need to be escaped will be represented without   *  the required backslash.</li>   * <li>Some of the more complicated queries (e.g. span queries)   *  don't have a representation that can be parsed by QueryParser.</li>   * </ul>   */  public abstract String toString(String field);  /** Prints a query to a string. */  public String toString() {    return toString("");  }  /** Expert: Constructs an appropriate Weight implementation for this query.   *   * <p>Only implemented by primitive queries, which re-write to themselves.   */  protected Weight createWeight(Searcher searcher) throws IOException {    throw new UnsupportedOperationException();  }  /** Expert: Constructs and initializes a Weight for a top-level query. */  public Weight weight(Searcher searcher)    throws IOException {    Query query = searcher.rewrite(this);    Weight weight = query.createWeight(searcher);    float sum = weight.sumOfSquaredWeights();    float norm = getSimilarity(searcher).queryNorm(sum);    weight.normalize(norm);    return weight;  }  /** Expert: called to re-write queries into primitive queries. For example,   * a PrefixQuery will be rewritten into a BooleanQuery that consists   * of TermQuerys.   */  public Query rewrite(IndexReader reader) throws IOException {    return this;  }  /** Expert: called when re-writing queries under MultiSearcher.   *   * Create a single query suitable for use by all subsearchers (in 1-1   * correspondence with queries). This is an optimization of the OR of   * all queries. We handle the common optimization cases of equal   * queries and overlapping clauses of boolean OR queries (as generated   * by MultiTermQuery.rewrite() and RangeQuery.rewrite()).   * Be careful overriding this method as queries[0] determines which   * method will be called and is not necessarily of the same type as   * the other queries.  */  public Query combine(Query[] queries) {    HashSet uniques = new HashSet();    for (int i = 0; i < queries.length; i++) {      Query query = queries[i];      BooleanClause[] clauses = null;      // check if we can split the query into clauses      boolean splittable = (query instanceof BooleanQuery);      if(splittable){        BooleanQuery bq = (BooleanQuery) query;        splittable = bq.isCoordDisabled();        clauses = bq.getClauses();        for (int j = 0; splittable && j < clauses.length; j++) {          splittable = (clauses[j].getOccur() == BooleanClause.Occur.SHOULD);        }      }      if(splittable){        for (int j = 0; j < clauses.length; j++) {          uniques.add(clauses[j].getQuery());        }      } else {        uniques.add(query);      }    }    // optimization: if we have just one query, just return it    if(uniques.size() == 1){        return (Query)uniques.iterator().next();    }    Iterator it = uniques.iterator();    BooleanQuery result = new BooleanQuery(true);    while (it.hasNext())      result.add((Query) it.next(), BooleanClause.Occur.SHOULD);    return result;  }  /**   * Expert: adds all terms occuring in this query to the terms set. Only   * works if this query is in its {@link #rewrite rewritten} form.   *    * @throws UnsupportedOperationException if this query is not yet rewritten   */  public void extractTerms(Set terms) {    // needs to be implemented by query subclasses    throw new UnsupportedOperationException();  }  /** Expert: merges the clauses of a set of BooleanQuery's into a single   * BooleanQuery.   *   *<p>A utility for use by {@link #combine(Query[])} implementations.   */  public static Query mergeBooleanQueries(Query[] queries) {    HashSet allClauses = new HashSet();    for (int i = 0; i < queries.length; i++) {      BooleanClause[] clauses = ((BooleanQuery)queries[i]).getClauses();      for (int j = 0; j < clauses.length; j++) {        allClauses.add(clauses[j]);      }    }    boolean coordDisabled =      queries.length==0? false : ((BooleanQuery)queries[0]).isCoordDisabled();    BooleanQuery result = new BooleanQuery(coordDisabled);    Iterator i = allClauses.iterator();    while (i.hasNext()) {      result.add((BooleanClause)i.next());    }    return result;  }  /** Expert: Returns the Similarity implementation to be used for this query.   * Subclasses may override this method to specify their own Similarity   * implementation, perhaps one that delegates through that of the Searcher.   * By default the Searcher's Similarity implementation is returned.*/  public Similarity getSimilarity(Searcher searcher) {    return searcher.getSimilarity();  }  /** Returns a clone of this query. */  public Object clone() {    try {      return (Query)super.clone();    } catch (CloneNotSupportedException e) {      throw new RuntimeException("Clone not supported: " + e.getMessage());    }  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆91精品91久久久的内涵| 一区二区三区四区视频精品免费| 91超碰这里只有精品国产| 91免费看`日韩一区二区| av成人动漫在线观看| 成人精品免费视频| 99国产精品视频免费观看| 99精品欧美一区二区三区小说 | 亚洲国产乱码最新视频| 艳妇臀荡乳欲伦亚洲一区| 亚洲黄色录像片| 午夜日韩在线电影| 久久av老司机精品网站导航| 国产伦精品一区二区三区在线观看| 国产精品一区专区| 成人av集中营| 欧美日韩综合在线免费观看| 日韩欧美国产系列| 久久精品免费在线观看| 亚洲欧洲在线观看av| 亚洲一二三四区| 麻豆成人久久精品二区三区小说| 国产河南妇女毛片精品久久久| eeuss鲁片一区二区三区在线观看| 色婷婷精品大视频在线蜜桃视频| 欧美丝袜丝交足nylons图片| 精品女同一区二区| 亚洲裸体xxx| 日韩电影网1区2区| 国产在线精品一区二区夜色 | 久久青草欧美一区二区三区| 国产精品入口麻豆原神| 亚洲午夜一区二区| 久久精品国产久精国产爱| 99精品黄色片免费大全| 欧美一区二区三区在线观看| 国产精品热久久久久夜色精品三区| 亚洲综合视频网| 国产精品综合在线视频| 欧美在线视频你懂得| 久久久不卡影院| 亚洲成人资源网| 国产激情一区二区三区四区| 3d成人h动漫网站入口| 欧美国产1区2区| 奇米影视7777精品一区二区| 色综合久久久久综合| 国产视频在线观看一区二区三区| 婷婷夜色潮精品综合在线| 成人黄色综合网站| 26uuu久久综合| 日本视频一区二区三区| 在线免费观看日本一区| 国产精品亲子乱子伦xxxx裸| 狠狠色狠狠色合久久伊人| 欧美精品久久久久久久多人混战 | 日本欧美在线看| 色屁屁一区二区| 中文字幕中文在线不卡住| 国产乱人伦精品一区二区在线观看| 精品视频全国免费看| 一区二区三区成人在线视频| 99精品久久只有精品| 中文在线一区二区| 懂色av一区二区三区免费观看| 精品国产91九色蝌蚪| 麻豆91在线看| 欧美成人艳星乳罩| 蜜桃精品在线观看| 日韩欧美123| 精品亚洲成av人在线观看| 日韩一区和二区| 日韩影院免费视频| 欧美欧美午夜aⅴ在线观看| 亚洲综合男人的天堂| 91成人国产精品| 亚洲人成网站影音先锋播放| 日本精品视频一区二区| 一区二区在线观看视频在线观看| 日本高清无吗v一区| 亚洲精品成人在线| 欧美日韩精品免费观看视频| 日日夜夜一区二区| 91精品免费观看| 黑人精品欧美一区二区蜜桃| 欧美国产一区二区| 成人激情小说乱人伦| 亚洲天堂网中文字| 在线免费观看日本欧美| 欧美bbbbb| 国产视频在线观看一区二区三区| 成人午夜私人影院| 亚洲欧美日韩在线不卡| 欧美日韩二区三区| 国产乱一区二区| 1024精品合集| 91麻豆精品国产自产在线 | 国产 日韩 欧美大片| 国产精品婷婷午夜在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产激情一区二区三区| 亚洲精品亚洲人成人网| 欧美一级欧美三级| 高清久久久久久| 韩国av一区二区三区| 国产精品每日更新在线播放网址 | 图片区小说区国产精品视频 | 成人午夜电影久久影院| 亚洲精品成人在线| 精品99一区二区| 色狠狠av一区二区三区| 国产在线观看一区二区| 夜色激情一区二区| 久久久三级国产网站| 欧美日韩免费在线视频| 成人网页在线观看| 午夜精品久久久久久久久久| 中文字幕第一区二区| 69p69国产精品| 99久久精品费精品国产一区二区| 日韩一区欧美二区| 亚洲人成精品久久久久| 欧美精品一区二区久久婷婷 | 精品久久久久久最新网址| 在线免费观看日本一区| 高清免费成人av| 九九九精品视频| 视频一区二区不卡| 亚洲你懂的在线视频| 久久久久久麻豆| 欧美成人猛片aaaaaaa| 欧美日韩不卡在线| 91视频观看免费| 成人美女视频在线观看| 免费在线观看日韩欧美| 性感美女久久精品| 亚洲免费观看高清在线观看| 中文字幕巨乱亚洲| 久久久电影一区二区三区| 精品日韩欧美在线| 日韩亚洲欧美在线| 日韩视频一区在线观看| 欧美一级久久久| 91精品欧美福利在线观看| 欧美丰满美乳xxx高潮www| 欧美三级三级三级| 欧美三级日韩在线| 欧美日韩国产精品成人| 精品视频在线看| 欧美人牲a欧美精品| 欧美日韩成人综合| 91精品国产91综合久久蜜臀| 9191成人精品久久| 91精品国产高清一区二区三区蜜臀| 69p69国产精品| 欧美tk—视频vk| 久久精品亚洲一区二区三区浴池| 精品第一国产综合精品aⅴ| 久久久久久久久久电影| 国产精品每日更新| 亚洲美女区一区| 视频一区二区三区入口| 久久av资源站| 成人动漫一区二区| 9l国产精品久久久久麻豆| 色综合久久88色综合天天6 | 日韩二区三区四区| 美女网站色91| 国产成人无遮挡在线视频| 国产.欧美.日韩| 91论坛在线播放| 91精品国产免费| 亚洲国产精品激情在线观看 | 香蕉成人伊视频在线观看| 蜜臀av一区二区在线免费观看| 韩国成人福利片在线播放| 高清成人在线观看| 欧美中文字幕一区二区三区亚洲| 正在播放亚洲一区| 久久精品人人爽人人爽| 亚洲激情一二三区| 另类小说一区二区三区| 成人黄色小视频| 欧美日韩精品三区| 国产欧美日韩视频一区二区| 一区二区三区欧美在线观看| 美日韩黄色大片| 色综合咪咪久久| 欧美变态凌虐bdsm| 亚洲天堂免费在线观看视频| 久久99国内精品| 色噜噜狠狠成人网p站| 精品久久国产97色综合| 1区2区3区欧美| 久久66热re国产| 欧美视频日韩视频| 亚洲欧美影音先锋| 蓝色福利精品导航| 欧美喷水一区二区| 亚洲美女屁股眼交3|