Searched defs:term (Results 1 - 25 of 147) sorted by relevance

123456

/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/
H A DRawTermFilter.java31 * containing the provided term, disregarding deleted
42 private final Term term; field in class:RawTermFilter
44 public RawTermFilter(Term term) { argument
45 this.term = term;
60 final TermDocs td = segReader.rawTermDocs(term);
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/
H A DTermFreq.java23 public final BytesRef term; field in class:TermFreq
26 public TermFreq(String term, long v) { argument
27 this(new BytesRef(term), v);
30 public TermFreq(BytesRef term, long v) { argument
31 this.term = term;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermEnum.java25 <p>Term enumerations are always ordered by Term.compareTo(). Each term in
33 public abstract Term term(); method in class:TermEnum
H A DTermFreqVector.java20 /** Provides access to stored term vector of
34 * @return The number of terms in the term vector.
39 * @return An Array of term texts in ascending order.
44 /** Array of term frequencies. Locations of the array correspond one to one
47 * term occurs in the document or the document field.
52 /** Return an index in the term numbers array returned from
53 * <code>getTerms</code> at which the term with the specified
54 * <code>term</code> appears. If this term does not appear in the array,
57 public int indexOf(String term); argument
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DDrillDown.java32 * Creation of drill down term or query.
39 * @see #term(FacetIndexingParams, CategoryPath)
41 public static final Term term(FacetSearchParams sParams, CategoryPath path) { method in class:DrillDown
42 return term(sParams.getFacetIndexingParams(), path);
46 * Return a term for drilling down into a category.
48 public static final Term term(FacetIndexingParams iParams, CategoryPath path) { method in class:DrillDown
57 * @see #term(FacetSearchParams, CategoryPath)
65 return new TermQuery(term(iParams, paths[0]));
69 res.add(new TermQuery(term(iParams, cp)), Occur.MUST);
76 * @see #term(FacetSearchParam
[all...]
H A DPayloadIntDecodingIterator.java39 * // it means there are no payloads / documents associated with that term.
60 private final Term term; field in class:PayloadIntDecodingIterator
64 public PayloadIntDecodingIterator(IndexReader indexReader, Term term, IntDecoder decoder) argument
66 this(indexReader, term, decoder, new byte[1024]);
69 public PayloadIntDecodingIterator(IndexReader indexReader, Term term, IntDecoder decoder, argument
71 pi = new PayloadIterator(indexReader, term, buffer);
74 hashCode = indexReader.hashCode() ^ term.hashCode();
75 this.term = term;
90 return indexReader.equals(that.indexReader) && term
[all...]
H A DPayloadIterator.java27 * A utility class for iterating through a posting list of a given term and
42 public PayloadIterator(IndexReader indexReader, Term term) argument
44 this(indexReader, term, new byte[1024]);
47 public PayloadIterator(IndexReader indexReader, Term term, byte[] buffer) argument
50 this.tp = indexReader.termPositions(term);
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/
H A DWeightedSpanTerm.java26 * Lightweight class to hold term, weight, and positions used for scoring this
27 * term.
35 * @param term
37 public WeightedSpanTerm(float weight, String term) { argument
38 super(weight, term);
44 * @param term
47 public WeightedSpanTerm(float weight, String term, boolean positionSensitive) { argument
48 super(weight, term);
53 * Checks to see if this term is valid at <code>position</code>.
56 * to check against valid term position
[all...]
H A DWeightedTerm.java19 /** Lightweight class to hold term and a weight value used for scoring this term
24 String term; //stemmed form field in class:WeightedTerm
25 public WeightedTerm (float weight,String term) argument
28 this.term=term;
33 * @return the term value (stemmed)
37 return term;
41 * @return the weight associated with this term
49 * @param term th
51 setTerm(String term) argument
[all...]
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTermEnum.java41 private InstantiatedTerm term; field in class:InstantiatedTermEnum
51 term = reader.getIndex().getOrderedTerms()[nextTermIndex];
61 public Term term() { method in class:InstantiatedTermEnum
62 return term == null ? null : term.getTerm();
70 return term.getAssociatedDocuments().length;
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/misc/
H A DGetTermInfo.java28 * Utility to get document frequency and total number of occurrences (sum of the tf for each doc) of a term.
46 Term term = new Term(field, inputStr);
47 getTermInfo(dir,term);
50 public static void getTermInfo(Directory dir, Term term) throws Exception { argument
53 long totalTF = HighFreqTerms.getTotalTermFreq(reader, term);
55 term.field(), term.text(), totalTF, reader.docFreq(term));
61 + "java " + GetTermInfo.class.getName() + " <index dir> field term \n\n");
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DTermsFilter.java43 * Adds a term to the list of acceptable terms
44 * @param term
46 public void addTerm(Term term) argument
48 terms.add(term);
63 Term term = iter.next();
64 td.seek(term);
96 Term term = iter.next();
97 hash = 31 * hash + term.hashCode();
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/
H A DRegexTermEnum.java28 * specified regular expression term using the specified regular expression
31 * Term enumerations are always ordered by Term.compareTo(). Each term in
41 public RegexTermEnum(IndexReader reader, Term term, RegexCapabilities regexImpl) throws IOException { argument
43 field = term.field();
44 String text = term.text();
52 setEnum(reader.terms(new Term(term.field(), pre)));
56 protected final boolean termCompare(Term term) { argument
57 if (field == term.field()) {
58 String searchText = term.text();
69 // TODO: adjust difference based on distance of searchTerm.text() and term()
[all...]
H A DSpanRegexQuery.java33 public SpanRegexQuery(Term term) { argument
34 super(new RegexQuery(term));
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/
H A DBasicQueryFactory.java54 public TermQuery newTermQuery(Term term) throws TooManyBasicQueries { argument
56 return new TermQuery(term);
59 public SpanTermQuery newSpanTermQuery(Term term) throws TooManyBasicQueries { argument
61 return new SpanTermQuery(term);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DTermAttribute.java23 * The term text of a Token.
28 /** Returns the Token's term text.
37 public String term(); method in interface:TermAttribute
71 * the contents of the term buffer use
81 /** Return number of valid characters (length of the term)
85 /** Set number of valid characters (length of the term) in
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DFilteredTermEnum.java26 <p>Term enumerations are always ordered by Term.compareTo(). Each term in
29 /** the current term */
37 /** Equality compare on the term */
38 protected abstract boolean termCompare(Term term); argument
40 /** Equality measure on the term */
48 * it will be automatically positioned on the first matching term.
52 // Find the first term that matches
53 Term term = actualEnum.term();
54 if (term !
93 public Term term() { method in class:FilteredTermEnum
[all...]
H A DPrefixTermEnum.java27 * specified prefix filter term.
29 * Term enumerations are always ordered by Term.compareTo(). Each term in
59 protected boolean termCompare(Term term) { argument
60 if (term.field() == prefix.field() && term.text().startsWith(prefix.text())) {
H A DSingleTermEnum.java26 * Subclass of FilteredTermEnum for enumerating a single term.
28 * This can be used by {@link MultiTermQuery}s that need only visit one term,
39 * After calling the constructor the enumeration is already pointing to the term,
59 protected boolean termCompare(Term term) { argument
60 if (term.equals(singleTerm)) {
H A DTermRangeTermEnum.java31 * Term enumerations are always ordered by Term.compareTo(). Each term in
51 * (you can't select all but the first or last term without
52 * explicitly specifying the term to exclude.)
58 * The term text at the lower end of the range
60 * The term text at the upper end of the range
107 protected boolean termCompare(Term term) { argument
113 if (term != null && term.field() == field) { // interned comparison
114 if (!checkLower || null==lowerTermText || term.text().compareTo(lowerTermText) > 0) {
117 int compare = upperTermText.compareTo(term
[all...]
H A DWildcardQuery.java30 * a Wildcard term should not start with one of the wildcards <code>*</code> or
41 protected Term term; field in class:WildcardQuery
43 public WildcardQuery(Term term) { argument
44 this.term = term;
45 String text = term.text();
56 return new PrefixTermEnum(reader, term.createTerm(term.text()
57 .substring(0, term.text().indexOf('*'))));
66 * Returns the pattern term
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/miscellaneous/
H A DTestPrefixAndSuffixAwareTokenFilter.java42 private static Token createToken(String term, int start, int offset) argument
44 return new Token(term, start, offset);
H A DTestPrefixAwareTokenFilter.java53 private static Token createToken(String term, int start, int offset) argument
55 return new Token(term, start, offset);
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/enhancements/
H A DEnhancementsPayloadIterator.java51 * @param term
52 * The category term to iterate.
57 IndexReader indexReader, Term term) throws IOException {
58 super(indexReader, term);
55 EnhancementsPayloadIterator( List<CategoryEnhancement> enhancementsList, IndexReader indexReader, Term term) argument
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/params/
H A DCategoryListParams.java44 /** The default term used to store the facets information. */
47 private final Term term; field in class:CategoryListParams
61 * @param term who's payload hold the category-list.
63 public CategoryListParams(Term term) { argument
64 this.term = term;
67 this.hashCode = term.hashCode();
74 return term;
102 * Equality is defined by the 'term' that defines this category list.
119 // so at this point only directly term equalit
[all...]

Completed in 312 milliseconds

123456