# Trim off Website Name Programatically?

**URL:** <https://discuss.elastic.co/t/trim-off-website-name-programatically/302037>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [April 9, 2022, 6:02pm UTC](https://discuss.elastic.co/t/trim-off-website-name-programatically/302037 "2022-04-09T18:02:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Parsons](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christopher_parsons/32/104205_2.png) [@Christopher\_Parsons](https://discuss.elastic.co/u/Christopher_Parsons)\
**Post date:** [April 9, 2022, 6:02pm UTC](https://discuss.elastic.co/t/trim-off-website-name-programatically/302037/1 "2022-04-09T18:02:37Z")

</div>

I'd be interested in finding a way to trim off the " - Knowledge  
Architecture" at the end of our search results without having to  
reconfigure our CMS and therefore messing with the way search results  
present on Google. The site name makes sense in an external search engine  
but is just noisy on our website. See attached screenshots.

Thanks!  
Chris

 ![Screen Shot 2022-04-09 at 10.52.11 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/3/93959bc52c98d339a19229c4352c1aed310f0fe3.jpeg)  
 ![Screen Shot 2022-04-09 at 10.56.28 AM](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0bfd2f67abd49962baae5e69f1eeefdb42b9e749.png)

---

<div class="post-metadata">

**Author:** ![Byron\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/byron_h/32/82245_2.png) [@Byron\_H](https://discuss.elastic.co/u/Byron_H)\
**Post date:** [April 12, 2022, 5:08pm UTC](https://discuss.elastic.co/t/trim-off-website-name-programatically/302037/2 "2022-04-12T17:08:13Z")

</div>

We don't have a way to do this within Site Search after your page has been crawled, but you could try using meta tags to set the `title` field manually, like

```auto
<meta class="swiftype" name="title" data-type="string" content="page title" />

```

Note the use of `class="swiftype"`

For more information on this, you can read [our documentation for Crawler Based Engine Schema Design](https://swiftype.com/documentation/site-search/guides/schema-design#crawler)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2022, 5:09pm UTC](https://discuss.elastic.co/t/trim-off-website-name-programatically/302037/3 "2022-05-10T17:09:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
