You can't do this with boosting. Boosting affects scoring, i.e. the ranking. I'd expect this to show many topic As before anything else, other things being equal.
For a limited number of topics, you could group by the topic and get the top 70 of each, throwing away the extras in topics B and C. You could also fire off three separate queries. Best, Erick On Mon, Sep 10, 2018 at 7:42 AM Erick Erickson <erickerick...@gmail.com> wrote: > > You can't do this with boosting. Boosting affects scoring, i.e. the ranking. > I'd expect this to show > On Mon, Sep 10, 2018 at 12:37 AM sara hajili <hajili.s...@gmail.com> wrote: > > > > Hi > > I have some docs in my solr index. and now i want to run a query. please > > help me how create this query? > > i have documents like this: > > { > > topic_code:"A" > > }, > > { > > topic_code:"B" > > }, > > { > > topic_code:"A" > > }, > > { > > topic_code:"A" > > }, > > { > > topic_code:"C" > > }, > > { > > topic_code:"A" > > },.. > > now i want to get respanse from a solr 100 dosuments , and i want to have > > 70 document with topic_code:A and 10 documents with topic_code:B and 20 > > document with topic_code:C. > > so i guess i need SOLR BOOST QUERY. > > some thing like this : > > q=(topic_code:A)^70 OR (topic_code:B)^20 OR (topic_code:C)^10 & row=100 > > but this isn't work. > > could u help me to create a suitable query and get my best result ? > > tnx.