Reputation: 27803
In our GSA I am trying to retrieve documents that either have a "XosContentType" metadata tag of either "article" or "ooyala". To do retrieve this I run the following search command:
/search?q=&access=p&output=xml_no_dtd&num=7&start=0&filter=0&requiredfields=(XosContentType%3aarticle%7cXosContentType%3aooyala)&sort=date:D:R:d1
While this gives me results correctly matching my requiredfields criteria they are not sorted at all. For example, the following are the order of the nodes I am receiving
<FS NAME="date" VALUE="2012-07-13"/>
<FS NAME="date" VALUE="2012-07-25"/>
<FS NAME="date" VALUE="2012-05-23"/>
<FS NAME="date" VALUE="2012-03-10"/>
<FS NAME="date" VALUE="2012-05-15"/>
And it just goes on and on like this. If I only search by one criteria then everything sorts correctly, but using both fails sorting.
So how can I get sorting to work properly? I really don't want to have to do searches and combine the results myself because that will massively complicate paging.
Upvotes: 0
Views: 660
Reputation: 6286
You can also add a query term of
site:mywebsite.com
But that will only work if all your data belongs to the same domain.
Upvotes: 0
Reputation: 462
I believe you need to supply a query term to sort by date. Try switching your required fields filter to be inmeta.
See this:
https://groups.google.com/forum/?fromgroups#!topic/Google-Search-Appliance-Help/8oSW7nZBMuw
Upvotes: 2