Any suggestion? On Thu, Jul 11, 2019 at 3:03 PM Wei <weiwan...@gmail.com> wrote:
> Hi, > > I have a question regarding function query that operates on multi-value > fields. For the following field: > > <field name=rgbcolor type="string" indexed="true" stored="true" > multivalued="true"/> > > Each value is a hex string representation of RGB value. for example > there are 3 values indexed > > #FF00FF - C1 > #EE82EE - C2 > #DA70D6 - C3 > > How would I write a function query that operates on all values of the > field? Given color S in query, how to calculate the similarities between > S and C1/C2/C3 and find which one is the closest? > I checked https://lucene.apache.org/solr/guide/6_6/function-queries.html but > didn't see an example. > > Thanks, > Wei >