Calculate the weight field value for the words in the list.
Declaration Syntax
C# | C# | Visual Basic | Visual Basic | Visual C++ | Visual C++ | F# | F# |
[ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)] protected virtual void CalculateWordsRelevancy( ArrayList wordsList )
[ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)] protected virtual void CalculateWordsRelevancy( ArrayList wordsList )
<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)> Protected Overridable Sub CalculateWordsRelevancy ( wordsList As ArrayList )
<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)> Protected Overridable Sub CalculateWordsRelevancy ( wordsList As ArrayList )
protected: [ObsoleteAttribute(L"Renamed, use CalculateWordRelevancies", true)] virtual void CalculateWordsRelevancy( ArrayList^ wordsList )
protected: [ObsoleteAttribute(L"Renamed, use CalculateWordRelevancies", true)] virtual void CalculateWordsRelevancy( ArrayList^ wordsList )
[<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)>] abstract CalculateWordsRelevancy : wordsList : ArrayList -> unit [<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)>] override CalculateWordsRelevancy : wordsList : ArrayList -> unit
[<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)>] abstract CalculateWordsRelevancy : wordsList : ArrayList -> unit [<ObsoleteAttribute("Renamed, use CalculateWordRelevancies", true)>] override CalculateWordsRelevancy : wordsList : ArrayList -> unit
Parameters
- wordsList (ArrayList)
- ArrayList of Word objects, with inBody, in Title, inURL fields filled
Remarks
This method defines the relationship between the occurrences (hits) in the document
and the weight of the words in the document.
Eg.
A document contains 4 words;
"this", "is", "this", "example".
The document's title is;
"example"
The document's URL is;
http://localhost/example.html
If phrase matching is enabled, when the build is performed the wordsList parameter will contain
Word objects with the following data:
If phrase matching is disabled, when the build is performed the wordsList parameter will contain
Word objects with the following data:
This method is then called to calculate the Weight property in the Word objects (by default it uses the weight coefficients).
This method can therefore be overridden with custom rules for weighting.
Copy | |
---|---|
wordsList[0] = "this", inUri=0, inTitle=0, inBody=1 wordsList[1] = "is", inUri=0, inTitle=0, inBody=1 wordsList[2] = "this", inUri=0, inTitle=0, inBody=1 wordsList[3] = "example", inUri=1, inTitle=1, inBody=1 |
Copy | |
---|---|
wordsList[0] = "this", inUri=0, inTitle=0, inBody=2 wordsList[1] = "is", inUri=0, inTitle=0, inBody=1 wordsList[2] = "example", inUri=1, inTitle=1, inBody=1 |
Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2015.6.15.120