Weighting based on meta "Content"


#1

Hello,

I would like to weight my search based on the text in the “content” meta tag.

I am trying to add this information to my “weights” tab as I am using the standard (non-API) configuration. Unfortunately “Content” does not show up as a field in the weights tab and I cannot figure out what I am doing wrong :frowning:

Any help is appreciated.


#2

Hi Steve,

I think that you need to also specify the meta tag data-type and possibly the swiftype class like this:

<meta class="swiftype" name="keywords" data-type="string" content="content goes here" />

There’s more information on it here: https://swiftype.com/documentation/site-search/crawler-features#meta_tags.

Hope this helps!
-R