Question

how to get only the top 100 matching results in neo4j FT index queries. I am sure for common searches the index will match thousands of nodes but i would need only say the top 100 highest scored matches. What configuration settings or query context should i set to achieve this. How is this possible in REST API without cypher. Is cypher a must to get these 100 top scored full text matches. Thanks for any help!

Était-ce utile?

La solution

The simplest way would probably be using Cypher's LIMIT clause. Since you explicitly asked for non cypher solutions, the only option is to write a unmanaged extension that runs the index query and does not fully consume the iterator.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top