當前位置: 首頁>>代碼示例>>Java>>正文


Java Version.LATEST屬性代碼示例

本文整理匯總了Java中org.apache.lucene.util.Version.LATEST屬性的典型用法代碼示例。如果您正苦於以下問題:Java Version.LATEST屬性的具體用法?Java Version.LATEST怎麽用?Java Version.LATEST使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.apache.lucene.util.Version的用法示例。


在下文中一共展示了Version.LATEST屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: DutchAnalyzer

public DutchAnalyzer(CharArraySet stopwords){
  this(Version.LATEST, stopwords);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:3,代碼來源:DutchAnalyzer.java

示例2: ComplexPhraseQueryParser

public ComplexPhraseQueryParser(String f, Analyzer a) {
  this(Version.LATEST, f, a);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:3,代碼來源:ComplexPhraseQueryParser.java

示例3: CompoundWordTokenFilterBase

protected CompoundWordTokenFilterBase(TokenStream input, CharArraySet dictionary, boolean onlyLongestMatch) {
  this(Version.LATEST, input,dictionary,onlyLongestMatch);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:3,代碼來源:CompoundWordTokenFilterBase.java

示例4: ThaiWordFilter

/** Creates a new ThaiWordFilter with the specified match version. */
public ThaiWordFilter(TokenStream input) {
  this(Version.LATEST, input);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:4,代碼來源:ThaiWordFilter.java

示例5: AnalyzingQueryParser

public AnalyzingQueryParser(String field, Analyzer analyzer) {
  this(Version.LATEST, field, analyzer);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:3,代碼來源:AnalyzingQueryParser.java

示例6: StandardTokenizer

/**
 * Creates a new StandardTokenizer with a given {@link org.apache.lucene.util.AttributeFactory} 
 */
public StandardTokenizer(AttributeFactory factory, Reader input) {
  this(Version.LATEST, factory, input);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:6,代碼來源:StandardTokenizer.java

示例7: LengthFilter

/**
 * Create a new {@link LengthFilter}. This will filter out tokens whose
 * {@link CharTermAttribute} is either too short ({@link CharTermAttribute#length()}
 * < min) or too long ({@link CharTermAttribute#length()} > max).
 * @param in      the {@link TokenStream} to consume
 * @param min     the minimum length
 * @param max     the maximum length
 */
public LengthFilter(TokenStream in, int min, int max) {
  this(Version.LATEST, in, min, max);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:11,代碼來源:LengthFilter.java

示例8: KeepWordFilter

/**
 * Create a new {@link KeepWordFilter}.
 * <p><b>NOTE</b>: The words set passed to this constructor will be directly
 * used by this filter and should not be modified.
 * @param in      the {@link TokenStream} to consume
 * @param words   the words to keep
 */
public KeepWordFilter(TokenStream in, CharArraySet words) {
  this(Version.LATEST, in, words);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:10,代碼來源:KeepWordFilter.java

示例9: MultiFieldQueryParser

/**
 * Creates a MultiFieldQueryParser. 
 * Allows passing of a map with term to Boost, and the boost to apply to each term.
 *
 * <p>It will, when parse(String query)
 * is called, construct a query like this (assuming the query consists of
 * two terms and you specify the two fields <code>title</code> and <code>body</code>):</p>
 * 
 * <code>
 * (title:term1 body:term1) (title:term2 body:term2)
 * </code>
 *
 * <p>When setDefaultOperator(AND_OPERATOR) is set, the result will be:</p>
 *  
 * <code>
 * +(title:term1 body:term1) +(title:term2 body:term2)
 * </code>
 * 
 * <p>When you pass a boost (title=>5 body=>10) you can get </p>
 * 
 * <code>
 * +(title:term1^5.0 body:term1^10.0) +(title:term2^5.0 body:term2^10.0)
 * </code>
 *
 * <p>In other words, all the query's terms must appear, but it doesn't matter in
 * what fields they appear.</p>
 */
public MultiFieldQueryParser(String[] fields, Analyzer analyzer, Map<String,Float> boosts) {
  this(Version.LATEST, fields, analyzer, boosts);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:30,代碼來源:MultiFieldQueryParser.java

示例10: Lucene43EdgeNGramTokenizer

/**
 * Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
 *
 * @param factory {@link org.apache.lucene.util.AttributeFactory} to use
 * @param input {@link Reader} holding the input to be tokenized
 * @param minGram the smallest n-gram to generate
 * @param maxGram the largest n-gram to generate
 */
public Lucene43EdgeNGramTokenizer(AttributeFactory factory, Reader input, int minGram, int maxGram) {
  this(Version.LATEST, factory, input, Side.FRONT, minGram, maxGram);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:11,代碼來源:Lucene43EdgeNGramTokenizer.java

示例11: EdgeNGramTokenizer

/**
 * Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
 *
 * @param input {@link Reader} holding the input to be tokenized
 * @param minGram the smallest n-gram to generate
 * @param maxGram the largest n-gram to generate
 */
public EdgeNGramTokenizer(Reader input, int minGram, int maxGram) {
  super(Version.LATEST, input, minGram, maxGram, true);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:10,代碼來源:EdgeNGramTokenizer.java

示例12: NGramTokenFilter

/**
 * Creates NGramTokenFilter with given min and max n-grams.
 * @param input {@link TokenStream} holding the input to be tokenized
 * @param minGram the smallest n-gram to generate
 * @param maxGram the largest n-gram to generate
 */
public NGramTokenFilter(TokenStream input, int minGram, int maxGram) {
  this(Version.LATEST, input, minGram, maxGram);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:9,代碼來源:NGramTokenFilter.java

示例13: TypeTokenFilter

/**
 * Create a new {@link TypeTokenFilter}.
 * @param input        the {@link TokenStream} to consume
 * @param stopTypes    the types to filter
 * @param useWhiteList if true, then tokens whose type is in stopTypes will
 *                     be kept, otherwise they will be filtered out
 */
public TypeTokenFilter(TokenStream input, Set<String> stopTypes, boolean useWhiteList) {
  this(Version.LATEST, input, stopTypes, useWhiteList);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:10,代碼來源:TypeTokenFilter.java

示例14: ReverseStringFilter

/**
 * Create a new ReverseStringFilter that reverses and marks all tokens in the
 * supplied {@link TokenStream}.
 * <p>
 * The reversed tokens will be prepended (marked) by the <code>marker</code>
 * character.
 * </p>
 *
 * @param in {@link TokenStream} to filter
 * @param marker A character used to mark reversed tokens
 */
public ReverseStringFilter(TokenStream in, char marker) {
  super(in);
  this.matchVersion = Version.LATEST;
  this.marker = marker;
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:16,代碼來源:ReverseStringFilter.java

示例15: NGramTokenizer

/**
 * Creates NGramTokenizer with given min and max n-grams.
 * @param input {@link Reader} holding the input to be tokenized
 * @param minGram the smallest n-gram to generate
 * @param maxGram the largest n-gram to generate
 */
public NGramTokenizer(Reader input, int minGram, int maxGram) {
  this(Version.LATEST, input, minGram, maxGram, false);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:9,代碼來源:NGramTokenizer.java


注:本文中的org.apache.lucene.util.Version.LATEST屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。