Zing Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 02:19 AM
I am trying to adjust weight of the search article in the portal.
Example Scenario
Article A:
Name: "Akuttbehandling"
Content: AkuttmottakSV is critical for emergency services. AkuttmottakSV procedures must be followed strictly.
Metadata: "akuttmottakSV, sykehus, behandling, akuttmottakSV, akuttmottakSV"
Article B:
Name: "Sykehusets roller"
Content: Every sykehus has an akuttmottakSV section for emergencies.
Metadata: "sykehus, akuttmottakSV, behandling"
Article C:
Name: "AkuttmottakSV prosedyre"
Content: The akuttmottakSV prosedyre is crucial. AkuttmottakSV ensures quick response..
Metadata: "akuttmottakSV, prosedyre, sykehus"
Current Search Result for "akuttmottakSV":
Article C (first)
Article A (second)
Article B (third)
Desired Search Result for "akuttmottakSV":
Article A (first, because it has "akuttmottakSV" mentioned 3 times in metadata and 2 times in content, total 5 mentions)
Article C (second, because it has "akuttmottakSV" mentioned 1 time in metadata and 2 times in content, total 3 mentions)
Article B (third, because it has "akuttmottakSV" mentioned 1 time in metadata and 1 time in content, total 2 mentions)
To do this I adjust the ts_weight as follows:
Meta: ts_weight=20
Title (short_description): ts_weight=8
Content (text): ts_weight=5
I am still not getting the desired output. I am not sure if I am reindexing the table correctly after I change the ts_weight. Any experts who can help me?