Comments (6)
I found the requisite dataset and the simple elasticsearch query works fine. However, when I try and do the graph search enabled demo, I get:-
{
"error": {
"root_cause": [
{
"type": "runtime_exception",
"reason": "Failed to parse a search response."
}
],
"type": "runtime_exception",
"reason": "Failed to parse a search response.",
"caused_by": {
"type": "client_handler_exception",
"reason": "java.net.ConnectException: Connection refused (Connection refused)",
"caused_by": {
"type": "connect_exception",
"reason": "Connection refused (Connection refused)"
}
}
},
"status": 500
}
from graph-aided-search-demo.
@nundys can you please let me know where did you find the requisite dataset?
from graph-aided-search-demo.
Never mind! The files can be downloaded from the link here: https://graphaware.com/neo4j/2016/04/20/graph-aided-search-the-rise-of-personalised-content.html
from graph-aided-search-demo.
@tkanchin are the queries working?
curl -X POST http://localhost:9200/neo4j-index/Movie/_search -d '{ "query" : { "bool": { "should": [{"match": {"title": "love"}}] } }, "gas-filter" :{ "name": "SearchResultCypherFilter", "query": "MATCH (n:User)-[r:LIKES]->(m) WITH m, avg(r.rate) as avg_rate where avg_rate < 3 RETURN m.objectId as id", "exclude": true, "keyProperty": "objectId" } }'
i used this one but my output is
{"took":3,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
from graph-aided-search-demo.
output of 'curl -X GET "localhost:9200/_cat/indices?v"' is
yellow open neo4j-index 5 1 0 0 795b 795b
i don't think docs are getting built
from graph-aided-search-demo.
The same problem here, simple query is working, but with gas filter there is an error:
{ "query" : { "bool": { "should": [{"match": {"title": "love"}}] } }, "gas-filter" :{ "name": "SearchResultCypherFilter", "query": "MATCH (n:User)-[r:LIKES]->(m) WITH m, avg(r.rate) as avg_rate where avg_rate < 3 RETURN m.objectId as id", "exclude": true, "keyProperty": "objectId" } }
{ "error": { "root_cause": [ { "type": "runtime_exception", "reason": "Failed to parse a search response." } ], "type": "runtime_exception", "reason": "Failed to parse a search response.", "caused_by": { "type": "client_handler_exception", "reason": "java.net.ConnectException: Connection refused (Connection refused)", "caused_by": { "type": "connect_exception", "reason": "Connection refused (Connection refused)" } } }, "status": 500 }
Any suggestions pls ?
from graph-aided-search-demo.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graph-aided-search-demo.