Closed (won't fix)
Project:
Services
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 17:27 UTC
Updated:
9 May 2011 at 17:28 UTC
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
Comment #1
stodge commentedChanging module to services - I don't think it's a json-rpc issue.
Comment #2
marcingy commentedThis isn't major as the data can still be retrieved
Comment #3
kylebrowning commented2.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.