Graph Query Parser with pagination

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Graph Query Parser with pagination

sambasivarao giddaluri
Hi All,

Is it possible to search on a index using graph query parser with
pagination available .
ex:
1 <--2<--3
1 <--4<--5
1 <--6<--7
and so on

1 is parent of 2,4  and 2 is parent of 3 and 4 is parent of 5
1 is doc type A  and 2,4 are of type doc B and 3,5 are of type C

similarly if i have 200 children similar to 2,4,6
schema example:
doc A
{
id : 1
name: Laptop
}
doc B
{
id : 2
parent:1
name: Dell
}
doc C
{
id : 3
parent:2
mainparent:1
name: latitude 15inch
}

doc A
{
id : 1
name: Laptop
}
doc B
{
id : 4
parent:1
name: Dell Desktop
}
doc C
{
id : 5
parent:4
mainparent:1
name: latitude 15inch
}



So my query doc C.name=latitude 15inch and doc A.name=laptop

this will give me two results when from doc C if am using graph query
parser , but instead of getting all results in one call , can add some kind
of pagination .

Or any other suggestions ? which can be used to achieve the below results
where we multiple docs involved in query .


Regards
sambasiva