diff --git a/README.textile b/README.textile index 3b41dac..50e1c0d 100644 --- a/README.textile +++ b/README.textile @@ -45,7 +45,7 @@ More information on the conventions followed for the dynamic solr fields is here https://github.com/projecthydra/hydra-head/wiki/Solr-Schema
-default_mapper = Solrizer::FieldMapper::Default.new +default_mapper = Solrizer::FieldMapper.new # some of the default mappings in solrizer default_mapper.solr_name("foo",:string,:searchable) # returns foo_tesim @@ -68,7 +68,7 @@ Solrizer.insert_field(solr_doc, 'pub_date', 'Nov 2012', :sortable, :displayable) => {"title_tesim"=>["whatever"], "pub_date_ssi"=>["Nov 2012"], "pub_date_ssm"=>["Nov 2012"]}-#### You can also index dates +h5. You can also index dates
# as a date solr_doc = {} @@ -87,7 +87,7 @@ Solrizer.insert_field(solr_doc, 'pub_date', 'Jan 29th 2013', :dateable)-## Using a custom indexing strategy +h3. Using a custom indexing strategy All you have to do is create your own index descriptor:
solr_doc = {} @@ -96,7 +96,7 @@ Solrizer.insert_field(solr_doc, 'some_count', 45, displearchable) {"some_count_isi"=>["45"]}-## Changing the behavior of a default descriptor +h5. Changing the behavior of a default descriptor Simply override the methods within Solrizer::DefaultDescriptors
@@ -121,7 +121,7 @@ Solrizer.insert_field(solr_doc, 'title', 'foobar', :facetable)-## Creating your own Indexers +h3. Creating your own Indexers
module MyMappers def self.mapper_one @@ -138,7 +138,7 @@ Solrizer.insert_field(solr_doc, 'title', 'foobar', :mapper_one) => {"title_ssi"=>["foobar"]}-## Using OM +h3. Using OM Same as it ever was:
t.main_title(:index_as=>[:facetable],:path=>"title", :label=>"title") { ... }