Search 1.9 billion lines of Odoo code on GitHub

attachment_unindex_content

Author: Vauxoo, Odoo Community Association (OCA)
License: AGPL-3
Branch: 16.0
Repository: brain-tec/server-tools
Dependencies: base
Languages: HTML (356, 71.5%), PO File (34, 6.8%), Python (29, 5.8%), and reStructuredText (79, 15.9%)
Other branches: 11.0, 12.0, 12.0-ocabot-merge-pr-1891-by-dreispt-bump-minor, 12.0-ocabot-merge-pr-2101-by-dreispt-bump-patch, 13.0, 13.0-ocabot-merge-pr-2200-by-LoisRForgeFlow-bump-nobump, 14.0, 14.0-ocabot-merge-pr-2073-by-dreispt-bump-nobump, 14.0-ocabot-merge-pr-2073-by-pedrobaeza-bump-nobump, 14.0-ocabot-merge-pr-2083-by-dreispt-bump-nobump, 14.0-ocabot-merge-pr-2179-by-moylop260-bump-nobump, 14.0-ocabot-merge-pr-2189-by-lmignon-bump-minor, 14.0-ocabot-merge-pr-2190-by-pedrobaeza-bump-patch, 14.0-ocabot-merge-pr-2198-by-pedrobaeza-bump-minor, 14.0-ocabot-merge-pr-2198-by-sebalix-bump-minor, 14.0-ocabot-merge-pr-2451-by-nimarosa-bump-patch, and 14.0-ocabot-update-dotfiles
Other repositories: 001101/server-tools, 0yik/server-tools, AITIC/server-tools, AMhadhbi/server-tools, Alfa-90/server-tools, Artielkami/server-tools, CB-Gran-Canaria/server-tools, Callino/server-tools, ChanFeei/server-tools, Change2improve/server-tools, ComitorDevTeam/server-tools, Comunitea/CMNT_00118_017_NS_BO, Comunitea/server-tools, Digital5-Odoo/server-tools, Dobtor-OCA/server-tools, DucTruongKomit/server-tools, DulingLai/server-tools, ERPLibre/server-tools, FernandoRomera/server-tools, ForgeFlow/server-tools, GSLabIt/server-tools, Gabinete-Digital/server-tools, Gebesa-Dev/server-tools, GleydsonHudson/server-tools, HomerDeoDatu/server-tools, Ingeos/server-tools, Intesco2-0/server-tools, IvanShirokikh/server-tools, Jarsa/server-tools, JuaniFreedoo/server-tools, JuniorKRnd/server-tools, KonaERP/server-tools, LevelPrime/server-tools, LourenzoH/server-tools, MathBenTech/server-tools, NL66278/server-tools, Numigi/server-tools, OCA-MUK/server-tools, OCA/server-tools, OdooIndonesia/server-tools, Othniel1796/server-tools, PieterPaulussen/server-tools, PlanetaTIC/server-tools, QubiQ/server-tools, Rad0van/server-tools, SanteLibre/server-tools, ScopeaFrance/server-tools, SequarSrl/server-tools, SilvioGregorini/server-tools, SimoneVagile/server-tools, SokreamPhanqrl/server-tools, StefanRijnhart/server-tools, Syci-Consulting/server-tools, TRESCLOUD/server-tools, Tecnativa/server-tools, Therp/server-tools, Thorncrag/server-tools, TimLai125/server-tools, Tonow-c2c/server-tools, UnknownInfo/server-tools, VanMoof/server-tools, Vauxoo/server-tools, Yaman-als/server-tools, YannickB/server-tools, YogeshMahera-SerpentCS/server-tools, aadarsh977/server-tools, aaltinisik/server-tools, abdulhalim-cu/server-tools, acsone/server-tools, adhoc-dev/server-tools, ajayjaviya/server-tools, akretion/server-tools, albertvimlet/server-tools, alfadil/server-tools, anhvu-sg/server-tools, anodino-dev/server-tools, ansinaesmejor/server-tools, antilhue/server-tools, area-scm/server-tools, aurestic/server-tools, avoinsystems/server-tools, azmeuk/server-tools, bangil0/server-tools, blooparksystems/server-tools, bmya/server-tools, boutitinizar/server-tools, camptocamp/server-tools, captivea-dcr/server-tools, cheikhousy/server-tools, connect-to-ak/server-tools, coopiteasy/server-tools, crnd-inc/server-tools, dalal-intellisoft/server-tools, dani-xtendoo/server-tools, davidwah/server-tools, dennybiasiolli/server-tools, diggy128/server-tools, dipakthapaofficial/server-tools, dndoanh/server-tools, druidoo-dev/server-tools, eLBati/server-tools, ecosoft-odoo/server-tools, emagdalenaC2i/server-tools, erfanjahanshahlo/server-tools, etobella/server-tools, eversatis/server-tools, ewac-nl/server-tools, exosoftware/oca-server-tools, factorlibre/server-tools, ferdiansahgg/server-tools, fmdl/server-tools, focusate/oca-server-tools, gab-net/server-tools, gastonfeng/server-tools, gitguohao/server-tools, goanzaloo/server-tools, grindtildeath/server-tools, gurneyalex/server-tools, hbrunn/server-tools, hdb1234/server-tools, hibou-io/oca-server-tools, ideaspositivas-group/server-tools, igallart/server-tools, initOS/server-tools, insscn/server-tools, invitu/server-tools, ip-candres/server-tools, jaballate/server-tools, jacky82669513/server-tools, janverb/server-tools, jeanpaul-mupagasi/server-tools, josueBulle/server-tools, josuf567/server-tools, jphatig/server-tools, kait-avalah/server-tools, kmee/server-tools, kos94ok-3D/server-tools, legalsylvain/server-tools, lideritjnma/server-tools, lilotter45/server-tools, lincersolucoes/oca-server-tools, loftwah/server-tools, lonelyleaves/server-tools, maherjaballi/server-tools, merchise-autrement/server-tools, mikolodz/server-tools, modoolar/server-tools, multidadosti-erp/server-tools, nehaksolves/server-tools, nilshamerlinck/server-tools, njeudy/server-tools, ntsirintanis/server-tools, nuobit/server-tools, omalbastin/server-tools, open2bizz/server-tools, petrus-v/server-tools, praxigento/oca-server-tools, programadorzurita/server-tools, raizs/server-tools, rdeheele/server-tools, robertsvx27/server-tools, romendil/server-tools, rsullivan2704/server-tools, rudisulistyo/server-tools, sanube/server-tools, sebalix/server-tools, sergiocorato/server-tools, shepilov-vladislav/server-tools, sodexis/server-tools, solvosci/server-tools, ssaid/server-tools, steingabelgaard/server-tools, sunflowerit/server-tools, sunshineLhj/server-tools, suprielfath/server-tools, swbs-co/server-tools, sysprocesarcastro/server-tools, tafaRU/server-tools, takinobori/oca-server-tools, tegin/server-tools, tirma-sa/server-tools, tmasson/server-tools, tongjiou/server-tools, trevi-software/server-tools, unitek-solusi/OCA-server-tools, ursais/server-tools, valmarnet/server-tools, ventor-tech/server-tools, versada/server-tools, victoralmau/server-tools, vmelnych/server-tools, xcgd/server-tools, ygdmxy/server-tools, ypapouin/server-tools, yuzhengxing/server-tools, zarumaru/server-tools, zeroincombenze/server-tools, zhaohengzeng/server-tools, and zhaohuaw/server-tools

