I'm implementing a graph database on ASWS Neptune and I'm using as well AWS OpenSearch to allow me perform a full text search.
I want to get all the child vertex that match a property. (In this case get all documents)
I did the following:
g.V( folderId )
.emit()
.repeat( in().dedup() )
.in()
.hasLabel( "document" )
.valueMap()
.by( unfold() )
.toList();
This will return all documents that are in that folder and sub-folders as well.
Now I did this to only return the documents that are in that folder/subfolder that match a name
.
g.withSideEffect( "Neptune#fts.endpoint", "..." )
.V( folderId )
.has( "name", "Neptune#fts " + name + "*" )
.emit()
.repeat( in().dedup() )
.in()
.hasLabel( "document" )
.valueMap()
.by( unfold() )
.toList();
It returns a empty result but if I remove the folderId
it returns all the documents that match that name.
Any way to only return the ones that match the name and are on that folder?
Thanks