Sha256: 17fb2dfdf2cbec34876931835a0a9199b7e3a7376bebc176937e1c447fa1d428

Contents?: true

Size: 1.53 KB

Versions: 17

Compression:

Stored size: 1.53 KB

Contents

!!! XML
%schema{ :name => 'sunspot', :version => 0.9 }
  %types
    %fieldtype{ :name => 'text', :class => 'solr.TextField', :positionIncrementGap => 100 }
      %analyzer
        %tokenizer{ :class => schema.tokenizer }/
        - for filter in schema.filters
          %filter{ :class => filter }/
    %fieldtype{ :name => 'rand', :class => 'solr.RandomSortField' }
    - schema.types.each do |type|
      %fieldtype{ :name => type.name, :class => "solr.#{type.class_name}Field", :omitNorms => 'true' }/
  %fields
    %field{ :name => 'id', :type => 'string', :indexed => 'true', :stored => 'true', :multiValued => 'false' }/
    %field{ :name => 'type', :type => 'string', :indexed => 'true', :stored => 'false', :multiValued => 'true' }/
    %field{ :name => 'class_name', :type => 'string', :indexed => 'true', :stored => 'false', :multiValued => 'false' }/
    %field{ :name => 'text', :type => 'text', :indexed => 'true', :stored => 'false', :multiValued => 'true' }/
    %dynamicField{ :name => '*_text', :type => 'text', :indexed => 'true', :stored => 'false', :multiValued => 'true' }/
    %dynamicField{ :name => 'random_*', :type => 'rand', :indexed => 'true', :stored => 'false' }/
    - for dynamic_field in schema.dynamic_fields
      %dynamicField{ :name => dynamic_field.name, :type => dynamic_field.type, :indexed => 'true', :stored => dynamic_field.stored?, :multiValued => dynamic_field.multiValued? }/
  %uniqueKey id
  %defaultSearchField text
  %solrQueryParser{ :defaultOperator => 'AND' }/
  %copyField{ :source => '*_text', :dest => 'text' }/

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
Chrononaut-sunspot-client-0.9.4 templates/schema.xml.haml
UnderpantsGnome-sunspot-0.9.1.1 templates/schema.xml.haml
UnderpantsGnome-sunspot-0.9.8.1 templates/schema.xml.haml
kristopher-sunspot-0.9.8 templates/schema.xml.haml
kuahyeow-sunspot-0.9.7 templates/schema.xml.haml
kuahyeow-sunspot-0.9.8 templates/schema.xml.haml
outoftime-sunspot-0.9.0 templates/schema.xml.haml
outoftime-sunspot-0.9.1 templates/schema.xml.haml
outoftime-sunspot-0.9.2 templates/schema.xml.haml
outoftime-sunspot-0.9.3 templates/schema.xml.haml
outoftime-sunspot-0.9.4 templates/schema.xml.haml
outoftime-sunspot-0.9.5 templates/schema.xml.haml
outoftime-sunspot-0.9.6 templates/schema.xml.haml
outoftime-sunspot-0.9.7 templates/schema.xml.haml
outoftime-sunspot-0.9.8 templates/schema.xml.haml
sunspot-0.9.8 templates/schema.xml.haml
sunspot-0.9.7 templates/schema.xml.haml