How to associate meta tag field in search result in configuration?

meta-tags

#1

With out-of-box customize appearance search result content on Swiftype account dashboard, there is only a list of fields to select from. But we’d like to use the page description, which is tagged by meta tag name=“description”, for the secondary attribute, same as what GSS do. The default section randomly provide a few words from the page, not ideal. However cannot find option to include the meta tag in the drop down list. Has anyone have any ideas to accomplish this with configuration? Please help!


#2

I too, would like to know if this is possible, as I am currently working towards a resolution of this issue using the jQuery plugin.


#3

Thanks for reply. Will you please elaborate your solution?
I was thinking add the class=“swiftype” for the meta tag on our page templates, since the engine cannot crawl on our test environment, I’m not sure if it will work out. and it is too late for our deployment schedule.


#4

I have no solution yet, I am just testing various things right now, none of which have worked out yet.

However, if you are trying to reference the meta tags in the same origin, and you’re using jQuery, you can do something like:

jQuery(".st-result").each(function(){
var theHref = jQuery(this).find(‘a’);
var theNewHref = theHref.attr(‘href’);
console.log(theNewHref);
jQuery.get(theNewHref,
function(data) {
console.log("meta description: " + jQuery(data).find(‘meta[name=description]’).attr(“content”));
});
});

Hope that helps


#5

Thank you for sharing your solution, that make sense. Thought you are trying the API. However for us right now, since it still need to goes into release, which is out of option now.


#6

Hey gang,

Custom swiftype metatags are the recommended solution if you have template level controls. If you do not, and need to capture the standard description or keywords meta data, please reach out to the support team via your Swiftype dashboard. We’ll be able to assist further from there.


#7

Hi Mike, i has started with sending message to support team via dashboard 2 days ago, but get no respond at all. Not very thrilled about this experience. so regarding the topic, are you saying there is nothing else can be done via configuration on dashboard other than modify our pages with swiftype metatags? which would be too late for our situation.


#8

Hi Christine,

I just checked the help center and saw that we replied to you within hours of receiving your initial message (though the understanding of the context might not have been clear).

I’m sorry you didn’t receive this response. Please check your spam/junk folder to see if it wound up there and whitelist the swiftype.com domain with your mail client and server.

We’ll also reply to your follow up message in the help center today.


#9

Thank you for helping Mike. But I double and triple checked, not getting any email from support team, nor any notification from dashboard. I’ll ask our network to see if it has been blocked somewhere.


#10

Hi Mike, our email server admin finally able to release the support emails for me, it comes from mail6.helpscout.net


#11

That’s super helpful to know. Thanks, Christine!

We’re in the midst of updating our support portal process, so this shouldn’t be an issue for much longer. Fingers crossed the new changes don’t lead to a new one. :grimacing: