The document that you index includes a thread, and then several posts? In
this case, you can simply do the range check on the single dataCreated
field. Multiple values in a document for a field can become tricky when
wanting to execute a complex query, against several multiple fields, but
have those constraints only match per "array element" (in which case,
nested docs can help).
On Fri, Nov 11, 2011 at 7:46 PM, Shane Witbeck email@example.com:
I'd like to offer a date range feature where I have an index of forum
threads with one or more reply posts. Each post has dateCreated field
that I'd like to use in the date range.
|- reply post 1
|- reply post 2
What's the best way to accomplish doing a date range with multiple
dates defined for each index document? I'm using the Java API.