Hi,
You can do this by using biases in the query :
"fields": [
{
"name": "fieldname"
"values": ["fieldValue1", ...],
"bias": -maxFloat..maxFloat
},...
]
http://actionml.com/docs/ur_queries
and put a negative bias (< 0) for a property referring to the location.
For example :
"fields": [
{
"name": "localtion"
"values": ["san_francisco"],
"bias": -1
}
]
That will return recommendation for only item with the property
location with a value san_francisco.
For your case the packages are the items right?
If yes, you should send $set events with location property for each package.
I hope I could give you some guidance.
Regards,
Marius
2017-03-23 16:04 GMT+04:00 infoquest india <[email protected]>:
> Hi
>
> I am planning to use Universal Recommender for a travel site which offers
> packages. But packages needs to be recommended based on location of request
> coming from. So how can I put up a filter which can provide recommendation
> based on that location i.e while training it shall group data by location
> and give recommendation based on location while querying.
>
> Thanks
> Gaurav
>
>