Hi all,

I have a streaming expression looking like:

fetch(
  myAlias,
  top(
        n=3,
  ....various expressions here
    sort="count(*) desc"
  ),
  fl="username", on="userid=userid", batchSize=3
)

which fails to fetch username field for the 1st result:

{
 "result-set":{
  "docs":[{
    "userid":"123123",
    "count(*)":58}
   ,{
    "userid":"123123123",
    "count(*)":32,
    "username":"Ayha"}
   ,{
    "userid":"12432423321323",
    "count(*)":30,
    "username":"MEHM"}
   ,{
    "EOF":true,
    "RESPONSE_TIME":34889}]}}
        
But strangely, when I change n and batchSize both to 2 and touch nothing else, 
fetch fetches the first username correctly:

fetch(
  myAlias,
  top(
        n=2,
  ....various expressions here
    sort="count(*) desc"
  ),
  fl="username", on="userid=userid", batchSize=2
)

Result is:

{
 "result-set":{
  "docs":[{
    "userid":"123123",
    "count(*)":58,
    "username":"mura"}
   ,{
    "userid":"123123123",
    "count(*)":32,
    "username":"Ayha"}
   ,{
    "EOF":true,
    "RESPONSE_TIME":34889}]}}
        
What can be the problem?

Regards

~~ufuk

-- 
uyilmaz <uyil...@vivaldi.net>

Reply via email to