Author Topic: keywords in description for searchability  (Read 144 times)

rage76

  • Jr. Member
  • **
  • Posts: 163
keywords in description for searchability
« on: September 16, 2020, 09:34:04 am »
I find that presently there is no search component / extension for virtuemart that can search in product meta keywords or meta description.

This is required for variations in spellings as well. Can anyone guide me how this can be achieved.

Also, I have found that if I add a few keywords to main product description, the product starts showing in the search. Is it advisable to do so, especially when I would like to make that text invisible by matching it's color to the background?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4362
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: keywords in description for searchability
« Reply #1 on: September 16, 2020, 14:51:52 pm »
Hi,
Using the long description slowdown your search but a solution is to use a class to hide the text.
In bootstrap 4
Quote
<div class="invisible">YOUR TEXT HERE<>
In old bootstrap
Quote
<div class="hidden">YOUR TEXT HERE<>

If you dont use bootstrap you can use sam trick and add CSS

Code: [Select]
.hidden {
  display: none !important;
  visibility: hidden !important;
}


balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1418
Re: keywords in description for searchability
« Reply #2 on: September 16, 2020, 16:21:29 pm »
There are search extensions for Virtuemart.
I suggest checking Custom Filters.
https://breakdesigns.net/extensions/joomla/custom-filters
Which searches also into the meta fields.

rage76

  • Jr. Member
  • **
  • Posts: 163
Re: keywords in description for searchability
« Reply #3 on: September 16, 2020, 16:41:18 pm »
Hello Studio 42, thanks for the tip.

my site uses bootstrap 2 or 3. Not too sure about it. will it still work? Can I use "comma" for multiple keywords or do I need to use individually?
Also, how is it better than simply adding text and changing color to match the background?

As for css, how to use it for every product? I am not a coder so pardon my question.

Dear Balai, I have seen this extension by breakdesigns but I do not know how it will improve the searchability of my current search extension. The demo doesn't clear this.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4362
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: keywords in description for searchability
« Reply #4 on: September 16, 2020, 17:31:59 pm »
using color background mean a blank space in your page.
Try to add in your HTML <div class="invisible">YOUR, TEXT, HERE<div> or <div class="invisible">YOUR, TEXT, HERE<div> depending your bootstrap release.
Another solution is tu use the short_desc. But i think that you need to display it ?
I think that meta keyword should be add in the config as searchable fields, because this are not anymore used by search engines, but i'm not anymore a core developer. So only the team can add it so the modification is not loosed on virtuemart updates