I am trying to paginate which works for the most part, but it breaks because of the fts.maxResults (If it is set too small, it won't return anything). What's the reason behind this?
limit = 1
offset = 1
# This returns nothing
g.withSideEffect(
"Neptune#fts.endpoint", f"{url}"
)
.withSideEffect("Neptune#fts.queryType", "query_string")
.withSideEffect("Neptune#fts.maxResults", limit) # if i set this to limit+1, I get 1 result as expected
.withSideEffect("Neptune#enableResultCache", enable_cache)
.withSideEffect("Neptune#fts.sortOrder", "DESC")
.V()
.hasLabel("table")
.has(
"*",
f"Neptune#fts entity_type:"table" AND ({query})",
)
.range(offset, limit + offset)