Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Oct 2012 at 16:39 UTC
Updated:
5 Jun 2014 at 07:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cpliakas commentedFirst crack at a patch. Marking as needs work because I do not know what the "name callback" does.
You have to follow the code trail, but the use case is illustrated by the rich_snippets_get_solr_fields() function. This calls the apachesolr_get_index_key_map() function, which requires the API function posted in this patch.
Comment #2
nick_vhpart 1
part 2
part 3
so the name callback allows you to create a different name for the solr field. Nothing super critical, but flexible enough to allow custom implementations
Comment #3
cpliakas commentedAh, I got you. So if I had an long integer field named "field_foo", I could change it to "field_bar" which would the would be stored in Solr as "i_field_bar". Is that about right?
Comment #4
nick_vhThat is completely correct! Marking this as needs review to let the testbot grind
Comment #5
cpliakas commentedRe-rolling patch with a description of the "name callback" key.
Comment #6
nick_vhNeeds backport to 6.x-3.x
Comment #7
nick_vhOh, just to clarify - this was committed. Thanks!
Comment #8
MickC commentedGetting Errors - see https://drupal.org/comment/8245857#comment-8245857
Comment #9
mkalkbrennerComment #10
mkalkbrenner