Payload really don't have first class support in Solr. It's a solid feature of Lucene, but never expressed well in Solr. Any thoughts or proposals are welcome!

(Hmmm... I wonder what the good folks at Heliosearch have up their sleeves in this area?!)

-- Jack Krupansky

-----Original Message----- From: William Bell
Sent: Friday, September 5, 2014 10:03 PM
To: solr-user@lucene.apache.org
Subject: How to solve?

We have a core with each document as a person.

We want to boost based on the sweater color, but if the person has sweaters
in their closet which are the same manufactuer we want to boost even more
by adding them together.

Peter Smit - Sweater: Blue = 1 : Nike, Sweater: Red = 2: Nike, Sweater:
Blue=1 : Polo....
Tony S - Sweater: Red =2: Nike
Bill O - Sweater:Red = 2: Polo, Blue=1: Polo

Scores:

Peter Smit - 1+2 = 3.
Tony S - 2
Bill O - 2 + 1

I thought about using payloads.

sweaters_payload
Blue: Nike: 1
Red: Nike: 2
Blue: Polo: 1

How do I query this?

http://localhost:8983/solr/persons?q=*:*&sort=??

Ideas?




--
Bill Bell
billnb...@gmail.com
cell 720-256-8076

Reply via email to