Searched refs:params (Results 1 - 25 of 387) sorted by relevance

1234567891011>>

/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/
H A Dspellcheck.rb15 def initialize(params)
17 @params = params
22 hash[:q] = @params[:query]
23 hash[:suggestionCount] = @params[:suggestion_count]
24 hash[:accuracy] = @params[:accuracy]
25 hash[:onlyMorePopular] = @params[:only_more_popular]
26 hash[:cmd] = @params[:command]
H A Ddismax.rb18 def initialize(params)
19 @alternate_query = params.delete(:alternate_query)
20 @sort_values = params.delete(:sort)
29 hash[:tie] = @params[:tie_breaker]
30 hash[:mm] = @params[:minimum_match]
31 hash[:qf] = @params[:query_fields]
32 hash[:pf] = @params[:phrase_fields]
33 hash[:ps] = @params[:phrase_slop]
34 hash[:bq] = @params[:boost_query]
35 hash[:bf] = @params[
[all...]
H A Dstandard.rb18 def initialize(params)
21 raise "Invalid parameters: #{(params.keys - VALID_PARAMS).join(',')}" unless
22 (params.keys - VALID_PARAMS).empty?
24 raise ":query parameter required" unless params[:query]
26 @params = params.dup
29 if params[:operator]
31 [:and, :or].include?(params[:operator])
33 @params[:operator] = params[
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/
H A DWaitTask.java41 public void setParams(String params) { argument
42 super.setParams(params);
43 if (params != null) {
45 if (params.endsWith("s")) {
47 params = params.substring(0, params.length()-1);
48 } else if (params.endsWith("m")) {
50 params = params
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DSimilarityFactory.java20 import org.apache.solr.common.params.SolrParams;
23 protected SolrParams params; field in class:SimilarityFactory
25 public void init(SolrParams params) { this.params = params; } argument
26 public SolrParams getParams() { return params; }
/lucene-3.6.0/solr/core/src/java/org/apache/solr/request/
H A DRequiredSolrParams.java20 import org.apache.solr.common.params.SolrParams;
25 * @deprecated Use org.apache.solr.common.params.RequiredSolrParams.
28 public class RequiredSolrParams extends org.apache.solr.common.params.RequiredSolrParams {
30 public RequiredSolrParams(SolrParams params) { argument
31 super(params);
H A DSolrParams.java20 import org.apache.solr.common.params.CommonParams;
21 import org.apache.solr.common.params.FacetParams;
27 * @deprecated Use org.apache.solr.common.params.SolrParams.
30 public abstract class SolrParams extends org.apache.solr.common.params.SolrParams
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/
H A DRequestHandlerUtils.java23 import org.apache.solr.common.params.MapSolrParams;
24 import org.apache.solr.common.params.SolrParams;
25 import org.apache.solr.common.params.UpdateParams;
59 SolrParams params = req.getParams();
60 if( params == null ) {
61 params = new MapSolrParams( new HashMap<String, String>() );
64 boolean optimize = params.getBool( UpdateParams.OPTIMIZE, false );
65 boolean commit = params.getBool( UpdateParams.COMMIT, false );
69 cmd.waitFlush = params.getBool( UpdateParams.WAIT_FLUSH, cmd.waitFlush );
70 cmd.waitSearcher = params
92 handleCommit( UpdateRequestProcessor processor, SolrParams params, boolean force ) argument
116 handleRollback( UpdateRequestProcessor processor, SolrParams params, boolean force ) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/
H A DSolrBoundaryScanner.java21 import org.apache.solr.common.params.SolrParams;
28 public BoundaryScanner getBoundaryScanner(String fieldName, SolrParams params){ argument
30 params = SolrParams.wrapDefaults(params, defaults);
32 return get(fieldName, params);
35 protected abstract BoundaryScanner get(String fieldName, SolrParams params); argument
H A DSolrFragmentsBuilder.java23 import org.apache.solr.common.params.HighlightParams;
24 import org.apache.solr.common.params.SolrParams;
37 * @param params The params controlling Highlighting
40 public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) { argument
42 params = SolrParams.wrapDefaults(params, defaults);
44 return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, nul
47 getPreTags( SolrParams params, String fieldName ) argument
51 getPostTags( SolrParams params, String fieldName ) argument
55 getTags( SolrParams params, String paramName, String fieldName, String def ) argument
70 getFragmentsBuilder( SolrParams params, String[] preTags, String[] postTags, BoundaryScanner bs ) argument
[all...]
H A DHtmlFormatter.java21 import org.apache.solr.common.params.HighlightParams;
22 import org.apache.solr.common.params.SolrParams;
29 public Formatter getFormatter(String fieldName, SolrParams params )
32 params = SolrParams.wrapDefaults(params, defaults);
35 params.getFieldParam(fieldName, HighlightParams.SIMPLE_PRE, "<em>" ),
36 params.getFieldParam(fieldName, HighlightParams.SIMPLE_POST, "</em>"));
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/params/
H A DSolrParamTest.java18 package org.apache.solr.common.params;
49 final SolrParams params = new MapSolrParams( pmap );
52 assertEquals( "string" , params.get( "str" ) );
53 assertEquals( "true" , params.get( "bool" ) );
54 assertEquals( "100" , params.get( "int" ) );
55 assertEquals( "10.6" , params.get( "float" ) );
56 assertEquals( "string" , params.get( "f.fl.str" ) );
57 assertEquals( "true" , params.get( "f.fl.bool" ) );
58 assertEquals( "100" , params.get( "f.fl.int" ) );
59 assertEquals( "10.6" , params
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/
H A DRequiredSolrParams.java18 package org.apache.solr.common.params;
38 protected final SolrParams params; field in class:RequiredSolrParams
40 public RequiredSolrParams(SolrParams params) { argument
41 this.params = params;
44 /** get the param from params, fail if not found **/
47 String val = params.get(param);
57 String val = params.get(fpname);
60 val = params.get(param);
73 String[] val = params
[all...]
H A DDefaultSolrParams.java18 package org.apache.solr.common.params;
28 protected final SolrParams params; field in class:DefaultSolrParams
35 public DefaultSolrParams(SolrParams params, SolrParams defaults) { argument
36 assert params != null && defaults != null;
37 this.params = params;
43 String val = params.get(param);
49 String[] vals = params.getParams(param);
57 c.addIterator(params.getParameterNamesIterator());
63 return "{params("
[all...]
H A DEventParams.java1 package org.apache.solr.common.params;
H A DQueryElevationParams.java1 package org.apache.solr.common.params;
H A DStatsParams.java18 package org.apache.solr.common.params;
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/request/
H A DAbstractUpdateRequest.java23 import org.apache.solr.common.params.ModifiableSolrParams;
24 import org.apache.solr.common.params.UpdateParams;
34 protected ModifiableSolrParams params; field in class:AbstractUpdateRequest
52 if (params == null)
53 params = new ModifiableSolrParams();
56 params.set( UpdateParams.OPTIMIZE, "true" );
57 params.set(UpdateParams.MAX_OPTIMIZE_SEGMENTS, maxSegments);
60 params.set( UpdateParams.COMMIT, "true" );
62 params.set( UpdateParams.WAIT_FLUSH, String.valueOf(waitFlush));
63 params
91 setParams(ModifiableSolrParams params) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/
H A DSearchGroupsRequestFactory.java20 import org.apache.solr.common.params.CommonParams;
21 import org.apache.solr.common.params.GroupParams;
22 import org.apache.solr.common.params.ModifiableSolrParams;
23 import org.apache.solr.common.params.ShardParams;
48 sreq.params = new ModifiableSolrParams(rb.req.getParams());
49 // TODO: base on current params or original params?
52 sreq.params.remove(ShardParams.SHARDS);
58 sreq.params.set(CommonParams.START,rb.shards_start);
60 sreq.params
[all...]
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/flare/lib/flare/
H A Dcontroller_extensions.rb35 if params[:page]
36 @flare.page = params[:page].to_i
45 @facets = @flare.retrieve_field_facets(params[:field])
49 @values = @flare.retrieve_field_facets(self.class.suggest_field, 5, params['search']['query'].downcase)
56 query = params[:search][:query].strip
65 logger.debug "update_query: #{params.inspect}"
66 @flare.queries[params[:index].to_i][:query] = params[:value]
74 q = @flare.queries[params[:index].to_i]
81 @flare.queries.delete_at(params[
[all...]
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/
H A Dfield.rb23 def initialize(params)
24 @boost = params[:boost]
25 name_key = (params.keys - VALID_PARAMS).first
26 @name, @value = name_key.to_s, params[name_key]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/processor/
H A DURLClassifyProcessorFactory.java19 import org.apache.solr.common.params.SolrParams;
29 private SolrParams params; field in class:URLClassifyProcessorFactory
34 this.params = SolrParams.toSolrParams(args);
42 return new URLClassifyProcessor(params, request, response, nextProcessor);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DUpdateParams.java23 * @deprecated Use org.apache.solr.common.params.UpdateParams.
26 public interface UpdateParams extends org.apache.solr.common.params.UpdateParams
/lucene-3.6.0/solr/core/src/test/org/apache/solr/spelling/
H A DSpellCheckCollatorTest.java24 import org.apache.solr.common.params.CommonParams;
25 import org.apache.solr.common.params.ModifiableSolrParams;
26 import org.apache.solr.common.params.SpellingParams;
60 ModifiableSolrParams params = new ModifiableSolrParams();
61 params.add(SpellCheckComponent.COMPONENT_NAME, "true");
62 params.add(SpellingParams.SPELLCHECK_BUILD, "true");
63 params.add(SpellingParams.SPELLCHECK_COUNT, "10");
64 params.add(SpellingParams.SPELLCHECK_COLLATE, "true");
66 params.add(CommonParams.Q, "lowerfilt:(hypenated-wotd)");
71 SolrQueryRequest req = new LocalSolrQueryRequest(core, params);
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/enhancements/params/
H A DDefaultEnhancementsIndexingParamsTest.java1 package org.apache.lucene.facet.enhancements.params;
11 import org.apache.lucene.facet.enhancements.params.DefaultEnhancementsIndexingParams;
12 import org.apache.lucene.facet.enhancements.params.EnhancementsIndexingParams;
37 EnhancementsIndexingParams params =
42 List<Class<? extends CategoryProperty>> retainableProps = params
46 params.addCategoryEnhancements(new CategoryEnhancementDummy2());
48 List<CategoryEnhancement> enhancements = params
59 retainableProps = params.getRetainableProperties();

Completed in 783 milliseconds

1234567891011>>