/lucene-3.6.0/lucene/site/build/site/skin/ |
H A D | getBlank.js | 18 * getBlank script - when included in a html file and called from a form text field, will set the value of this field to "" 19 * if the text value is still the standard value. 20 * getPrompt script - when included in a html file and called from a form text field, will set the value of this field to the prompt 21 * if the text value is empty. 25 * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search the site:');" onBlur="getBlank (this, 'Search the site:');"/> 29 if (form.value == stdValue){ 30 form.value = ''; 35 if (form.value == ''){ 36 form.value [all...] |
/lucene-3.6.0/lucene/site/src/documentation/skins/common/scripts/ |
H A D | getBlank.js | 18 * getBlank script - when included in a html file and called from a form text field, will set the value of this field to "" 19 * if the text value is still the standard value. 20 * getPrompt script - when included in a html file and called from a form text field, will set the value of this field to the prompt 21 * if the text value is empty. 25 * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search the site:');" onBlur="getBlank (this, 'Search the site:');"/> 29 if (form.value == stdValue){ 30 form.value = ''; 35 if (form.value == ''){ 36 form.value [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/encoding/ |
H A D | VInt8IntEncoder.java | 52 public void encode(int value) throws IOException { argument 53 if ((value & ~0x7F) == 0) { 54 out.write(value); 55 } else if ((value & ~0x3FFF) == 0) { 56 out.write(0x80 | (value >> 7)); 57 out.write(0x7F & value); 58 } else if ((value & ~0x1FFFFF) == 0) { 59 out.write(0x80 | (value >> 14)); 60 out.write(0x80 | (value >> 7)); 61 out.write(0x7F & value); [all...] |
H A D | SimpleIntEncoder.java | 30 * This method makes sure the value wasn't previously encoded by checking 31 * against the Set. If the value wasn't encoded, it's added to the Set, and 34 * @param value 40 public void encode(int value) throws IOException { argument 41 out.write(value >>> 24); 42 out.write((value >> 16) & 0xFF); 43 out.write((value >> 8) & 0xFF); 44 out.write(value & 0xFF);
|
H A D | VInt8IntDecoder.java | 34 int value = 0; 43 value |= first & 0x7F; 46 return value; 49 value <<= 7;
|
H A D | UniqueValuesIntEncoder.java | 34 * Denotes an illegal value which we can use to init 'prev' to. Since all 35 * encoded values are integers, this value is init to MAX_INT+1 and is of type 36 * long. Therefore we are guaranteed not to get this value in encode. 48 public void encode(int value) throws IOException { argument 49 if (prev != value) { 50 encoder.encode(value); 51 prev = value;
|
H A D | DGapIntEncoder.java | 48 public void encode(int value) throws IOException { argument 49 encoder.encode(value - prev); 50 prev = value;
|
H A D | NOnesIntEncoder.java | 27 * <li>Values ≥ 2 are trnalsated to <code>value+1</code> (2 ⇒ 3, 3 45 * the first value to encode, and you wrap this encoder with 46 * {@link DGapIntEncoder}, then the value that will be sent to this encoder will 53 /** Number of consecutive '1's to be translated into single target value '2'. */ 60 * Constructs an encoder with a given value of N (N: Number of consecutive 61 * '1's to be translated into single target value '2'). 78 public void encode(int value) throws IOException { argument 79 if (value == 1) { 89 // this value 95 // encode value [all...] |
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/ |
H A D | field.rb | 19 attr_accessor :value 26 @name, @value = name_key.to_s, params[name_key] 28 @value = @value.respond_to?(:utc) ? @value.utc.xmlschema : @value.to_s 35 e.text = @value
|
H A D | document.rb | 21 # key/value pairs for the fields 39 fields.each_pair do |name,value| 40 if value.respond_to?(:each) && !value.is_a?(String) 41 value.each {|v| @fields << Solr::Field.new(name => v)} 43 @fields << Solr::Field.new(name => value) 57 return field.value if field 62 def []=(name,value) 63 @fields << Solr::Field.new(name => value)
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ |
H A D | OpaqueQueryNode.java | 33 private CharSequence value = null; field in class:OpaqueQueryNode 38 * @param value 39 * - value that was not parsed 41 public OpaqueQueryNode(CharSequence schema, CharSequence value) { argument 45 this.value = value; 51 return "<opaque schema='" + this.schema + "' value='" + this.value + "'/>"; 55 return "@" + this.schema + ":'" + this.value + "'"; 63 clone.value [all...] |
H A D | PathQueryNode.java | 47 CharSequence value = null; field in class:PathQueryNode.QueryText 59 * @param value 60 * - text value 66 public QueryText(CharSequence value, int begin, int end) { argument 68 this.value = value; 76 clone.value = this.value; 83 * @return the value 86 return value; [all...] |
H A D | BoostQueryNode.java | 32 * The boost value may vary from 0.0 to 1.0. 39 private float value = 0; field in class:BoostQueryNode 46 * @param value 47 * the boost value, it may vary from 0.0 to 1.0 51 public BoostQueryNode(QueryNode query, float value) throws QueryNodeException { argument 57 this.value = value; 80 * Returns the boost value. It may vary from 0.0 to 1.0. 82 * @return the boost value 85 return this.value; [all...] |
H A D | SlopQueryNode.java | 39 private int value = 0; field in class:SlopQueryNode 44 * @param value 45 * - slop value 47 public SlopQueryNode(QueryNode query, int value) { argument 53 this.value = value; 64 return this.value; 68 Float f = Float.valueOf(this.value); 78 return "<slop value='" + getValueString() + "'>" + "\n" 93 clone.value [all...] |
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/ |
H A D | SolrInputField.java | 32 Object value = null; field in class:SolrInputField 44 * Set the value for a field. Arrays will be converted to a collection. 55 value = c; 58 value = v; 63 * Add values to a field. if the added value is a collection, each value 68 if( value == null ) { 74 // on multi-value fields even though lucene indexing does not support this. 80 if( value instanceof Collection ) { 81 vals = (Collection<Object>)value; [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/ |
H A D | CompressionTools.java | 40 public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) { argument 52 compressor.setInput(value, offset, length); 69 public static byte[] compress(byte[] value, int offset, int length) { argument 70 return compress(value, offset, length, Deflater.BEST_COMPRESSION); 74 public static byte[] compress(byte[] value) { argument 75 return compress(value, 0, value.length, Deflater.BEST_COMPRESSION); 78 /** Compresses the String value, with default BEST_COMPRESSION level */ 79 public static byte[] compressString(String value) { argument 80 return compressString(value, Deflate 86 compressString(String value, int compressionLevel) argument 94 decompress(byte[] value) argument 118 decompressString(byte[] value) argument [all...] |
H A D | Field.java | 31 value. Values may be free text, provided as a String or as a Reader, or they 42 /** Store the original field value in the index. This is useful for short texts 44 * value is stored in its original form, i.e. no analyzer is used before it is 52 /** Do not store the field value in the index. */ 64 /** Do not index the field value. This field can thus not be searched, 77 * value through an Analyzer. This is useful for 88 /** Index the field's value without using an Analyzer, so it can be searched. 89 * As no analyzer is used the value will be stored as a single term. This is 101 /** Expert: Index the field's value without an Analyzer, 125 * field's value throug 293 setValue(String value) argument 301 setValue(Reader value) argument 312 setValue(byte[] value) argument 322 setValue(byte[] value, int offset, int length) argument 351 Field(String name, String value, Store store, Index index) argument 372 Field(String name, String value, Store store, Index index, TermVector termVector) argument 394 Field(String name, boolean internName, String value, Store store, Index index, TermVector termVector) argument 530 Field(String name, byte[] value, Store store) argument 544 Field(String name, byte[] value) argument 560 Field(String name, byte[] value, int offset, int length, Store store) argument 576 Field(String name, byte[] value, int offset, int length) argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/writer/ |
H A D | CSVWriter.java | 55 String value = o.toString(); 56 value = writeValue(fields[i], value); 57 sb.append(value); 81 protected String writeValue(CSVField field, String value) throws Exception { argument 83 if (value.length() < field.getSize()) { 89 int fillSize = (field.getSize() - value.length()); 94 sb.append(value); 95 value = sb.toString(); 98 sb.append(value); [all...] |
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/lib/engines/ |
H A D | deprecated_config_support.rb | 39 def default_constant(name, value) 44 self.class_eval("#{name} = #{value.inspect}") 56 # config :param_one, "some value" 63 # => "some value" 70 # => "some value" 74 # Once a value is stored in the configuration, it will not be altered 79 # config :param_one, "another value" 86 # => "some value" # not changed 98 # A value of anything other than false or nil given for the :force key will 108 args[0].each { |key, value| _handle_confi [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/ |
H A D | NumericQueryNode.java | 29 * This query node represents a field query that holds a numeric value. It is 44 private Number value; field in class:NumericQueryNode 48 * {@link Number} value and {@link NumberFormat} used to convert the value to 52 * @param value the value hold by this node 53 * @param numberFormat the {@link NumberFormat} used to convert the value to {@link String} 55 public NumericQueryNode(CharSequence field, Number value, argument 62 setValue(value); 85 * This method is used to get the value converte 137 setValue(Number value) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | AttributeReflector.java | 27 * passing the class name of the {@link Attribute}, a key and the actual value. 30 * as attribute class, {@code "term"} as key and the actual value as a String. 32 public void reflect(Class<? extends Attribute> attClass, String key, Object value); argument
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/ |
H A D | AnalysisRequestHandlerTest.java | 65 String value; 67 value = (String) token.get("value"); 68 assertTrue(value + " is not equal to " + "cute", value.equals("cute") == true); 70 value = (String) token.get("value"); 71 assertTrue(value + " is not equal to " + "little", value.equals("little") == true); 74 value [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | NumericTokenStream.java | 46 * Field field = new Field(name, new NumericTokenStream(precisionStep).setIntValue(value)); 64 * stream.setIntValue(value) 71 * indexing a specific numeric value.</p> 96 * before using set a value using the various set<em>???</em>Value() methods. 105 * before using set a value using the various set<em>???</em>Value() methods. 118 * before using set a value using the various set<em>???</em>Value() methods. 132 * before using set a value using the various set<em>???</em>Value() methods. 142 * Initializes the token stream with the supplied <code>long</code> value. 143 * @param value the value, fo 147 setLongValue(final long value) argument 160 setIntValue(final int value) argument 173 setDoubleValue(final double value) argument 186 setFloatValue(final float value) argument 251 private long value = 0L; field in class:NumericTokenStream [all...] |
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/ |
H A D | select.rb | 45 raw_params.each do |key,value| 46 if value.respond_to?(:each) && !value.is_a?(String) 47 value.each { |v| http_params << "#{key}=#{ERB::Util::url_encode(v)}" unless v.nil?} 49 http_params << "#{key}=#{ERB::Util::url_encode(value)}" unless value.nil?
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ |
H A D | SetPropTask.java | 24 * A property may have a single value, or a sequence of values, separated by ":". 26 * the next (cyclic) value is taken. 28 * <br>Takes mandatory param: "name,value" pair. 38 private String value; field in class:SetPropTask 42 if (name==null || value==null) { 43 throw new Exception(getName()+" - undefined name or value: name="+name+" value="+value); 45 getRunData().getConfig().set(name,value); 50 * Set the params (property name and value) [all...] |