/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
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 | 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 | 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...] |
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 | FieldValueHitQueue.java | 59 public OneComparatorFieldValueHitQueue(SortField[] fields, int size) argument 61 super(fields); 63 SortField field = fields[0]; 102 public MultiComparatorsFieldValueHitQueue(SortField[] fields, int size) argument 104 super(fields); 108 SortField field = fields[i]; 140 private FieldValueHitQueue(SortField[] fields) { argument 141 // When we get here, fields.length is guaranteed to be > 0, therefore no 147 this.fields = fields; 166 create(SortField[] fields, int size) argument 188 protected final SortField[] fields; field in class:FieldValueHitQueue [all...] |
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/ |
H A D | document.rb | 21 # key/value pairs for the fields 25 @fields = [] 36 def <<(fields) 37 case fields 39 fields.each_pair do |name,value| 41 value.each {|v| @fields << Solr::Field.new(name => v)} 43 @fields << Solr::Field.new(name => value) 47 @fields << fields 56 field = @fields [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...] |
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/ |
H A D | TestTemplateTransformer.java | 39 List fields = new ArrayList(); 40 fields.add(createMap("column", "firstName")); 41 fields.add(createMap("column", "lastName")); 42 fields.add(createMap("column", "middleName")); 43 fields.add(createMap("column", "name", 46 fields.add(createMap("column", "emails", 51 fields.add(createMap("column", "mrname", 66 null, Context.FULL_DUMP, fields, entityAttrs);
|
H A D | TestRegexTransformer.java | 41 List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); 43 fields.add(getField("col1", "string", null, "a", ",")); 44 Context context = getContext(null, null, null, Context.FULL_DUMP, fields, null); 57 List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); 63 fields.add(m); 64 Context context = getContext(null, null, null, Context.FULL_DUMP, fields, null); 87 List<Map<String, String>> fields = new ArrayList<Map<String, String>>(); 91 fields.add(fld); 92 Context context = getContext(null, null, null, Context.FULL_DUMP, fields, null); 105 // init a whole pile of fields [all...] |
H A D | TestDateFormatTransformer.java | 37 List fields = new ArrayList(); 38 fields.add(createMap(DataImporter.COLUMN, "lastModified")); 39 fields.add(createMap(DataImporter.COLUMN, 52 null, Context.FULL_DUMP, fields, null); 60 List fields = new ArrayList(); 61 fields.add(createMap(DataImporter.COLUMN, "lastModified")); 62 fields.add(createMap(DataImporter.COLUMN, 80 null, Context.FULL_DUMP, fields, null);
|
/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/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/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 | NormsWriter.java | 35 * for the doc/fields it saw, then the flush method below 71 final Collection<InvertedDocEndConsumerPerField> fields = entry.getValue(); 72 final Iterator<InvertedDocEndConsumerPerField> fieldsIt = fields.iterator(); 114 final NormsWriterPerField[] fields = new NormsWriterPerField[numFields]; 118 fields[j] = toMerge.get(j); 124 assert uptos[0] < fields[0].docIDs.length : " uptos[0]=" + uptos[0] + " len=" + (fields[0].docIDs.length); 127 int minDocID = fields[0].docIDs[uptos[0]]; 130 final int docID = fields[j].docIDs[uptos[j]]; 143 normsOut.writeByte(fields[minLo [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/ |
H A D | SolrHighlighter.java | 79 * Return a String array of the fields to be highlighted. 80 * Falls back to the programatic defaults, or the default search field if the list of fields 84 * @param defaultFields Programmatic default highlight fields, used if nothing is specified in the handler config or the request. 87 String fields[] = request.getParams().getParams(HighlightParams.FIELDS); 89 // if no fields specified in the request, or the handler, fall back to programmatic default, or default search field. 90 if(emptyArray(fields)) { 94 fields = null == defaultSearchField ? new String[]{} : new String[]{defaultSearchField}; 97 fields = defaultFields; 100 else if (fields.length == 1) { 101 if (fields[ [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/writer/ |
H A D | CSVConfig.java | 37 /** list of fields **/ 38 private List fields; field in class:CSVConfig 87 if (fields == null) { 88 fields = new ArrayList(); 90 fields.add(field); 94 * Set the fields that should be used by the writer. 95 * This will overwrite currently added fields completely! 102 fields = new ArrayList(Arrays.asList(csvFields)); 106 * Set the fields that should be used by the writer 107 * @param csvField a collection with fields [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/ |
H A D | MultiFieldQueryNodeProcessor.java | 34 * in different fields. It also boosts a query based on its field. <br/> 41 * defined by the number of fields that it will be expanded to. The 81 CharSequence[] fields = getQueryConfigHandler().get(ConfigurationKeys.MULTI_FIELDS); 83 if (fields == null) { 88 if (fields != null && fields.length > 0) { 89 fieldNode.setField(fields[0]); 91 if (fields.length == 1) { 98 for (int i = 1; i < fields.length; i++) { 101 fieldNode.setField(fields[ [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/ |
H A D | MultiFieldQueryParser.java | 33 * A QueryParser which constructs queries to search multiple fields. 39 protected String[] fields; field in class:MultiFieldQueryParser 48 * two terms and you specify the two fields <code>title</code> and <code>body</code>):</p> 67 * what fields they appear.</p> 69 public MultiFieldQueryParser(Version matchVersion, String[] fields, Analyzer analyzer, Map<String,Float> boosts) { argument 70 this(matchVersion, fields, analyzer); 79 * two terms and you specify the two fields <code>title</code> and <code>body</code>):</p> 92 * what fields they appear.</p> 94 public MultiFieldQueryParser(Version matchVersion, String[] fields, Analyzer analyzer) { argument 96 this.fields 235 parse(Version matchVersion, String[] queries, String[] fields, Analyzer analyzer) argument 284 parse(Version matchVersion, String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument 332 parse(Version matchVersion, String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) argument [all...] |
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/ |
H A D | standard.rb | 79 if @params[:facets][:fields] # facet fields are optional (could be facet.query only) 80 @params[:facets][:fields].each do |f| 109 if snippets[:fields] 110 snippets[:fields].each do |k,v| 125 if fragsize[:fields] 126 fragsize[:fields].each do |k,v| 141 if rfm[:fields] 142 rfm[:fields].each do |k,v| 157 if mac[:fields] [all...] |
/lucene-3.6.0/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ |
H A D | LikeThisQueryBuilder.java | 58 String fieldsList=e.getAttribute("fieldNames"); //a comma-delimited list of fields 59 String fields[]=defaultFieldNames; 62 fields=fieldsList.trim().split(","); 64 for (int i = 0; i < fields.length; i++) { 65 fields[i]=fields[i].trim(); 71 //I use all analyzers/fields to generate multi-field compatible stop list 74 if((stopWords!=null)&&(fields!=null)) 77 for (int i = 0; i < fields.length; i++) 81 TokenStream ts = analyzer.reusableTokenStream(fields[ [all...] |
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/ |
H A D | FileDictionary.java | 75 String[] fields = line.split("\t"); 76 if (fields.length > 1) { 79 curFreq = Long.parseLong(fields[1]); 81 curFreq = (long)Double.parseDouble(fields[1]); 83 spare.copyChars(fields[0]);
|
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/tools/java/org/apache/lucene/analysis/ja/util/ |
H A D | ConnectionCostsBuilder.java | 55 String[] fields = line.split("\\s+"); 57 assert fields.length == 3; 59 int forwardId = Integer.parseInt(fields[0]); 60 int backwardId = Integer.parseInt(fields[1]); 61 int cost = Integer.parseInt(fields[2]);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/ |
H A D | ShardDoc.java | 52 // Store the order in the merged list for lookup when getting stored fields? 60 public ShardDoc(float score, Object[] fields, Object uniqueId, String shard) { argument 61 super(-1, score, fields); 107 protected SortField[] fields; field in class:ShardFieldSortedHitQueue 112 public ShardFieldSortedHitQueue(SortField[] fields, int size) { argument 113 final int n = fields.length; 115 this.fields = new SortField[n]; 118 // keep track of the named fields 119 int type = fields[i].getType(); 121 fieldNames.add(fields[ [all...] |