DocumentWeightingRules
TextSearchおよび関連関数のオプションで,検索指標内のフィールドの値に基づいてドキュメントの重みを指定できるようにする.
詳細
- DocumentWeightingRules -> <|"field1" -> <|val11 -> weight11, val12 -> weight12, …|>, "field2" -> <|…|>, …|>は,フィールド"fieldi"内の値 valijを持つドキュメントのスコアが weightij倍されることを意味する.
- DocumentWeightingRulesに使われるフィールドの"Stored"オプションまたは "BulkRetrievalOptimized"オプションは,ContentFieldOptionsでTrueに設定されていなければならない.
- パフォーマンスのために,"BulkRetrievalOptimized"は"Stored"であることが望ましい.
例題
すべて開く すべて閉じる考えられる問題 (2)
ドキュメントの重み付けは,ファイルではなく索引について計算しているときにのみ適用される:
ドキュメントの重み付けに使われるフィールドの"Stored"または"BulkRetrievalOptimized"は,索引のContentFieldOptionsでTrueに設定されていなければならない:
テキスト
Wolfram Research (2017), DocumentWeightingRules, Wolfram言語関数, https://reference.wolfram.com/language/ref/DocumentWeightingRules.html.
CMS
Wolfram Language. 2017. "DocumentWeightingRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DocumentWeightingRules.html.
APA
Wolfram Language. (2017). DocumentWeightingRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DocumentWeightingRules.html
BibTeX
@misc{reference.wolfram_2025_documentweightingrules, author="Wolfram Research", title="{DocumentWeightingRules}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/DocumentWeightingRules.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_documentweightingrules, organization={Wolfram Research}, title={DocumentWeightingRules}, year={2017}, url={https://reference.wolfram.com/language/ref/DocumentWeightingRules.html}, note=[Accessed: 01-May-2026]}