Re: Combining a String Tag with a Numeric Value

2014-08-18 Thread Erick Erickson
If you're doing this in a sharded environment, it may be "interesting". Good Luck! Erick On Mon, Aug 18, 2014 at 2:03 PM, Dave Seltzer wrote: > Thanks Erick, > > I'm not sure I need to score the documents based on the numeric value, but > I am interested in being able to calculate the average (

Re: Combining a String Tag with a Numeric Value

2014-08-18 Thread Dave Seltzer
Thanks Erick, I'm not sure I need to score the documents based on the numeric value, but I am interested in being able to calculate the average (Mean) of all the numeric values for a given tag. For example, what is the average confidence of Tag1 across all documents. I'm not sure I can do that wi

Re: Combining a String Tag with a Numeric Value

2014-08-18 Thread Erick Erickson
Hmmm, there's no particular "right way". It'd be simpler to index these as two separate fields _if_ there's only one pair per document. If there are more and you index them as two mutliValued fields, there's no good way at _query_ time to retain the association. The returned multiValued fields are