Website indexing
We will present here a simple example of indexing the pages of an Easysite website.
Configuration
Indexing class
com.axemble.axvdocsearch.extensions.base.implementation.BaseEasySiteIndexExtension
Custom Tags « system »
CustomTag | Description | Type |
---|---|---|
ID | text | |
REFERENCE | text | |
PAGE | Indexable useful content of the page | text |
TOPIC | Indexed page heading (custom tag tree) | text |
Required input parameters
Parameter Name | Description |
---|---|
CONTEXT_LOGIN | Login used to browse the data to be indexed |
WEBSITE_NAME | System name of the WEB site to index |
Filtering of useless pages
From version Xtended-Search5.6.13 in Process15.0.0, the inactive Easy Site pages and the pages with the option “Do not index” are no longer indexed by the search engine and are therefore not visible in the search results.
An example of XML configuration
In this example we index the contents of the WEB pages of our site “mySite”.
Here is a possible XML configuration:
<index name="IndexMySite"
label="LG_IndexMySite"
controller="com.axemble.axvdocsearch.core.controllers.implementation.LuceneController"
extension="com.axemble.axvdocsearch.extensions.base.implementation.BaseEasySiteIndexExtension"
indexStorePath="XtendedSearch\IndexMySite"
updateOnIndexedDocuments="true"
locales="fr" >
<parameters>
<parameter key="CONTEXT_LOGIN" value="sysadmin" />
<parameter key="WEBSITE_NAME" value="mySite" />
</parameters>
<customtag name="PAGE" type="text" />
<customtag name="TOPIC" type="text" />
</index>
Source : https://wiki.myvdoc.net/xwiki/bin/view/Dev+Floor/WebSiteIndexExtension