<h1 class="title">Attachment Unindex Content</h1> <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/16.0/attachment_unindex_content"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-attachment_unindex_content"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/149/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module disables the indexation of attachments content.</p> <p>Attachment model has a field called 'index_content' where the content of the attachment is read and stored directly in the database. This field is useful in order to search content of a file. But most of cases it is not used, so, you can install this module in order to:</p> <ul class="simple"> <li><strong>Avoid Duplicating Data:</strong> Because indexation extracts text content from files and put it on the database in order it could be searched, but this implies you have the file data in your <code>filestore</code> directory, and also part (or sometimes all) of that data in your database too.</li> <li><strong>Improve Performance:</strong> Since not all indexed files are plain text, they require extra process to read them.</li> </ul> <p>Maybe you could try to uninstall modules like <code>document</code> in order to disable its indexation features, but you could face the uninstallation of other modules that could be useful for you (e.g, <code>hr_recruitment</code> depends on that).</p> <p>But even if you don't have <code>document</code> installed, you'd still have plain text content indexation by default. As you can see in this SQL query results, indexation is active even without it:</p> <p><a class="reference external image-reference" href="https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png"><img alt="SQL Query result showing indexed content" src="https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png" style="width: 400px; height: 200px;" /></a></p> <p>Using this module you will not require to uninstall any module to disable the attachment content indexation, because we directly disable it at <code>ir.attachment</code> base.</p> <p>Also, after the installation, the <code>index_content</code> field on attachments already recorded in database will be cleared.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id2">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id3">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li> </ul> </li> </ul> </div> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id1">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_unindex_content%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id2">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id3">Authors</a></h3> <ul class="simple"> <li>Vauxoo</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id4">Contributors</a></h3> <ul class="simple"> <li>Moises López &lt;<a class="reference external" href="mailto:moylop260&#64;vauxoo.com">moylop260&#64;vauxoo.com</a>&gt;</li> <li>Erick Birbe &lt;<a class="reference external" href="mailto:erick&#64;vauxoo.com">erick&#64;vauxoo.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id5">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p><a class="reference external image-reference" href="https://github.com/moylop260"><img alt="moylop260" src="https://github.com/moylop260.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/ebirbe"><img alt="ebirbe" src="https://github.com/ebirbe.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/luisg123v"><img alt="luisg123v" src="https://github.com/luisg123v.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/attachment_unindex_content">OCA/server-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>