com.groupbyinc.flux.common.apache.lucene.search.similarities.BM25Similarity.class Maven / Gradle / Ivy
???? 4p Kcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity Gcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity BM25Similarity.java Ucom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats BM25Stats Ycom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25DocScorer
BM25DocScorer Qcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimWeight SimWeight Qcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimScorer SimScorer k1 F b discountOverlaps Z OLD_LENGTH_TABLE [F LENGTH_TABLE (FF)V ()V
java/lang/Float ! isFinite (F)Z # $
" % "java/lang/IllegalArgumentException ' java/lang/StringBuilder )
* illegal k1 value: , append -(Ljava/lang/String;)Ljava/lang/StringBuilder; . /
* 0 (F)Ljava/lang/StringBuilder; . 2
* 3 %, must be a non-negative finite value 5 toString ()Ljava/lang/String; 7 8
* 9 (Ljava/lang/String;)V ;
( < isNaN > $
" ? illegal b value: A , must be between 0 and 1 C E G this MLcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity;?????@
M idf (JJ)F?? java/lang/Math S log (D)D U V
T W docFreq J docCount
sloppyFreq (I)F distance I scorePayload >(IIILcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)F doc start end payload 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; avgFieldLength I(Lcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics;)F Dcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics i sumTotalTermFreq ()J k l
j m [ l
j o???????? maxDoc s l
j t collectionStats FLcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics; setDiscountOverlaps (Z)V v getDiscountOverlaps ()Z computeNorm D(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInvertState;)J ?com/groupbyinc/flux/common/apache/lucene/index/FieldInvertState getLength ()I ? ?
? ?
getNumOverlap ? ?
? ? getIndexCreatedVersionMajor ? ?
? ? 8com/groupbyinc/flux/common/apache/lucene/util/SmallFloat ?
intToByte4 (I)B ? ?
? ? sqrt ? V
T ? floatToByte315 (F)B ? ?
? ? state ALcom/groupbyinc/flux/common/apache/lucene/index/FieldInvertState; numTerms indexCreatedVersionMajor
idfExplain ?(Lcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics;Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics;)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; >com/groupbyinc/flux/common/apache/lucene/search/TermStatistics ? Y l
? ? O P
? Lidf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: ? ;com/groupbyinc/flux/common/apache/lucene/search/Explanation ? Y match ?(FLjava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation;)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; ? ?
? ? [ termStats @Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; df ?(Lcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics;[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics;)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; java/util/ArrayList ?
? A[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; ? java/util/List ? ? ?
? add (Ljava/lang/Object;)Z ? ? ? ? getValue ()F ? ?
? ? idf(), sum of: ? h(FLjava/lang/String;Ljava/util/Collection;)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; ? ?
? ? =Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; stat D details OLjava/util/List; Ljava/util/List;
computeWeight ?(FLcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics;[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics;)Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimWeight; ? ?
? g h
? ? ? field ? 8
j ? X(Ljava/lang/String;FLcom/groupbyinc/flux/common/apache/lucene/search/Explanation;F[F[F)V ?
? i boost avgdl oldCache cache simScorer ?(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimWeight;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimScorer; java/io/IOException ? @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ? reader =()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader ? getMetaData ?()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafMetaData; ? ?
? ? ;com/groupbyinc/flux/common/apache/lucene/index/LeafMetaData ? getCreatedVersionMajor ? ?
? ?
access$000 k(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;)Ljava/lang/String; ? ?
?
getNormValues U(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/index/NumericDocValues; ? ?
? ? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity;Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;ILcom/groupbyinc/flux/common/apache/lucene/index/NumericDocValues;)V
stats SLcom/groupbyinc/flux/common/apache/lucene/search/similarities/Similarity$SimWeight; context BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; bm25stats WLcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;
explainTFNorm(ILcom/groupbyinc/flux/common/apache/lucene/search/Explanation;Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;Lcom/groupbyinc/flux/common/apache/lucene/index/NumericDocValues;[F)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation; parameter k1 %parameter b (norms omitted for field) 9tfNorm, computed as (freq * (k1 + 1)) / (freq + k1) from: ?com/groupbyinc/flux/common/apache/lucene/index/NumericDocValues advanceExact (I)Z
longValue l
parameter b
access$800 Z(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;)F
g fieldLength" ftfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:$ norm B doclen freq norms ALcom/groupbyinc/flux/common/apache/lucene/index/NumericDocValues; lengthCache subs explainScore
access$900/
0 ? access$1000 ?(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation;34
5
7
score(doc=9 (I)Ljava/lang/StringBuilder; .;
*< ,freq=> -(Ljava/lang/Object;)Ljava/lang/StringBuilder; .@
*A ), product of:C boostExpl
tfNormExpl BM25(k1=G ,b=I )K getK1 getB
access$200 P(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity;)F x0
access$300 ()[F
access$500
access$700d(Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity;ILcom/groupbyinc/flux/common/apache/lucene/search/Explanation;Lcom/groupbyinc/flux/common/apache/lucene/search/similarities/BM25Similarity$BM25Stats;Lcom/groupbyinc/flux/common/apache/lucene/index/NumericDocValues;[F)Lcom/groupbyinc/flux/common/apache/lucene/search/Explanation;.
W x1 x2 x3 x4 x5 byte315ToFloat (B)F_`
?a
byte4ToInt (B)Icd
?e f Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions
SourceFile InnerClasses ! h ? t*? *? #? &? #?? #? (Y? *Y? +-? 1#? 46? 1? :? =?$? @? $?? $?? #? (Y? *Y? +B? 1$? 4D? 1? :? =?*#? F*$? H? i t I J t t j &