Searched refs:options (Results 1 - 25 of 37) sorted by relevance

12

/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/lib/engines/rails_extensions/
H A Dpublic_asset_helpers.rb80 def image_path_with_engine_additions(source, options={})
81 options.stringify_keys!
82 source = Engines::RailsExtensions::PublicAssetHelpers.plugin_asset_path(options["plugin"], "images", source) if options["plugin"]
87 def image_tag_with_engine_additions(source, options={})
88 options.stringify_keys!
89 if options["plugin"]
90 source = Engines::RailsExtensions::PublicAssetHelpers.plugin_asset_path(options["plugin"], "images", source)
91 options.delete("plugin")
93 image_tag_without_engine_additions(source, options)
[all...]
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/
H A Ddelete.rb25 def initialize(options)
26 unless options.kind_of?(Hash) and (options[:id] or options[:query])
29 if options[:id] and options[:query]
32 @document_id = options[:id]
33 @query = options[:query]
H A Dcommit.rb17 def initialize(options={})
18 @wait_searcher = options[:wait_searcher] || true
19 @wait_flush = options[:wait_flush] || true
/lucene-3.6.0/solr/client/ruby/flare/public/javascripts/
H A Ddragdrop.js19 var options = Object.extend({
26 if(options.containment) {
27 options._containers = [];
28 var containment = options.containment;
31 containment.each( function(c) { options._containers.push($(c)) });
33 options._containers.push($(containment));
37 if(options.accept) options.accept = [options.accept].flatten();
40 options
[all...]
H A Dcontrols.js28 // in the options parameter, e.g.:
43 baseInitialize: function(element, update, options) {
53 this.setOptions(options);
55 this.options = options || {};
57 this.options.paramName = this.options.paramName || this.element.name;
58 this.options.tokens = this.options.tokens || [];
59 this.options
[all...]
H A Deffects.js135 var options = Object.extend({
139 var masterDelay = options.delay;
142 new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
153 var options = Object.extend({
157 Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options);
209 var position = (typeof effect.options.queue == 'string') ?
210 effect.options.queue : effect.options.queue.position;
232 if(!effect.options
[all...]
/lucene-3.6.0/solr/example/solr/conf/velocity/
H A Djquery.autocomplete.js17 autocomplete: function(urlOrData, options) {
19 options = $.extend({}, $.Autocompleter.defaults, {
23 max: options && !options.scroll ? 10 : 150
24 }, options);
27 options.highlight = options.highlight || function(value) { return value; };
30 options.formatMatch = options.formatMatch || options
[all...]
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/generators/plugin_migration/
H A Dplugin_migration_generator.rb7 @options = {:assigns => {}}
17 @options[:migration_file_name] = build_migration_name
18 @options[:assigns][:class_name] = build_migration_name.classify
23 m.migration_template 'plugin_migration.erb', 'db/migrate', @options
67 @options[:assigns][:plugins] = @plugins_to_migrate
68 @options[:assigns][:new_versions] = @new_versions
69 @options[:assigns][:current_versions] = @current_versions
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/importer/
H A Dmapper.rb14 def initialize(mapping, options={})
16 @options = options
30 field_data(orig_data, @options[:stringify_symbols] ? field_mapping.to_s : field_mapping)
H A Dsolr_source.rb16 def initialize(solr_url, query, filter_queries=nil, options={})
21 @page_size = options[:page_size] || 1000
22 @field_list = options[:field_list] || ["*"]
H A Dhpricot_mapper.rb23 def initialize(mapping, options={})
H A Dxpath_mapper.rb31 def initialize(mapping, options={})
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/
H A Dindexer.rb16 # TODO: document options!
17 def initialize(data_source, mapper_or_mapping, options={})
18 solr_url = options[:solr_url] || ENV["SOLR_URL"] || "http://localhost:8983/solr"
19 @solr = Solr::Connection.new(solr_url, options) #TODO - these options contain the solr_url and debug keys also, so tidy up what gets passed
24 @buffer_docs = options[:buffer_docs]
25 @debug = options[:debug]
H A Dconnection.rb82 # options include:
90 def query(query, options={}, &action)
92 create_and_send_query(Solr::Request::Standard, options.update(:query => query), &action)
99 # options are same as query, but also include:
104 def search(query, options={}, &action)
105 create_and_send_query(Solr::Request::Dismax, options.update(:query => query), &action)
109 def commit(options={})
110 response = send(Solr::Request::Commit.new(options))
172 def create_and_send_query(klass, options = {}, &action)
173 request = klass.new(options)
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DSpatialQueryable.java33 public Query createSpatialQuery(QParser parser, SpatialOptions options); argument
H A DGeoHashField.java58 public Query createSpatialQuery(QParser parser, SpatialOptions options) { argument
61 point = DistanceUtils.parsePointDouble(null, options.pointStr, 2);
67 return new SolrConstantScoreQuery(new ValueSourceRangeFilter(new GeohashHaversineFunction(getValueSource(options.field, parser),
68 new LiteralValueSource(geohash), options.radius), "0", String.valueOf(options.distance), true, true));
H A DLatLonType.java134 public Query createSpatialQuery(QParser parser, SpatialOptions options) { argument
137 point = DistanceUtils.parseLatitudeLongitude(options.pointStr);
153 double [] north = DistanceUtils.pointOnBearing(point[LAT], point[LONG], options.distance, 0, tmp, options.radius);
156 double [] east = DistanceUtils.pointOnBearing(point[LAT], point[LONG], options.distance, DistanceUtils.DEG_90_AS_RADS, tmp, options.radius);
158 double [] south = DistanceUtils.pointOnBearing(point[LAT], point[LONG], options.distance, DistanceUtils.DEG_180_AS_RADS, tmp, options.radius);
160 double [] west = DistanceUtils.pointOnBearing(point[LAT], point[LONG], options.distance, DistanceUtils.DEG_270_AS_RADS, tmp, options
[all...]
H A DPointType.java181 * @param options The {@link org.apache.solr.search.SpatialOptions} for this filter.
184 public Query createSpatialQuery(QParser parser, SpatialOptions options) { argument
188 point = DistanceUtils.parsePointDouble(null, options.pointStr, dimension);
194 String lower = String.valueOf(point[0] - options.distance);
195 String upper = String.valueOf(point[0] + options.distance);
196 SchemaField subSF = subField(options.field, 0);
202 double [] ur = DistanceUtils.vectorBoxCorner(point, null, options.distance, true);
203 double [] ll = DistanceUtils.vectorBoxCorner(point, null, options.distance, false);
205 SchemaField subSF = subField(options.field, i);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/
H A DSolrSpellChecker.java154 * @param options The {@link SpellingOptions} to use
158 public SpellingResult getSuggestions(SpellingOptions options) throws IOException{ argument
159 return getSuggestions(options.tokens, options.reader, options.count, options.onlyMorePopular, options.extendedResults);
H A DAbstractLuceneSpellChecker.java121 //TODO: Figure out how to configure options. Where's Spring when you need it? Or at least BeanUtils...
159 public SpellingResult getSuggestions(SpellingOptions options) throws IOException { argument
161 SolrParams params = options.customParams;
166 SpellingResult result = new SpellingResult(options.tokens);
167 IndexReader reader = determineReader(options.reader);
169 float theAccuracy = (options.accuracy == Float.MIN_VALUE) ? spellChecker.getAccuracy() : options.accuracy;
171 int count = Math.max(options.count, AbstractLuceneSpellChecker.DEFAULT_SUGGESTION_COUNT);
172 SuggestMode mode = options.onlyMorePopular ? SuggestMode.SUGGEST_MORE_POPULAR : SuggestMode.SUGGEST_WHEN_NOT_IN_INDEX;
173 for (Token token : options
[all...]
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/component/
H A DDummyCustomParamSpellChecker.java55 public SpellingResult getSuggestions(SpellingOptions options) throws IOException { argument
59 Iterator<String> iterator = options.customParams.getParameterNamesIterator();
63 String value = options.customParams.get(name);
H A DTermVectorComponentTest.java147 String[][] options = new String[][] {
155 for (int i = 0; i < options.length; i++) {
162 expected.append(options[i][1]);
165 list.add(options[i][0]);
/lucene-3.6.0/lucene/site/build/site/skin/
H A Dprototype.js399 setOptions: function(options) {
400 this.options = {
405 Object.extend(this.options, options || {});
424 initialize: function(url, options) {
426 this.setOptions(options);
431 var parameters = this.options.parameters || '';
435 if (this.options.method == 'get')
438 this.transport.open(this.options.method, url,
439 this.options
[all...]
/lucene-3.6.0/lucene/site/src/documentation/skins/common/scripts/
H A Dprototype.js399 setOptions: function(options) {
400 this.options = {
405 Object.extend(this.options, options || {});
424 initialize: function(url, options) {
426 this.setOptions(options);
431 var parameters = this.options.parameters || '';
435 if (this.options.method == 'get')
438 this.transport.open(this.options.method, url,
439 this.options
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/suggest/
H A DSuggester.java181 public SpellingResult getSuggestions(SpellingOptions options) throws IOException { argument
182 LOG.debug("getSuggestions: " + options.tokens);
189 for (Token t : options.tokens) {
194 options.onlyMorePopular, options.count);
198 if (!options.onlyMorePopular) {

Completed in 126 milliseconds

12