/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/ |
H A D | MultiFieldAttribute.java | 27 * processor to which fields the terms in the query should be expanded. <br/> 34 public void setFields(CharSequence[] fields); argument
|
H A D | MultiFieldAttributeImpl.java | 32 * 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 D | MapFieldSelector.java | 41 * @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 D | Document.java | 27 * 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 D | DocFieldConsumerPerField.java | 25 abstract void processFields(Fieldable[] fields, int count) throws IOException; argument
|
H A D | DocFieldProcessorPerField.java | 35 Fieldable[] fields = new Fieldable[1]; field in class:DocFieldProcessorPerField
|
H A D | DocInverterPerField.java | 64 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 D | InvertedDocConsumerPerField.java | 29 // fields: 30 abstract boolean start(Fieldable[] fields, int count) throws IOException; argument
|
H A D | TermsHashConsumerPerField.java | 30 abstract boolean start(Fieldable[] fields, int count) throws IOException; argument
|
H A D | FreqProxTermsWriter.java | 71 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 D | DocFieldProcessorPerThread.java | 35 * 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 D | TermInfosReaderIndex.java | 42 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 D | FieldDoc.java | 25 * 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 D | TopFieldDocs.java | 27 /** 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 D | FieldDocSortedHitQueue.java | 35 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 D | Sort.java | 27 * <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 D | MultiFieldQueryParserWrapper.java | 48 * (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 D | QueryParserUtil.java | 33 * 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 D | TestURLDataSource.java | 28 private List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); field in class:TestURLDataSource 32 dataSource, Context.FULL_DUMP, fields, null);
|
H A D | TestJdbcDataSource.java | 51 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 D | UniqFieldsUpdateProcessorFactory.java | 34 * A non-duplicate processor. Removes duplicates in the specified fields. 37 * <updateRequestProcessorChain name="uniq-fields"> 39 * <lst name="fields"> 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 D | LukeRequest.java | 41 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 D | QueryAutoStopWordAnalyzer.java | 70 * 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 D | TestRangeQuery.java | 48 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 D | TestSearchPerf.java | 75 void createIndex2(int nDocs, String... fields) throws IOException { argument 76 Set<String> fieldSet = new HashSet<String>(Arrays.asList(fields));
|