# Search Weighting (URL)

**URL:** <https://discuss.elastic.co/t/search-weighting-url/219304>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [February 14, 2020, 4:08am UTC](https://discuss.elastic.co/t/search-weighting-url/219304 "2020-02-14T04:08:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevetso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevetso/32/27438_2.png) [@stevetso](https://discuss.elastic.co/u/stevetso)\
**Post date:** [February 14, 2020, 4:08am UTC](https://discuss.elastic.co/t/search-weighting-url/219304/1 "2020-02-14T04:08:49Z")

</div>

Our URLs contains the keywords and would like to adjust the weighting.

For example: [Now E - 404 Page](https://www.nowe.com/movie/Parasite-92111)

This content is indexed into the site search but unable to search with keyword "parasite".

I tried to adjust the weighting of "url" to "4" but still unable to search this content with keyword "parasite".

Is it possible to be supported by Site Search?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 14, 2020, 11:52am UTC](https://discuss.elastic.co/t/search-weighting-url/219304/2 "2020-02-14T11:52:47Z")

</div>

From some quick testing, It doesn't appear to me that Site Search is capable of matching partial results on "url".

A potential workaround would be to add a "Meta Tag" to your pages that contain just the slugs from your URLs.

> **[Meta Tags | Swiftype Documentation](https://swiftype.com/documentation/site-search/crawler-configuration/meta-tags)**
>
> Learn how to get the most out of Swiftype

Something like:

```auto
<meta class="swiftype" name="url-slug" data-type="text" content="Parasite-92111" />

```

Hope this helps

---

<div class="post-metadata">

**Author:** ![stevetso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevetso/32/27438_2.png) [@stevetso](https://discuss.elastic.co/u/stevetso)\
**Post date:** [February 14, 2020, 3:34pm UTC](https://discuss.elastic.co/t/search-weighting-url/219304/3 "2020-02-14T15:34:17Z")

</div>

Thanks for your reply. But I really want to resolve this issue.

My url is [https://www.nowe.com/movie/Parasite-92111](https://www.nowe.com/movie/Parasite-92111)

I think I should able to search this content with "Parasite". Does anyone know why I cannot search this content. I confirmed "url" is included in the weighting section.

Thanks.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9019a28bf3f2325a3687b9fe2de1abb83edf7cf.png)

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 14, 2020, 7:36pm UTC](https://discuss.elastic.co/t/search-weighting-url/219304/4 "2020-02-14T19:36:31Z")

</div>

@stevetso I just confirmed that we only support exact matches on url. If you need to work around this, refer to Meta Tags documentation I posted above.

---

<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:** [March 13, 2020, 7:36pm UTC](https://discuss.elastic.co/t/search-weighting-url/219304/5 "2020-03-13T19:36:38Z")

</div>

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