# Confluence Documents Extract

**URL:** <https://discuss.elastic.co/t/confluence-documents-extract/362597>\
**Category:** Elastic Search\
**Created:** [July 5, 2024, 7:25am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597 "2024-07-05T07:25:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [July 5, 2024, 7:25am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/1 "2024-07-05T07:25:05Z")

</div>

Hi I have configure Confluence connector and i found out that the way it extract, some of the documents extract the html tags together within the body content, something like below :

 ![Screenshot 2024-07-05 at 3.22.33 PM](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d990473b9eb91cee24eb518d9021a340eab1affe.png)

Will this affect the searching? How do we clean the tags? Thanks,

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [July 5, 2024, 8:55am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/2 "2024-07-05T08:55:04Z")

</div>

Hi @aisyaharifin,

Are you using [Elastic connector](https://www.elastic.co/guide/en/enterprise-search/current/connectors-confluence.html)? If so, are you running the connector natively on Cloud?

---

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [July 5, 2024, 10:01am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/3 "2024-07-05T10:01:39Z")

</div>

Hi @Artem_Shelkovnikov ,

Yes Im using Elastic connector, i run the connector self managed and the deployment using docker.

Thanks!

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [July 5, 2024, 3:48pm UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/4 "2024-07-05T15:48:50Z")

</div>

You can try updating connector configuration to add HTML Strip processor: [HTML strip processor | Elasticsearch Guide [8.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/htmlstrip-processor.html).

It also looks like a bug in the connector, you can file a bug using [this link](https://github.com/elastic/connectors/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=), we'll prioritise and fix it accordingly!

---

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [July 10, 2024, 7:24am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/5 "2024-07-10T07:24:41Z")

</div>

Hi @Artem_Shelkovnikov ,

I already include the HTML strip in the pipeline, and it works, the html tags clean already.

So it seems like this is unusual behavior as you assume a bug? Supposed Confluence connector will not extract together the html tags is it?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [July 11, 2024, 9:01pm UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/6 "2024-07-11T21:01:02Z")

</div>

Glad it works!

To me it indeed seems like a bug. I wanted to just clarify, does this field always contain HTML tags, or it's possible that this field contains only plain text in some cases?

If it's always or often HTML, then I'm 100% it's a bug that should be fixed in the connector.

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [July 12, 2024, 12:43pm UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/7 "2024-07-12T12:43:33Z")

</div>

I have filed an issue for the connectors: [[Confluence] body content for some records includes HTML tags · Issue #2705 · elastic/connectors · GitHub](https://github.com/elastic/connectors/issues/2705)

We will fix this problem in future releases 🙂

---

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [July 15, 2024, 4:08am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/8 "2024-07-15T04:08:00Z")

</div>

Hi @Artem_Shelkovnikov ,

Thank you for looking into this.

What I notice is that all Confluence post that is created contain the html tags except for pdf,csv or ppt type of attachment, but for type with "page", it will extract the html tags together.

 ![With HTML Strip](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b1c95f1defd28eba67cd8024bf4042c2e330dd1.png)  
 ![Without HTML Strip](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8dffd58fd0bd0a792afc0eba986d79576547773.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [July 15, 2024, 9:11am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/9 "2024-07-15T09:11:06Z")

</div>

Thank you for confirming, I've also mentioned that this happens for pages in the bug issue.

---

<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:** [August 12, 2024, 9:11am UTC](https://discuss.elastic.co/t/confluence-documents-extract/362597/10 "2024-08-12T09:11:58Z")

</div>

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