Giter VIP home page Giter VIP logo

Comments (6)

nundys avatar nundys commented on June 3, 2024

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.

tkanchin avatar tkanchin commented on June 3, 2024

@nundys can you please let me know where did you find the requisite dataset?

from graph-aided-search-demo.

tkanchin avatar tkanchin commented on June 3, 2024

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.

dchatterjee172 avatar dchatterjee172 commented on June 3, 2024

@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.

dchatterjee172 avatar dchatterjee172 commented on June 3, 2024

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.

Artemius77 avatar Artemius77 commented on June 3, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.