Let me see if I can reword this:
The traversal filter attribute in a graph parser query limits the documents
which get traversed. I'd like to limit each document using a value from the
parent document. For example
only traverse child documents which have a start time 10 minutes greater
than the parent documents start time. Is it possible to write a traversal
filter in that way?

cheers Lee

On Thu, 4 Mar 2021 at 20:41, Lee Carroll <lee.a.carr...@googlemail.com>
wrote:

> Hi All,
> I'm using the graph query parser to traverse a set of edge documents. An
> edge looks like
>
> "id":"edge1", "recordType":"journey", "Date":"2021-03-04T00:00:00Z", "O
> rigin":"AAC", "OriginLocalDateTime":"2021-03-04T05:00:00Z", "Destination":
> "AAB", "DestinationLocalDateTime":"2021-03-04T07:00:00Z"
>
> I'd like to collect  journeys needed to travel from an origin city to a
> destination city in a single hop (a-b-c) where all journeys are made on the
> same day. I'm using a traversal filter to achieve this on the same day
> criteria but the function field parameter which I'm expecting to return the
> document's date value is being ignored....
> For example a query to get all journeys from AAA to AAB is:
>
> q={!graph
>    maxDepth=1
>    from=Origin
>    to=Destination
>     traversalFilter='Date:{!func}Date'
> } Origin:AAA  & fq= DestinationAirportCode:AAB || originAirportCode:AAA
>
> What is the correct approach for this problem?
>
> Cheers Lee C
>

Reply via email to