Re: Stream expressions: Break up multivalue field into usable tuples

2016-10-08 Thread Joel Bernstein
Great, I'm not sure if you noticed that SOLR-9537 has been committed and will be in 6.3. So now you can directly wrap a facet expression with the scoreNodes expression. Yeah, other scoring algorithms would be a great thing. We can adjust the ScoreNodesStream to make this more flexible. Feel free t

Re: Stream expressions: Break up multivalue field into usable tuples

2016-10-08 Thread Doug Turnbull
Joel -- thanks! Got this working and now feel in a better shape to grok what's happening Out of curiosity, is there any work being done to customize scoreNodes scoring? There's a bunch of other forms of similarity I wouldn't mind playing with as well. On Thu, Sep 22, 2016 at 6:06 PM Joel Bernstei

Re: Stream expressions: Break up multivalue field into usable tuples

2016-09-22 Thread Joel Bernstein
You could use the facet() expression which works with multi-value fields. This emits aggregated tuples useful for recommendations. For example: facet(baskets, q="item:taco", buckets="item", bucketSorts="count(*) desc", bucketSizeLimit="100", count(*))

Stream expressions: Break up multivalue field into usable tuples

2016-09-22 Thread Doug Turnbull
I have a field like follows in my search index { "shopper_id": 1234, "basket_id": 2512, "items_bought": ["eggs", "tacos", "nachos"] } { "shopper_id" 1236, "basket_id": 2515, "items_bought": ["eggs", "tacos", "chicken", "bubble gum"] } I would like to use some of the stream expr