fix(analytics): filter out common file extensions from topic words
Excludes image, video, audio, and document file extensions from the topic word extraction process to improve the quality of generated analytics topics.
This commit is contained in:
1 parent
2bf48f6cd0
commit
67daea2f52
1 file changed
+9
@@ -361,6 +361,15 @@ export class AnalyticsRepository {
|
|||||||
'mana','cuma','kah','udh','gitu','gini','gtu','gni',
|
'mana','cuma','kah','udh','gitu','gini','gtu','gni',
|
||||||
'mending','wkakak','wakak'
|
'mending','wkakak','wakak'
|
||||||
)
|
)
|
||||||
|
AND word NOT LIKE '%.jpg'
|
||||||
|
AND word NOT LIKE '%.jpeg'
|
||||||
|
AND word NOT LIKE '%.png'
|
||||||
|
AND word NOT LIKE '%.gif'
|
||||||
|
AND word NOT LIKE '%.webp'
|
||||||
|
AND word NOT LIKE '%.mp4'
|
||||||
|
AND word NOT LIKE '%.mp3'
|
||||||
|
AND word NOT LIKE '%.pdf'
|
||||||
|
AND word NOT LIKE '%.zip'
|
||||||
GROUP BY word
|
GROUP BY word
|
||||||
ORDER BY COUNT(*) DESC
|
ORDER BY COUNT(*) DESC
|
||||||
LIMIT 10
|
LIMIT 10
|
||||||
|
|||||||
Reference in new issue
Block a user