My recommendation is if you need to query on something, index it as you need... so in this case index another field with the number of values in that field. This is easy if you're writing a custom indexer, but maybe not so trivial if you're indexing other ways - so a custom update processor could do this for you automatically.

        Erik

On Aug 27, 2010, at 8:19 AM, Brad Dewar wrote:

Hi

In a multiValued field, I want to write a query that returns all the documents that actually have more than 1 value in that field. (don't care what the value is).

Maybe this should be obvious, but I just can't think of how to formulate such a query.

Any help?

Thanks,
Brad



Reply via email to