Re: Lucene 6.1: number of hits per document

2016-09-02 Thread szzoli
This link helped me, it contained the solution. Thank you! -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294403.html Sent from the Lucene - Java Users mailing list archive at Nabble.com

Re: Lucene 6.1: number of hits per document

2016-09-02 Thread Adrien Grand
t the hits in the approriate document? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294308.html > Sent from the Lu

Re: Lucene 6.1: number of hits per document

2016-09-01 Thread szzoli
.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294308.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For

Re: Lucene 6.1: number of hits per document

2016-09-01 Thread Adrien Grand
te these objects, too? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294286.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --

Re: Lucene 6.1: number of hits per document

2016-09-01 Thread szzoli
message in context: http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294286.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-user

Re: Lucene 6.1: number of hits per document

2016-09-01 Thread Adrien Grand
Maybe you should clarify your use-case. For instance Uwe was assuming that you needed this information for debugging purposes while I was assuming that you needed it for your application logic. Le jeu. 1 sept. 2016 à 14:20, szzoli a écrit : > "If the Query is a TermQuery, you can get this number

Re: Lucene 6.1: number of hits per document

2016-09-01 Thread szzoli
om/Lucene-6-1-number-of-hits-per-document-tp4293245p4294279.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,

RE: Lucene 6.1: number of hits per document

2016-08-31 Thread Uwe Schindler
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 &

Re: Lucene 6.1: number of hits per document

2016-08-31 Thread szzoli
? To Mikhail Khludnev-2: What is " fl=*,tf(text,'run') " ? -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294117.html Sent from the Lucene - Java Users mailing list a

Re: Lucene 6.1: number of hits per document

2016-08-29 Thread Mikhail Khludnev
ocuments"? 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 h

Re: Lucene 6.1: number of hits per document

2016-08-29 Thread Adrien Grand
Le lun. 29 août 2016 à 12:00, a écrit : > 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 >

Re: Lucene 6.1: number of hits per document

2016-08-29 Thread szzoli
ou 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

Re: Lucene 6.1: number of hits per document

2016-08-28 Thread Adrien Grand
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 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. Non

Lucene 6.1: number of hits per document

2016-08-25 Thread szzoli
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

Re: number of hits per document

2008-06-17 Thread Chris Hostetter
: > I could do it that way, but couting the spans per document is specific to : > SpanQuerys. I would still have to count hits for TermQuerys separately. I : > was looking for a generic way to count hits for any instance of Query within : > a document. the orriginal Query, Weight, and Scorer APIs

Re: number of hits per document

2008-06-10 Thread Spencer Tickner
ow often the >> doc() method changes. >> >> HTH, >> Grant >> On Jun 9, 2008, at 11:21 AM, John Byrne wrote: >> >>> Hi, >>> >>> Is there an easy way to find out the number of hits per document for a >>> Query, rather than just for

Re: number of hits per document

2008-06-10 Thread John Byrne
an easy way to find out the number of hits per document for a Query, rather than just for a Term? Let's say, for example, I have a document like this: "here is cats near dogs and here is cats a long long way from dogs" and I use a SpanNearQuery to find "cats" near &

Re: number of hits per document

2008-06-10 Thread Grant Ingersoll
wrote: Hi, Is there an easy way to find out the number of hits per document for a Query, rather than just for a Term? Let's say, for example, I have a document like this: "here is cats near dogs and here is cats a long long way from dogs" and I use a SpanNearQuery to find &q

number of hits per document

2008-06-09 Thread John Byrne
Hi, Is there an easy way to find out the number of hits per document for a Query, rather than just for a Term? Let's say, for example, I have a document like this: "here is cats near dogs and here is cats a long long way from dogs" and I use a SpanNearQuery to find "cats