Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to configure facet, index and show fields to inject addition... #762

Merged
merged 1 commit into from
Feb 10, 2014

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Feb 8, 2014

...al field-specific solr parameters

Fixes #759.

e.g.:

config.add_index_field 'an_index_field', solr_params: { 'hl.alternativeField' => 'field_x'}
config.add_show_field 'a_show_field', solr_params: { 'hl.alternativeField' => 'field_y'}
config.add_field_configuration_to_solr_request!
config.add_facet_field 'some-field', solr_params: { 'facet.mincount' =>15 }
config.add_facet_fields_to_solr_request!

Will add:

f.an_index_field.hl.alternativeField=field_x&
f.a_show_field.hl.alternativeField=field_y&
f.some-field.facet.mincount=15

To the query sent to solr.

@cbeer cbeer added this to the 5.1.0 milestone Feb 8, 2014
…ional field-specific solr parameters

Fixes #759.

e.g.:

```ruby
config.add_index_field 'an_index_field', solr_params: { 'hl.alternativeField' => 'field_x'}
config.add_show_field 'a_show_field', solr_params: { 'hl.alternativeField' => 'field_y'}
config.add_field_configuration_to_solr_request!
config.add_facet_field 'some-field', solr_params: { 'facet.mincount' =>15 }
config.add_facet_fields_to_solr_request!
```

Will add:

   f.an_index_field.hl.alternativeField=field_x&
   f.a_show_field.hl.alternativeField=field_y&
   f.some-field.facet.mincount=15

To the query sent to solr.
jcoyne added a commit that referenced this pull request Feb 10, 2014
…nfig

Add support to configure facet, index and show fields to inject addition...
@jcoyne jcoyne merged commit 43fe875 into master Feb 10, 2014
@jcoyne jcoyne deleted the field-specific-solr-config branch February 10, 2014 18:58
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4ba23d5 on field-specific-solr-config into d1a9955 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants