Вопрос

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!

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top