Searched refs:term (Results 1 - 25 of 301) sorted by relevance

1234567891011>>

/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/
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...]
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...]
/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/search/spans/
H A DSpanTermQuery.java27 /** Matches spans containing a term. */
29 protected Term term; field in class:SpanTermQuery
31 /** Construct a SpanTermQuery matching the named term's spans. */
32 public SpanTermQuery(Term term) { this.term = term; } argument
34 /** Return the term whose spans are matched. */
35 public Term getTerm() { return term; }
38 public String getField() { return term.field(); }
42 terms.add(term);
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
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...]
H A DFuzzyQuery.java30 * length of 0 - in this case, *every* term will be enumerated and
48 protected Term term; field in class:FuzzyQuery
52 * of at least <code>minimumSimilarity</code> to <code>term</code>.
56 * @param term the term to search for
58 * between the query term and the matching terms. For example, for a
59 * <code>minimumSimilarity</code> of <code>0.5</code> a term of the same length
60 * as the query term is considered similar to the query term if the edit distance
61 * between both terms is less than <code>length(term)*0.
69 FuzzyQuery(Term term, float minimumSimilarity, int prefixLength, int maxExpansions) argument
95 FuzzyQuery(Term term, float minimumSimilarity, int prefixLength) argument
102 FuzzyQuery(Term term, float minimumSimilarity) argument
109 FuzzyQuery(Term term) argument
[all...]
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 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...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermVectorEntry.java24 private String term; field in class:TermVectorEntry
33 public TermVectorEntry(String field, String term, int frequency, TermVectorOffsetInfo[] offsets, int[] positions) { argument
35 this.term = term;
59 return term;
83 if (term != null ? !term.equals(that.term) : that.term != null) return false;
90 return (term !
[all...]
H A DTermInfosReader.java48 // Just adds term's ord to TermInfo
59 private final Term term; field in class:TermInfosReader.CloneableTerm
62 this.term = new Term(t.field(), t.text());
67 return new CloneableTerm(term);
73 return term.equals(other.term);
78 return term.hashCode();
154 /** Returns the number of term/value pairs in the set. */
170 TermInfo get(Term term) throws IOException { argument
171 BytesRef termBytesRef = new BytesRef(term
176 get(Term term, boolean mustSeekEnum, BytesRef termBytesRef) argument
278 getPosition(Term term) argument
302 terms(Term term) argument
[all...]
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 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...]
/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;
H A DInstantiatedTermDocumentInformation.java25 * There is one instance of this class per indexed term in a document
26 * and it contains the meta data about each occurrence of a term in a document.
70 private InstantiatedTerm term; field in class:InstantiatedTermDocumentInformation
76 public InstantiatedTermDocumentInformation(InstantiatedTerm term, InstantiatedDocument document, int[] termPositions, byte[][] payloads) { argument
77 this.term = term;
116 return term;
125 void setTerm(InstantiatedTerm term) { argument
126 this.term = term;
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DWildcardFilter.java37 protected final Term term; field in class:WildcardFilter
40 this.term = wildcardTerm;
43 public Term getTerm() { return term; }
48 new WildcardGenerator(term) {
58 return o instanceof WildcardFilter && ((WildcardFilter)o).term.equals(this.term);
63 return term.hashCode();
70 sb.append(term.toString());
89 Term term = enumerator.term();
[all...]
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/
H A DRegexQuery.java28 /** Implements the regular expression term search query.
36 private Term term; field in class:RegexQuery
38 /** Constructs a query for terms matching <code>term</code>. */
39 public RegexQuery(Term term) { argument
40 this.term = term;
43 public Term getTerm() { return term; }
63 return new RegexTermEnum(reader, term, regexImpl);
69 if (!term.field().equals(field)) {
70 buffer.append(term
[all...]
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...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestParallelTermEnum.java88 assertEquals("field1:brown", te.term().toString());
89 td.seek(te.term());
94 assertEquals("field1:fox", te.term().toString());
95 td.seek(te.term());
100 assertEquals("field1:jumps", te.term().toString());
101 td.seek(te.term());
106 assertEquals("field1:quick", te.term().toString());
107 td.seek(te.term());
112 assertEquals("field1:the", te.term().toString());
113 td.seek(te.term());
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestParallelTermEnum.java87 assertEquals("field1:brown", te.term().toString());
88 td.seek(te.term());
93 assertEquals("field1:fox", te.term().toString());
94 td.seek(te.term());
99 assertEquals("field1:jumps", te.term().toString());
100 td.seek(te.term());
105 assertEquals("field1:quick", te.term().toString());
106 td.seek(te.term());
111 assertEquals("field1:the", te.term().toString());
112 td.seek(te.term());
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/response/
H A DTermsResponse.java48 * Get's the term list for a given field
50 * @return the term list or null if no terms for the given field exist
61 private String term; field in class:TermsResponse.Term
64 public Term(String term, long frequency) { argument
65 this.term = term;
70 return term;
73 public void setTerm(String term) { argument
74 this.term = term;
[all...]
/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/solr/core/src/java/org/apache/solr/analysis/
H A DHyphenatedWordsFilter.java80 char[] term = termAttribute.buffer();
84 if (termLength > 0 && term[termLength - 1] == '-') {
90 hyphenated.append(term, 0, termLength - 1);
96 hyphenated.append(term, 0, termLength);
105 // the final term ends with a hyphen
130 * Writes the joined unhyphenated term
136 char term[] = termAttribute.buffer();
139 term = termAttribute.resizeBuffer(length);
142 hyphenated.getChars(0, length, term, 0);
/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...]
/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);

Completed in 601 milliseconds

1234567891011>>