Configured ElasticSearch with Neo4j as per demo app Search results are not as expected. Search results of ElasticSearch are different with Neo4j.
After starting and configuring ElasticSearch and Neo4j
Add the following data to Neo4j DB at http://0.0.0.0:7474/browser/
CREATE (:User {name:'Carrie-Anne Moss', born:1967})
CREATE (:User {name:'Laurence Fishburne', born:1961})
CREATE (:User {name:'Hugo Weaving', born:1960})
CREATE (:User {name:'Andy Wachowski', born:1967})
CREATE (:User {name:'Lana Wachowski', born:1965})
CREATE (:User {name:'Joel Silver', born:1952})
MATCH (u:User {name: "Lana Wachowski"}) RETURN u
result:
born 1965
name Lana Wachowski
curl -XGET 'http://localhost:9200/neo4j-index/_search?pretty' -d '{
"size": 3,
"query" : {
"bool": {
"should": [{"match": {"name": "Andy Wachowski"}}]
}
}
}'
result:
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
Expected 1 result, but returned 0.
Not sure what is wrong!!
@ikwattro @espiegelberg
Can you help with above search results?