Searched defs:field (Results 1 - 25 of 273) sorted by relevance

1234567891011

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/
H A DSyntaxParser.java30 * @param field
31 * - default field name
34 public QueryNode parse(CharSequence query, CharSequence field) argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DMapFieldSelector.java26 * A {@link FieldSelector} based on a Map of field names to {@link FieldSelectorResult}s
34 * @param fieldSelections maps from field names (String) to {@link FieldSelectorResult}s
45 for (final String field : fields)
46 fieldSelections.put(field, FieldSelectorResult.LOAD);
58 /** Load field according to its associated value in fieldSelections
59 * @param field a field name
60 * @return the fieldSelections value that field maps to or NO_LOAD if none.
62 public FieldSelectorResult accept(String field) { argument
63 FieldSelectorResult selection = fieldSelections.get(field);
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFormatPostingsFieldsConsumer.java31 /** Add a new field */
32 abstract FormatPostingsTermsConsumer addField(FieldInfo field) throws IOException; argument
H A DFormatPostingsFieldsWriter.java60 /** Add a new field */
62 FormatPostingsTermsConsumer addField(FieldInfo field) { argument
63 termsWriter.setField(field);
H A DInvertedDocConsumerPerField.java26 // Called once per field, and is given all Fieldable
27 // occurrences for this field in the document. Return
32 // Called before a field instance is being processed
33 abstract void start(Fieldable field); argument
38 // Called once per field per document, after all Fieldable
H A DSegmentTermPositionVector.java25 public SegmentTermPositionVector(String field, String terms[], int termFreqs[], int[][] positions, TermVectorOffsetInfo[][] offsets) { argument
26 super(field, terms, termFreqs);
H A DStoredFieldsWriterPerThread.java48 public void addField(Fieldable field, FieldInfo fieldInfo) throws IOException { argument
58 localFieldsWriter.writeField(fieldInfo, field);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DFieldCacheTermsFilter.java28 * term value in the specified field is contained in the
35 * field contains only a single term for all documents.
42 * The first invocation of this filter on a given field will
44 * created. Subsequent invocations using the same field
83 * invocation for a given field, but subsequent invocations,
97 private String field; field in class:FieldCacheTermsFilter
100 public FieldCacheTermsFilter(String field, String... terms) { argument
101 this.field = field;
111 final FieldCache.StringIndex fcsi = getFieldCache().getStringIndex(reader, field);
[all...]
H A DFieldValueFilter.java28 * given field. This {@link Filter} request {@link Bits} from the
32 private final String field; field in class:FieldValueFilter
38 * @param field
39 * the field to filter
41 public FieldValueFilter(String field) { argument
42 this(field, false);
48 * @param field
49 * the field to filter
52 * field are accepted.
55 public FieldValueFilter(String field, boolea argument
64 public String field() { method in class:FieldValueFilter
[all...]
H A DPrefixQuery.java50 public String toString(String field) { argument
52 if (!prefix.field().equals(field)) {
53 buffer.append(prefix.field());
H A DSort.java28 * Documents must contain a single term in such a field,
30 * a given sort order. The field must be indexed, but should not be tokenized,
42 * in the field is determined by parsing the first term in the field.
81 * or float array of length <code>IndexReader.maxDoc()</code> for each field
88 * above array, the value of every term in the field is kept in memory.
89 * If there are many unique terms in the field, this could
127 public Sort(SortField field) { argument
128 setSort(field);
137 public void setSort(SortField field) { argument
[all...]
H A DTermRangeTermEnum.java39 private String field; field in class:TermRangeTermEnum
55 * @param field
56 * An interned field that holds both lower and upper terms.
72 public TermRangeTermEnum(IndexReader reader, String field, String lowerTermText, String upperTermText, argument
79 this.field = StringHelper.intern(field);
93 setEnum(reader.terms(new Term(this.field, startTermText)));
113 if (term != null && term.field() == field) { // interned comparison
137 if (term != null && term.field()
[all...]
H A DWildcardQuery.java74 public String toString(String field) { argument
76 if (!term.field().equals(field)) {
77 buffer.append(term.field());
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/
H A DTokenSources.java57 * @param field The field to retrieve on the document
67 String field, Document doc, Analyzer analyzer) throws IOException {
70 TermFreqVector tfv = reader.getTermFreqVector(docId, field);
78 ts = getTokenStream(doc, field, analyzer);
91 * @param field
93 * @return null if field not stored correctly
97 String field, Analyzer analyzer) throws IOException {
100 TermFreqVector tfv = reader.getTermFreqVector(docId, field);
108 ts = getTokenStream(reader, docId, field, analyze
66 getAnyTokenStream(IndexReader reader, int docId, String field, Document doc, Analyzer analyzer) argument
96 getAnyTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer) argument
252 getTokenStream(IndexReader reader, int docId, String field) argument
269 getTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer) argument
275 getTokenStream(Document doc, String field, Analyzer analyzer) argument
286 getTokenStream(String field, String contents, Analyzer analyzer) argument
[all...]
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTermPositionVector.java35 public InstantiatedTermPositionVector(InstantiatedDocument document, String field) { argument
36 super(document, field);
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/index/
H A DFieldNormModifier.java32 * If -n command line argument is used, removed field norms, as if
36 * NOTE: This will overwrite any length normalization or field/document boosts.
72 System.out.print("Updating field: " + args[i] + " " + (new Date()).toString() + " ... ");
86 * If Similarity is null, kill the field norms.
97 * Resets the norms for the specified field.
105 * @param field the field whose norms should be reset
107 public void reSetNorms(String field) throws IOException { argument
108 String fieldName = StringHelper.intern(field);
118 termEnum = reader.terms(new Term(field));
[all...]
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DBoostingQuery.java124 public String toString(String field) { argument
125 return match.toString(field) + "/" + context.toString(field);
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/
H A DRegexTermEnum.java36 private String field = ""; field in class:RegexTermEnum
43 field = term.field();
52 setEnum(reader.terms(new Term(term.field(), pre)));
57 if (field == term.field()) {
81 field = null;
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/similar/
H A DSimilarityQueries.java77 * @param field the field you want to search on, probably something like "contents" or "body"
84 String field,
88 TokenStream ts = a.reusableTokenStream( field, new StringReader( body));
101 TermQuery tq = new TermQuery( new Term( field, word));
82 formSimilarQuery( String body, Analyzer a, String field, Set<?> stop) argument
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DQuotedFieldQueryNode.java31 * @param field
32 * - field name
40 public QuotedFieldQueryNode(CharSequence field, CharSequence text, int begin, argument
42 super(field, text, begin, end);
47 if (isDefaultField(this.field)) {
50 return this.field + ":" + "\"" + getTermEscapeQuoted(escaper) + "\"";
57 + "' field='" + this.field + "' term='" + this.text + "'/>";
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/
H A DExtensionQuery.java24 * query string like the query field and the extension query string.
32 private final String field; field in class:ExtensionQuery
39 * @param field
40 * the query field
44 public ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString) { argument
45 this.field = field;
51 * Returns the query field
53 * @return the query field
56 return field;
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/
H A DPrefixWildcardQueryNode.java33 * @param field
34 * - field name
42 public PrefixWildcardQueryNode(CharSequence field, CharSequence text, argument
44 super(field, text, begin, end);
53 return "<prefixWildcard field='" + this.field + "' term='" + this.text
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DLimitTokenCountAnalyzer.java27 * a replacement for the maximum field length setting inside {@link org.apache.lucene.index.IndexWriter}.
34 * Build an analyzer that limits the maximum number of tokens per field.
61 public int getOffsetGap(Fieldable field) { argument
62 return delegate.getOffsetGap(field);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/
H A DByteFieldSource.java27 * Expert: obtains single byte field values from the
35 * on the field.
48 * Create a cached byte field source with default string-to-byte parser.
50 public ByteFieldSource(String field) { argument
51 this(field, null);
55 * Create a cached byte field source with a specific string-to-byte parser.
57 public ByteFieldSource(String field, FieldCache.ByteParser parser) { argument
58 super(field);
70 public DocValues getCachedFieldValues (FieldCache cache, String field, IndexReader reader) throws IOException { argument
71 final byte[] arr = cache.getBytes(reader, field, parse
[all...]
H A DFloatFieldSource.java27 * Expert: obtains float field values from the
35 * on the field.
48 * Create a cached float field source with default string-to-float parser.
50 public FloatFieldSource(String field) { argument
51 this(field, null);
55 * Create a cached float field source with a specific string-to-float parser.
57 public FloatFieldSource(String field, FieldCache.FloatParser parser) { argument
58 super(field);
70 public DocValues getCachedFieldValues (FieldCache cache, String field, IndexReader reader) throws IOException { argument
71 final float[] arr = cache.getFloats(reader, field, parse
[all...]

Completed in 1402 milliseconds

1234567891011