parent-child relationship in lucene - to avoid reindexing if parent information changes

2016-08-29 Thread Kumaran Ramasubramanian
Hi All, Am building a sample application, where a group of members can interact as a chat room. i am trying to enable search for message level search... If i denormalize group_name & group_members in every lucene document, then below cases will reindex more number of lucene documents... 1. edi

Re: Lucene 6.1: number of hits per document

2016-08-29 Thread Mikhail Khludnev
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 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 tw

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: MultiFields#getTerms docs clarification

2016-08-29 Thread Michael McCandless
Seems like you need to scrutinize exactly what documents were indexed in step 3? How exactly did you copy documents out of the old index? Note that when Lucene's IndexReader returns a Document, it's not the same Document that was indexed in the first place: it will only have fields that were stor

Re: Lucene 6.1: number of hits per document

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