[Developers] sort by count

Jack Alves jack.alves at gmail.com
Mon Aug 11 00:28:20 UTC 2008


Is there a way to sort by count? I tried using return even though it
is not legal to sort by directive,

"sort" : "film.return"

I am only interested in the top 10 counts. I would query all then copy
to a spreadsheet for counting but the query returns more than 1000
results. I am able to get a result if I specify an
initial_release_date greater than 1940.

Here's my query,




[
  {
    "film" : [
      {
        "film" : [
          {
            "awards_won" : [
              {
                "award" : [
                  {
                    "name" : null,
                    "name~=" : "*academy award*"
                  }
                ]
              }
            ],
            "name" : null,
            "type" : "/award/award_winning_work"
          }
        ],
        "return" : "count",
        "type" : "/film/performance"
      }
    ],
    "name" : null, "limit":1000,
    "type" : "/film/actor"
  }
]


More information about the Developers mailing list