Hi,
I'm altering a query via hook_search_api_solr_query_alter() and I need to map some fields to their solr equivalent. To map fields I have to use getFieldNames() method from SearchApiSolrService class but this is protected with no reason at all.
This method provides vital functionality for altering queries and should be public!

Or... Is there an alternative on how to access mapping?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Title: Mapping is protected and shouldn't be » Make internal field mapping public
Category: bug » feature
Priority: Major » Normal
FileSize
3.78 KB

Seems reasonable, patch attached. Please review!

drunken monkey’s picture

Status: Active » Needs review
OanaIlea’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

This issue was closed due to lack of activity over a long period of time. If the issue is still acute for you, feel free to reopen it and describe the current state.