> The problem is that the same house can have different prices
> for different
> dates.
> 
> If I denormalyze this data, I will show the same house
> multiple times in
> the resultset, and I don't want this.
> 
> So, for example:
> 
> House  Holyday       Price per
> day
> 1          Xmas     
>     $ 75.00
> 1          July 4   
>       $ 50.00
> 1         
> Valentine's   $ 15.00
> 2          Xmas     
>      $ 50.00
> 2          July 4   
>       $ 10.00
> 
> If I query for all data, I'll get 3 documents for the same
> house (house 1),
> but I just want to show it one time to the end-user.
> 
> There is some way to do this in Solr (Without processing it
> in my app)?


http://wiki.apache.org/solr/FieldCollapsing could work.

Reply via email to