Searched defs:fields (Results 1 - 25 of 69) sorted by relevance

123

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DMultiFieldAttribute.java27 * processor to which fields the terms in the query should be expanded. <br/>
34 public void setFields(CharSequence[] fields); argument
H A DMultiFieldAttributeImpl.java32 * processor to which fields the terms in the query should be expanded. <br/>
53 public void setFields(CharSequence[] fields) { argument
54 config.set(ConfigurationKeys.MULTI_FIELDS, fields);
92 return "<fieldsAttribute fields=" + Arrays.toString(getFields()) + "/>";
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DMapFieldSelector.java41 * @param fields fields to LOAD. List of Strings. All other fields are NO_LOAD.
43 public MapFieldSelector(List<String> fields) { argument
44 fieldSelections = new HashMap<String,FieldSelectorResult>(fields.size()*5/3);
45 for (final String field : fields)
50 * @param fields fields to LOAD. All other fields are NO_LOAD.
52 public MapFieldSelector(String... fields) { argument
[all...]
H A DDocument.java27 * A Document is a set of fields. Each field has a name and a textual value.
30 * should typically contain one or more stored fields which uniquely identify
33 * <p>Note that fields which are <i>not</i> {@link Fieldable#isStored() stored} are
40 List<Fieldable> fields = new ArrayList<Fieldable>(); field in class:Document
43 /** Constructs a new document with no fields. */
54 * boost for the fields of this document.
79 * <p>Adds a field to a document. Several fields may be added with
80 * the same name. In this case, if the fields are indexed, their text is
89 fields.add(field);
94 * If multiple fields exis
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DDocFieldConsumerPerField.java25 abstract void processFields(Fieldable[] fields, int count) throws IOException; argument
H A DDocFieldProcessorPerField.java35 Fieldable[] fields = new Fieldable[1]; field in class:DocFieldProcessorPerField
H A DDocInverterPerField.java64 public void processFields(final Fieldable[] fields, argument
71 final boolean doInvert = consumer.start(fields, count);
75 final Fieldable field = fields[i];
214 fields[i] = null;
H A DInvertedDocConsumerPerField.java29 // fields:
30 abstract boolean start(Fieldable[] fields, int count) throws IOException; argument
H A DTermsHashConsumerPerField.java30 abstract boolean start(Fieldable[] fields, int count) throws IOException; argument
H A DFreqProxTermsWriter.java71 Collection<TermsHashConsumerPerField> fields = entry.getValue();
73 for (final TermsHashConsumerPerField i : fields) {
107 FreqProxTermsWriterPerField[] fields = new FreqProxTermsWriterPerField[end-start];
109 fields[i-start] = allFields.get(i);
114 fieldInfo.storePayloads |= fields[i-start].hasPayloads;
120 appendPostings(fieldName, state, fields, consumer);
122 for(int i=0;i<fields.length;i++) {
123 TermsHashPerField perField = fields[i].termsHashPerField;
127 fields[i].reset();
148 FreqProxTermsWriterPerField[] fields,
147 appendPostings(String fieldName, SegmentWriteState state, FreqProxTermsWriterPerField[] fields, FormatPostingsFieldsConsumer consumer) argument
[all...]
H A DDocFieldProcessorPerThread.java35 * Currently, only a single thread visits the fields,
47 // Holds all fields seen in current doc
48 DocFieldProcessorPerField[] fields = new DocFieldProcessorPerField[1]; field in class:DocFieldProcessorPerThread
51 // Hash table for all fields ever seen
111 public Collection<DocFieldConsumerPerField> fields() { method in class:DocFieldProcessorPerThread
112 Collection<DocFieldConsumerPerField> fields = new HashSet<DocFieldConsumerPerField>();
116 fields.add(field.consumer);
120 assert fields.size() == totalFieldCount;
121 return fields;
124 /** If there are fields w
[all...]
H A DTermInfosReaderIndex.java42 private Term[] fields; field in class:TermInfosReaderIndex
101 fields = new Term[fieldStrs.size()];
102 for (int i = 0; i < fields.length; i++) {
103 fields[i] = new Term(fieldStrs.get(i));
122 Term field = fields[fieldId];
181 Term field = fields[fieldId];
210 * Compare the fields of the terms first, and if not equals return from
223 // if term field does not equal mid's field index, then compare fields
236 * Compares the fields before checking the text of the terms.
249 return term.field.compareTo(fields[inpu
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DFieldDoc.java25 * For example, if the sort criteria was to sort by fields
26 * "a", "b" then "c", the <code>fields</code> object array
28 * the term values for the document in fields "a", "b" and "c".
49 public Object[] fields; field in class:FieldDoc
57 public FieldDoc(int doc, float score, Object[] fields) { argument
59 this.fields = fields;
63 public FieldDoc(int doc, float score, Object[] fields, int shardIndex) { argument
65 this.fields = fields;
[all...]
H A DTopFieldDocs.java27 /** The fields which were used to sort results by. */
28 public SortField[] fields; field in class:TopFieldDocs
33 * @param fields The sort criteria used to find the top hits.
36 public TopFieldDocs (int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore) { argument
38 this.fields = fields;
H A DFieldDocSortedHitQueue.java35 volatile SortField[] fields = null; field in class:FieldDocSortedHitQueue
37 // used in the case where the fields are sorted by locale
45 * Creates a hit queue sorted by the given list of fields.
46 * @param fields Fieldable names, in priority order (highest priority first).
55 * Allows redefinition of sort fields if they are <code>null</code>.
58 * type until the values come back. The fields can only be set once.
60 * @param fields
63 void setFields (SortField[] fields) throws IOException { argument
64 this.fields = fields;
84 hasCollators(final SortField[] fields) argument
[all...]
H A DSort.java27 * <p>The fields used to determine sort order must be carefully chosen.
40 * sorting fields: Integers, Longs, Floats, or Strings. Unless
85 * <p><code>4 * IndexReader.maxDoc() * (# of different fields actually used to sort)</code>
87 * <p>For String fields, the cache is larger: in addition to the
93 * fields are in the index and <i>might</i> be used to sort - only by
115 SortField[] fields; field in class:Sort
132 public Sort(SortField... fields) { argument
133 setSort(fields);
138 this.fields = new SortField[] { field };
142 public void setSort(SortField... fields) { argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/
H A DMultiFieldQueryParserWrapper.java48 * (assuming the query consists of two terms and you specify the two fields
74 * what fields they appear.
77 public MultiFieldQueryParserWrapper(String[] fields, Analyzer analyzer, Map<String, Float> boosts) { argument
78 this(fields, analyzer);
81 qpHelper.setMultiFields(fields);
91 * (assuming the query consists of two terms and you specify the two fields
109 * what fields they appear.
112 public MultiFieldQueryParserWrapper(String[] fields, Analyzer analyzer) { argument
118 qpHelper.setMultiFields(fields);
122 * Parses a query which searches on the fields specifie
144 parse(String[] queries, String[] fields, Analyzer analyzer) argument
198 parse(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument
252 parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument
[all...]
H A DQueryParserUtil.java33 * Parses a query which searches on the fields specified.
35 * If x fields are specified, this effectively constructs:
45 * @param fields
51 * fields array
53 public static Query parse(String[] queries, String[] fields, Analyzer analyzer) argument
55 if (queries.length != fields.length)
56 throw new IllegalArgumentException("queries.length != fields.length");
62 for (int i = 0; i < fields.length; i++) {
63 Query q = qp.parse(queries[i], fields[i]);
74 * Parses a query, searching on the fields specifie
109 parse(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument
165 parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/
H A DTestURLDataSource.java28 private List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); field in class:TestURLDataSource
32 dataSource, Context.FULL_DUMP, fields, null);
H A DTestJdbcDataSource.java51 List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); field in class:TestJdbcDataSource
54 jdbcDataSource, Context.FULL_DUMP, fields, null);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/processor/
H A DUniqFieldsUpdateProcessorFactory.java34 * A non-duplicate processor. Removes duplicates in the specified fields.
37 * &lt;updateRequestProcessorChain name="uniq-fields"&gt;
39 * &lt;lst name="fields"&gt;
51 private Set<String> fields; field in class:UniqFieldsUpdateProcessorFactory
56 NamedList<String> flst = (NamedList<String>)args.get("fields");
58 fields = new HashSet<String>();
60 fields.add(flst.getVal(i));
69 return new UniqFieldsUpdateProcessor(next, fields);
74 private final Set<String> fields; field in class:UniqFieldsUpdateProcessorFactory.UniqFieldsUpdateProcessor
77 Set<String> fields) {
76 UniqFieldsUpdateProcessor(UpdateRequestProcessor next, Set<String> fields) argument
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/request/
H A DLukeRequest.java41 private List<String> fields; field in class:LukeRequest
60 if( fields == null ) {
61 fields = new ArrayList<String>();
63 fields.add( f );
68 fields = f;
104 if( fields != null && fields.size() > 0 ) {
105 params.add( CommonParams.FL, fields.toArray( new String[fields.size()] ) );
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/query/
H A DQueryAutoStopWordAnalyzer.java70 * indexed fields from terms with a document frequency percentage greater than
87 * indexed fields from terms with a document frequency greater than the given
106 * indexed fields from terms with a document frequency percentage greater than
126 * given selection of fields from terms with a document frequency percentage
132 * @param fields Selection of fields to calculate stopwords for
141 Collection<String> fields,
143 this(matchVersion, delegate, indexReader, fields, (int) (indexReader.numDocs() * maxPercentDocs));
148 * given selection of fields from terms with a document frequency greater than
154 * @param fields Selectio
137 QueryAutoStopWordAnalyzer( Version matchVersion, Analyzer delegate, IndexReader indexReader, Collection<String> fields, float maxPercentDocs) argument
158 QueryAutoStopWordAnalyzer( Version matchVersion, Analyzer delegate, IndexReader indexReader, Collection<String> fields, int maxDocFreq) argument
[all...]
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/
H A DTestRangeQuery.java48 void addInt(SolrInputDocument doc, int l, int u, String... fields) { argument
55 for (String field : fields) {
75 // ensure that we aren't losing precision on any fields in addition to testing other non-numeric fields
89 // fields that normal range queries should work on
104 // fields that frange queries should work on
127 List<String> fields = new ArrayList<String>();
128 fields.add("id");
129 fields.add(""+j);
131 fields
[all...]
H A DTestSearchPerf.java75 void createIndex2(int nDocs, String... fields) throws IOException { argument
76 Set<String> fieldSet = new HashSet<String>(Arrays.asList(fields));

Completed in 25 milliseconds

123