predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gustavo Frederico <gustavo.freder...@thinkwrap.com>
Subject Query for item and user?
Date Tue, 11 Oct 2016 01:24:56 GMT
  How can I query for recommendations for a given item and a given user?
For instance, considering the context of a product details page viewed by
the current shopper. I tried to simply set the Json to
{"user":"...","item":"..."} but I got the error below.  ( out-of-the-box
installation with no model customization )  I'm not sure if the scenario is
not supported, or if there's a problem with the query data.

Gustavo


2016-10-09 15:26:09,468 INFO  com.thinkwrap.parsley.ur1.URAlgorithm
[ForkJoinPool-2-worker-1] - Query received, user id:
Some(57D1B24662712CC7696219FA9304D22F), item id: Some(1934793)
2016-10-09 15:26:09,662 ERROR io.prediction.workflow.ServerActor
[pio-server-akka.actor.default-dispatcher-375] - Query:
{"user":"57D1B24662712CC7696219FA9304D22F","item":"1934793"}

Stack Trace:
org.elasticsearch.ElasticsearchIllegalArgumentException: Alias [urindex]
has more than one indices associated with it [[urindex_1474506677785,
urindex_1473114260084]], can't execute a single index op
        at
org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:792)
        at
org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:707)
        at
org.elasticsearch.cluster.metadata.MetaData.concreteSingleIndex(MetaData.java:763)
        at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction.<init>(TransportShardSingleOperationAction.java:139)
        at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction.<init>(TransportShardSingleOperationAction.java:116)
        at
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction.doExecute(TransportShardSingleOperationAction.java:89)

Mime
View raw message