I'm not sure if this is a json-rpc or services issue so apologies before I begin.

I'm using the following Python to access search.nodes:

		data = {
			'hash': self._hash,
			'domain_name': self._domain,
			'domain_time_stamp': self._timestamp,
			'nonce': self._nonce,
			'sessid': self._session_id,
			'search_keys': keywords,
			'fields': fields,
		}
		if simple == True:
			data['simple'] = 'true'

If I set the simple field then I get the basic fields (link, type, title, user, date, snippet).:

data['simple'] = 'true'

If I don't send 'simple' but I do send 'fields' as shown then I receive ALL fields for each node:

data['fields'] = ['nid','title']

I would expect to only receive the nid and title for each node found.

Thanks

Comments

stodge’s picture

Project: JSONRPC Server » Services
Version: 6.x-1.3 » 6.x-2.4

Changing module to services - I don't think it's a json-rpc issue.

marcingy’s picture

Priority: Major » Normal

This isn't major as the data can still be retrieved

kylebrowning’s picture

Category: bug » feature
Status: Active » Closed (won't fix)

2.x is feature frozen, I wouldnt really consider this a bug as the data can still be retrieved.

In 3.x this is way easier to do and I suggest you try that.