开发者

How can I return the Lucene score of my query when using the Neo4J REST server?

I have been able to use the Lucene query syntax so far. Now开发者_如何学Python I need to be able to return the scores and number of hits on nodes by modifying my query line:

GET http://localhost:7474/db/data/index/node/myIndex?query=myKey:myValue

In other words, I do not want to have to create an embedded graph database because I am trying to access the data I have saved in my REST server. Any suggestions on how to return the score and hits?

Could I perhaps create an instance of a class that Lucene offers to do this?

Thanks!


to do this, you will probably have to write a small scoring Neo4j Server unmanaged extension, since this is outside the core REST API, see http://docs.neo4j.org/chunked/snapshot/server-unmanaged-extensions.html for details. As parameters you could take the index, and the scoring parameters and the query.

Would that help?

/peter

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