It's already in trunk, so if you can use one of the nightly builds you could start using it now, see: https://hudson.apache.org/hudson/job/Solr-trunk/
<https://hudson.apache.org/hudson/job/Solr-trunk/>Best Erick On Tue, Nov 16, 2010 at 9:30 PM, Peter Wang <wangx...@gmail.com> wrote: > Peter Wang <wangx...@gmail.com> writes: > > > reply myself > > I find a PPT[1] about solr, it call such thing as "Field Collapsing" . > > It will be added to solr 1.5? unfortunately, I am using Solr 1.4 > > for solr 1.4, is there other solutions for such task? > > [1] http://lucene-eurocon.org/slides/Solr-15-and-Beyond_Yonik-Seely.pdf > > > Hi, all. > > > > I am using solr running multiple indexes, by Flattening Data Into a > > Single Index [1]. > > > > A type field in schema to stand for type of document, say it has > > following options: book, movie, music > > > > When query it, some types may have more result rows than others, for > > example, we need 3 result rows, one for each type. but it may return > > results only containing one type by default ranking. > > > > My question is how to limit result rows by each type, so in above case > > result covers all types, one result for each type. > > > > Is there such solr/lucene query syntax or other ways can do it? > > > > currently, what i got is do a query for each type, so it may limit > > result rows for each type. but it must do query many times and may be > > very slow when i have many types. > > > > Thanks for your suggestions. > > > > -- > > [1] > > > http://wiki.apache.org/solr/MultipleIndexes#Flattening_Data_Into_a_Single_Index > > > > > > -peter > >