Searched refs:value (Results 1 - 25 of 296) sorted by relevance

1234567891011>>

/lucene-3.6.0/lucene/site/build/site/skin/
H A DgetBlank.js18 * 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 DgetBlank.js18 * 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 DVInt8IntEncoder.java52 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 DSimpleIntEncoder.java30 * 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 DVInt8IntDecoder.java34 int value = 0;
43 value |= first & 0x7F;
46 return value;
49 value <<= 7;
H A DUniqueValuesIntEncoder.java34 * 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 DDGapIntEncoder.java48 public void encode(int value) throws IOException { argument
49 encoder.encode(value - prev);
50 prev = value;
H A DNOnesIntEncoder.java27 * <li>Values &ge; 2 are trnalsated to <code>value+1</code> (2 &rArr; 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 Dfield.rb19 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 Ddocument.rb21 # 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 DOpaqueQueryNode.java33 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 DPathQueryNode.java47 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 DBoostQueryNode.java32 * 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 DSlopQueryNode.java39 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 DSolrInputField.java32 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 DCompressionTools.java40 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 DField.java31 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 DCSVWriter.java55 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 Ddeprecated_config_support.rb39 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 DNumericQueryNode.java29 * 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 DAttributeReflector.java27 * 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 DAnalysisRequestHandlerTest.java65 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 DNumericTokenStream.java46 * 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 Dselect.rb45 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 DSetPropTask.java24 * 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...]

Completed in 227 milliseconds

1234567891011>>