Re: access payload from HitCollector.collect()

2010-03-22 Thread Grant Ingersoll
On Mar 22, 2010, at 8:56 AM, prasenjit mukherjee wrote: > I am trying to implement oracle's aggregation like SQL's ( e.g. > SUM(col3) where col1='foo' and col2='bar' ) using lucene's payload > feature. > > I can add the integer_value ( of col3 ) as a payload to my searchable > fields ( col1 and

access payload from HitCollector.collect()

2010-03-22 Thread prasenjit mukherjee
I am trying to implement oracle's aggregation like SQL's ( e.g. SUM(col3) where col1='foo' and col2='bar' ) using lucene's payload feature. I can add the integer_value ( of col3 ) as a payload to my searchable fields ( col1 and col2 ). I can probably extend the DefaultSImilarity's scorePayload()