Hi Mikhail, this was a Lucene question, so Solr request examples are not so useful for the user. The right keyword is to use IndexSearcher's explain functionality.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Mikhail Khludnev [mailto:m...@apache.org] > Sent: Monday, August 29, 2016 2:17 PM > To: java-user@lucene.apache.org > Subject: Re: Lucene 6.1: number of hits per document > > try fl=*,tf(text,'run') > or check explanation on debugQuery=true > it's present in lines with termFreq or tf() > > On Mon, Aug 29, 2016 at 1:02 PM, szzoli <reg9sz...@freemail.hu> wrote: > > > I was searching for a word in an index (multiple files were indexed in a > > library). I was searching e.g for "run". A document contained two times, an > > other three times this word. > > I would like to see int the result for the firs document "2", for the other > > "3". > > > > Thank you > > > > > > Adrien Grand wrote > > > What do you mean by "number of hits per documents"? Can you give an > > > example > > > maybe? > > > > > > Le jeu. 25 août 2016 à 16:29, szzoli > > > < > > > reg9sz...@freemail.hu > > > > > > > a écrit : > > > > > >> Hi, > > >> > > >> I would like to get the number of hits per document. > > >> I googled around a lot, there were code snipplets for older versions. > > >> None > > >> of them works with Lucene 6.1. > > >> > > >> Any help would be appreciated. > > >> > > >> > > >> > > >> -- > > >> View this message in context: > > >> http://lucene.472066.n3.nabble.com/Lucene-6-1-number- > > of-hits-per-document-tp4293245.html > > >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > >> For additional commands, e-mail: java-user-h...@lucene.apache.org > > >> > > >> > > > > Quoted from: > > http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per- > document- > > tp4293245p4293687.html > > > > > > > > > > -- > > View this message in context: http://lucene.472066.n3. > > nabble.com/Lucene-6-1-number-of-hits-per-document- > tp4293245p4293755.html > > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > > -- > Sincerely yours > Mikhail Khludnev --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org