Solr function query that operates on count of multivalued field

前端 未结 1 1720
花落未央
花落未央 2020-12-10 11:40

Can I, within a Solr function query, count the number of values in a multivalued field? How would I write a function query that returns documents with, say, 3 or more values

相关标签:
1条回答
  • 2020-12-10 12:22

    Here's the function query reference, and it doesn't list anything like that, so I think it's safe to assume that there's no such thing.

    If the value count is somehow relevant in your case, add it as a separate int field, then operate on that field.

    0 讨论(0)
提交回复
热议问题