Candys Posted February 21, 2023 Share Posted February 21, 2023 Hello. How can I make for the following: Let's say I have a tag named 720p and a category named Action. I want that when the user enters "Action 720p" into the search, suitable videos are shown to him (which have the 720p tag and the Action category) - while I want this page to be indexed by Google. How to do it? Or does it already work in KVS? I'm afraid that creating "Action 720p" tags will create duplicate content since I already have a 720p tag. Quote Link to comment Share on other sites More sharing options...
Candys Posted February 21, 2023 Author Share Posted February 21, 2023 Sorry didn't have time to edit. I'll update the post with your permission. Example 2. Let's say I have a "720p" tag, "full" tag, and an "Action" category. How to make it so that when entering the query "Action 720p full" into the search on the site, the user will be shown pages that have the tags "720p", "full" and the "Action" category - Regardless of the name of the content pages in list. Of course, I want a page with a list suitable for this query to be indexed by Google. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 21, 2023 Share Posted February 21, 2023 Do you mean you want each word in search request to be considered as tag? I would say, it is possible to have this, but it can't be possible to combine this search into the same block as regular text search. You can have either regular text search (which searches in video title / description, and in tags / categories, but it doesn't split search term into words), or you can have search in tags by splitting search term into words and looking for tags. Or alternatively you can try using Sphinx search: https://www.kernel-scripts.com/en/articles/kvs-and-sphinx-integration/ Sphinx search script is searching in all fields and you can set up weights for them: $sphinx->SetFieldWeights(array ('title' => 20, 'description' => 10, 'categories' => 15, 'tags' => 15, 'models' => 15, 'content_source_title' => 15, 'dvd_title' => 15)); But you need to check with Sphinx docs, KVS does not provide any support for it and while we think it might work from default settings, it actually might not. Quote Link to comment Share on other sites More sharing options...
Candys Posted March 1, 2023 Author Share Posted March 1, 2023 On 2/21/2023 at 1:46 PM, Tech Support said: Do you mean you want each word in search request to be considered as tag? I would say, it is possible to have this, but it can't be possible to combine this search into the same block as regular text search. You can have either regular text search (which searches in video title / description, and in tags / categories, but it doesn't split search term into words), or you can have search in tags by splitting search term into words and looking for tags. Or alternatively you can try using Sphinx search: https://www.kernel-scripts.com/en/articles/kvs-and-sphinx-integration/ Sphinx search script is searching in all fields and you can set up weights for them: $sphinx->SetFieldWeights(array ('title' => 20, 'description' => 10, 'categories' => 15, 'tags' => 15, 'models' => 15, 'content_source_title' => 15, 'dvd_title' => 15)); But you need to check with Sphinx docs, KVS does not provide any support for it and while we think it might work from default settings, it actually might not. Can you tell me how the default search works in general? does it work strictly by title? The fact is that when I drive the name of an actor into the search, it shows only those films in which this actor is indicated in the title and a bunch of irrelevant films (it does not show films in which the actor is indicated (not in the title) Quote Link to comment Share on other sites More sharing options...
Tech Support Posted March 6, 2023 Share Posted March 6, 2023 The search is customizable. I think by default search is not looking into models, but you can enable that in Website UI -> Pages -> Search Content page -> Videos List Search Result block using enable_search_on_models parameter. Quote Link to comment Share on other sites More sharing options...
Candys Posted March 6, 2023 Author Share Posted March 6, 2023 Awesome, it worked. Now I want the same for tags. The fact is that in the first message of this thread, I meant that the search does not work for tags. How can we do the same for tags? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted March 7, 2023 Share Posted March 7, 2023 Search in tags and categories is enabled by default. You can see in the same block that enable_search_on_tags and enable_search_on_categories parameters should be enabled. 1 Quote Link to comment Share on other sites More sharing options...
Candys Posted March 7, 2023 Author Share Posted March 7, 2023 I played around with the settings and found that I needed to change the "Search Method" - to exact match. Now I get relevant search results. Thank you Quote Link to comment Share on other sites More sharing options...
Tech Support Posted March 8, 2023 Share Posted March 8, 2023 19 hours ago, Candys said: I played around with the settings and found that I needed to change the "Search Method" - to exact match. Now I get relevant search results. Thank you Please note that this method will not work well for multi-words queries. It is not suited well for natural languages. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.