indexsearcher.search
indexsearcher.createnormalizedweight(query)
phrasequery.createweight
new phraseweight
indexsearcher.getsimilarity()
defaultsimilarity.idfexplain
weight.normalize
indexsearcher.search(weight)
topscoredoccollector.setnextreader
phraseweight.scorer
readonlysegmentreader.termpositions
segmenttermpositions.seek(term)
terminfosreader.get(term)
segmenttermpositions.seek(terminfo ti, term term)
fieldinfos.fieldinfo(string fieldname)
new postingsandfreq
arrayutil.mergesort(postingsandfreq)
new exactphrasescorer
exactphrasescorer.score(collector)
exactphrasescorer.nextdoc
topscoredoccollector.collect(doc)
exactphrasescorer.score()
topscoredoccollector.topdocs
lucene寫索引的函式呼叫關係
函式的呼叫構成一棵樹,同等深度的為兄 樹,更深的為更淺的後代。indexwriter.adddocument documentswriter.updatedocument docfieldprocessorperthread.processdocument storedfieldswriterper...
lucene布林查詢子句關係
occur用於表示布林查詢子句關係的類,包括 occur.must,occur,must not occur.should 1,must和must 取得連個查詢子句的交集 2,must和must not 包含must並且查詢結果中不包含must not的檢索結果 3,should和should 表示...
呼叫函式和被呼叫函式的關係
1 當在乙個函式的執行期間呼叫另乙個函式時,在執行被呼叫函式之前,系統需要完成三件事情 1 將所有的實參 返回位址等資訊傳遞給被呼叫函式儲存 2 為被呼叫函式的區域性變數分配儲存區 3 將控制轉移到被調函式的入口。2 從被呼叫函式返回到呼叫函式之前,系統要做三件事情 1 儲存被調函式的計算結果 2 ...