tfidf especially unreliable for such microindexes. &debugQuery=true can explain why exactly.
On Tue, Aug 2, 2016 at 4:57 PM, syegorius <superyegor...@gmail.com> wrote: > I have 4 records index by Solr: > > 1 hello planet dear friends > 2 hello world dear friends > 3 nothing > 4 just friends > > I'm searching with this query: > > select?q=world+dear+friends&wt=json&indent=true > > The result is: > > 1 hello planet dear friends > 2 hello world dear friends > 4 just friends > > But as you can see first record has 2 matches, second - 3 and fourth - 1 > and > i need the sequence of the result was: > > 2 hello world dear friends //3 matches > 1 hello planet dear friends //2 matches > 4 just friends//1 match > > How can i do that? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-sort-search-results-by-count-matches-tp4290022.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev