{"size":20,"query":{"bool":{"should":[{"terms":{"watched":[]}},{"terms":{"skipped":[]}},{"terms":{"discard":[]}},{"terms":{"preferences-tags":[]}},{"terms":{"preferences-language":[]}},{"terms":{"preferences-type":[]}},{"terms":{"preferences-provider":[]}},{"terms":{"preferences-communityId":[]}},{"constant_score":{"filter":{"match_all":{}},"boost":0}}],"must":[{"terms":{"duration":["574"],"boost":0}}],"must_not":{"ids":{"values":[],"boost":0}},"minimum_should_match":1}},"sort":[{"_score":{"order":"desc"}},{"popRank":{"unmapped_type":"double","order":"desc"}}]}
Although there are items which match this filter the result is empty.
Anyone have a clue for me?
Thank you in advance,
Tom
curl http://<my_ip>:8000/queries.json -d '{"user":"Hs6UvSj5Kxvb00J79lmeVFkuCVw"}
Then I take the first result (this result have a score) and look on the metadata and try to filter the result by one of the metadata properties -
curl http://<my_ip>:8000/queries.json -d '{"user":"Hs6UvSj5Kxvb00J79lmeVFkuCVw", "fields":[{"name":"my_field","values":["my_val"],"bias":-1}], "num": 5}'
And then I get an empty result.
I suspect this has to do with the elasticsearch. When I run pio status it seems ok. I also tried to restart the ES + Hbase and the status does not changed.
In the ES log I see (several times) -
[2016-07-29 15:01:12,533][DEBUG][action.index ] [Libra] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
[2016-07-29 15:01:28,530][INFO ][cluster.metadata ] [Libra] [urindex_1469804488512] creating index, cause [api], shards [5]/[1], mappings [items]
[2016-07-29 15:01:34,452][INFO ][cluster.metadata ] [Libra] [urindex_1469804017367] deleting index
In the HBASE log I see -
2016-07-29 15:20:42,983 WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxn: caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x1563722aa540033, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
The machine have 8giga ram, the spark is external (1.5.1), hbase 1.0.0, elasticsearch 1.4.4
Thanks!
{
"_index": "urindex_1470128185120",
"_type": "items",
"_id": "de76233fe0813247277deb9128fee413",
"_score": 1,
"_source": {
"id": "de76233fe0813247277deb9128fee413"
}
}
{
eventId: "QEecorCLJcdKes-d6zeRUQAAAVYwg7EMiyYkgzr_Lkk",
event: "$set",
entityType: "item",
entityId: "de76233fe0813247277deb9128fee413",
properties:
{
locations:
[
"Los Angeles",
"USA"],
duration:
[
"1782"],
releaseDate:
[
"2015"],
mood:
[
"cool"],
communityId:
[
"76c6c1170762878c1929fc578ef41ae2"],
provider:
[
"youtube"],
style:
[
"männlich"],
tags:
[
"skateboard",
"hip hop",
"musik",
"kunst",
"action",
"lifestyle",
"stunt",
"stadt"],
fsk:
[
"0"],
language:
[
"Englisch"],
type:
[
"Film"],
subType:
[
"Dokumentation"]},
eventTime: "2016-07-28T07:59:12.140Z",
creationTime: "2016-07-28T09:57:20.150Z"}