Uses of Class org.apache.lucene.index.Term

Uses in package org.apache.lucene.search

Constructors with parameter type org.apache.lucene.index.Term

FuzzyQuery.FuzzyQuery(Term term, float minimumSimilarity)
FuzzyQuery.FuzzyQuery(Term term, float minimumSimilarity, int prefixLength)
Create a new FuzzyQuery that will match terms with a similarity of at least minimumSimilarity to term.
Empty prefix and minSimilarity of 0.5f are used.
FuzzyTermEnum.FuzzyTermEnum(IndexReader reader, Term term, float minSimilarity)
This is the standard FuzzyTermEnum with an empty prefix.
FuzzyTermEnum.FuzzyTermEnum(IndexReader reader, Term term, float minSimilarity, int prefixLength)
Constructor for enumeration of all terms from specified reader which share a prefix of length prefixLength with term and which have a fuzzy similarity > minSimilarity.
Constructs a query for terms matching term.
Constructs a query for terms starting with prefix.
RangeQuery.RangeQuery(Term lowerTerm, Term upperTerm, boolean inclusive)
Constructs a query selecting all terms greater than lowerTerm but less than upperTerm.
Constructs a query for the term t.
Constructs a query for terms matching term.
Creates a new WildcardTermEnum.

Methods with parameter type org.apache.lucene.index.Term

void
Add a single term at the next position in the phrase.
void
Adds a term to the end of the query phrase.
void
PhraseQuery.add(Term term, int position)
Adds a term to the end of the query phrase.
void
Add multiple terms at the next position in the phrase.
void
PhrasePrefixQuery.add(Term[] terms, int position)
Allows to specify the relative position of terms within the phrase.
int
int
int
TODO: parallelize this one too
int
Expert: Returns the number of documents containing term.
int
Expert: Returns the number of documents containing term.
float
Similarity.idf(Term term, Searcher searcher)
Computes a score factor for a simple term.
boolean
Equality compare on the term
boolean
The termCompare method in FuzzyTermEnum uses Levenshtein distance to calculate the distance between the given term and the comparing term.
boolean

Methods with return type org.apache.lucene.index.Term

Term
Returns the lower term of this range query
Term
Returns the prefix of this query.
Term
Returns the pattern term.
Term
Returns the term of this query.
Term[]
Returns the set of terms in this phrase.
Term
Returns the upper term of this range query
Term
Returns the current Term in the enumeration.

Uses in package org.apache.lucene.search.spans

Constructors with parameter type org.apache.lucene.index.Term

Construct a SpanTermQuery matching the named term's spans.

Methods with return type org.apache.lucene.index.Term

Term
Return the term whose spans are matched.

Uses in package org.apache.lucene.index

Constructors with parameter type org.apache.lucene.index.Term

Creates a new MultipleTermPositions instance.

Methods with parameter type org.apache.lucene.index.Term

int
Compares two terms, returning an integer which is less than zero iff this term belongs after the argument, equal zero iff this term is equal to the argument, and greater than zero iff this term belongs after the argument.
int
Deletes all documents containing term.
int
int
Returns the number of documents containing the term t.
int
void
void
Describe seek method here.
void
Sets this to the data for a term.
boolean
Skips terms to the first beyond the current whose value is greater or equal to target.
TermDocs
Returns an enumeration of all the documents which contain term.
TermPositions
Returns an enumeration of all the documents which contain term.
TermEnum
TermEnum
Returns an enumeration of all terms after a given term.
TermEnum

Methods with return type org.apache.lucene.index.Term

Term
Term
Returns the current Term in the enumeration.

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.