1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Query Language Enhancement Request - Multiple Criteria on a Single Node

Discussion in 'Census: General Discussion' started by Dethdlr, Feb 29, 2012.

  1. Dethdlr

    Dethdlr Guest

    There are several cases in the REST API where data is stored in lists.  For example:<character id="463857433035">  <achievements completed="75" points="570" total_count="1395" total_points="32165">    <achievement_list>      <achievement completed_timestamp="1293083661" id="88025236"/>      <achievement completed_timestamp="0" id="1394207601">      <event_list>        <event count="1"/>      </event_list>    </achievement>    (more achievements go here)  </achievement_list></characterThe query language allows us to pull back all the characters that have achievements.achievement_list.id=1394207601.It also allows us to pull back all characters that have achievements.achievement_list.completed_timestamp=>0.What the query language doesn't allow us to do (at least as far as I know), is to put more than one criteria on a single node.  What I'd like to be able to do is pull back all the characters that have achievements.achievement_list.id=1394207601 AND within the same node, achievements.achievement_list.completed_timestamp=>0.From what I can tell, this is not currently possible with the query language which has led to the format of the data being flipped around based on what people needed to be able to do.  If you tried applying both of those criteria now, it would pull back all the items with id=1394207601 and also all the items with a completed_timestamp=>0.  So you would get plenty of them with an id=1394207601 that have a completed_timestamp=0 since there were other achievements that DID have a completed_timestamp=>0.I was wondering if the backend would support something along these lines:?achievements.achievement_list(id=1394207601,completed_timestamp=>0)This would indicate that we wanted to apply the id and completed_timestamp restrictions on the same specific node, not just any of them found within achievement_list like it does today.Is this possible to implement?  Is it possible to do what I'm asking already and I just don't know how?Thanks a bunch!

     
  2. feldon30

    feldon30 Guest

    This will become even more important going forward if Quests and Recipes become available.

     

Share This Page