Right now, you can't easily alter the fl param because you need to know the mapping between the drupal field and the indexed field, the service.inc file has a method for that called getFieldNames but unfortunately, this method is protected so you can't call it from outside.
It would be nice to lighten your query when you don't need to return a lot of fields if you only need a few.

Comments

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new996 bytes
steven jones’s picture

I reckon it would be much more useful to just make that method public. Patch attached does just that.

drunken monkey’s picture

Title: Allow developers to easily alter the fl param » Add way to easily alter the fl parameter
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.