Changes for page Core

Last modified by Marius Dumitru Florea on 2022/11/25 10:52

From version 5.1
edited by Thomas Mortagne
on 2022/11/25 10:08
Change comment: There is no comment for this version
To version 6.1
edited by Thomas Mortagne
on 2022/11/25 10:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,9 @@
1 1  {{toc/}}
2 2  
3 -= Shared Fields =
3 += Schema
4 4  
5 +== Shared Fields ==
6 +
5 5  Some fields need to be shared by all indexed entities. The //wiki//, //space// and //name// information is shared because each indexed entity is in our case either a document or held by a document.
6 6  
7 7  |=Name|=Description
... ... @@ -22,7 +22,7 @@
22 22  |links|{{version since="14.8"}}the reference of the resources where the various links found in that entity are leading to{{/version}}
23 23  |links_extended|{{version since="14.8"}}contains **links** plus all the references parents to make easier to search or cleanup links from any entity level (per wiki, per space, per document, etc.){{/version}}
24 24  
25 -= Document Fields =
27 +== Document Fields ==
26 26  
27 27  First of all we need to index the document title, content and meta data.
28 28  
... ... @@ -104,7 +104,7 @@
104 104  |objcontent_*|This field collects the values from all the properties of the indexed object. It uses the "propertyName : propertyValue" format. This field is analyzed based on the document locale. E.g. objcontent_ro
105 105  |property.aName_*|Dynamic multiValued field indexing the value of the specified property. For static lists, we index both the raw value (what is saved in the database) and the display value (what the user sees, which is specified in the XClass). Property values are indexed based on their type. E.g. property.published_boolean, property.publishDate_date, property.category_string, property.summary_en
106 106  
107 -= Attachment Fields =
109 +== Attachment Fields ==
108 108  
109 109  |=Name|=Description
110 110  |filename|The attachment file name. E.g. ['todo.txt']
... ... @@ -191,3 +191,32 @@
191 191  {{code language="none"}}
192 192  #set ($discard = $query.bindValue('sort', 'aFunctionThatSelectsOneValue(property.Test.TestClass.staticList1_string) asc'))
193 193  {{/code}}
196 +
197 += Manipulate links
198 +
199 +Here are some examples of indexed links.
200 +
201 +Example:
202 +
203 +Wiki content in document `xwiki:Main.WebHome`:
204 +
205 +{{code language="false"}}
206 +[[doc:Space.Document]]
207 +[[attach:Space.OtherDocument@Attachment]]
208 +[[page:Page1/Page2]]
209 +{{/code}}
210 +
211 +Resulting index:
212 +
213 +* **links**:
214 +** ##document:xwiki:Space.Document##
215 +** ##attachment:xwiki:Space.OtherDocument@Attachment##
216 +** ##page:xwiki:Page1/Page2##
217 +* **links_extended**:
218 +** ##document:xwiki:Space.Document##
219 +** ##attachment:xwiki:Space.OtherDocument@Attachment##
220 +** ##page:xwiki:Page1/Page2##
221 +** //##wiki:xwiki##//
222 +** //##space:xwiki:Space##//
223 +** //##document:xwiki:Space.OtherDocument##//
224 +** //##page:xwiki:Page1##//

Get Connected