<
From version < 68.1 >
edited by Thomas Mortagne
on 2015/09/25
To version < 74.1 >
edited by Marius Dumitru Florea
on 2015/09/25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.mflorea
Content
... ... @@ -201,7 +201,7 @@
201 201  
202 202  The heart of the implementation is that the field that used to contain the unique document space now contain the possibly Nested Space Reference. In practice it means that:
203 203  
204 -* "##.##" (dot), "##:##" (colon) and "##\##" (baskslash) characters, which are part of a Space name will now be escaped (using the "##\##" character) in the ##space## (##XWD_WEB##) field from the Document's table in the Database. For example a space named ##Space:with.special\char## will be stored as ##{{{Space\:with\.special\\char}}}##.
204 +* "##.##" (dot), "##:##" (colon) and "##\##" (baskslash) characters, which are part of a Space name will now be escaped (using the "##\##" character) in the ##space## (##XWD_WEB##) field from the Document's table in the Database. For example a space named ##Space:with.special\char## will be stored as ##Space\:with\.special~\~\char##.
205 205  * Same as for the database, the ##XWikiDocument/Document#getSpace()## methods now return a serialized Reference to the Space instead of what used to be the unique Space name (basically it return what's in the database). Same logic for ##XWikiDocument#setSpace()##. Those field have been deprecated a long time ago but they are still used in lots of places...
206 206  * Various APIs are also affected by this Space name to Space Reference input change:
207 207  ** ##XWiki#getSpaceDocsName## methods (both in the public and private XWiki API)
... ... @@ -242,7 +242,7 @@
242 242  Two new attributes has been added to the ##<xwikidoc>## root XML element
243 243  
244 244  * ##reference##: the complete local Reference of the document in standard Reference format. ##<web>## and ##<name>## are deprecated (but still set). ##<web>## keep containing the (unescaped) space name when there is only one space and will contain the space Reference when there is several (when imported in a < 7.2 instance a document exported from a nested space will end up in a space having as name the space reference).
245 -* ##locale##: the locale of the document. ##<language>## is deprecated. It was not technically needed in the context of nested spaces but it makes having the Reference as attribute more consistent. It also make getting all the entries from a new format XAR easier and faster since document space and name would be placed anywhere in the document.
245 +* ##locale##: the locale of the document. ##<language>## is deprecated. It was not technically needed in the context of nested spaces but it makes having the Reference as attribute more consistent. It also make getting all the entries from a new format XAR easier and faster since document space and name could be located anywhere in the XML document.
246 246  
247 247  === REST module ===
248 248  
... ... @@ -393,6 +393,16 @@
393 393  {{/code}}
394 394  )))
395 395  
396 +=== Solr Search ===
397 +
398 +We added 3 new fields to the [[Solr Index>>design:Design.SolrSchema]] related to Nested Spaces:
399 +
400 +* spaces: the list of nested spaces, e.g. ['A', 'B', 'C']
401 +* space_facet: used for [[hierarchical faceting>>https://wiki.apache.org/solr/HierarchicalFaceting]] (the 'facet.prefix'-based drill down approach)
402 +* space_prefix: used to match descendant documents, e.g. all documents from space ##A.B## and all its descendants (like space ##A.B.C##)
403 +
404 +We also modified the value of the ##space## and ##space_exact## fields to contain the full local reference of the space (it was holding only the name of the last space prior to 7.2). Finally, the ##space## field has been deprecated in favour of the ##spaces## field.
405 +
396 396  == New Reference-related APIs ==
397 397  
398 398  Various new API around References has been introduced while adding support for nested spaces.
... ... @@ -437,7 +437,7 @@
437 437  
438 438  === org.xwiki.model.reference.SpaceReferenceResolver ===
439 439  
440 -New default ##String## and ##EntityReference## based SpaceReferenceResolver has been added. It's the same behavior then ##DocumentReferenceBehavior## but for spaces.
450 +New default ##String## and ##EntityReference## based SpaceReferenceResolver has been added. It's the same behavior then ##DocumentReferenceResolver## but for spaces.
441 441  
442 442  {{code language="java"}}
443 443  @Inject
... ... @@ -508,7 +508,7 @@
508 508  Provider<XWikiContext> roXWikiContextProvider;
509 509  {{/code}}
510 510  
511 -The difference with default provider is that the readonly one won't try to create a new XWikiContext and will return null if it can't find any. It's been introduce for some low level components that were used during XWikiContext creation but in general it should be used by any component that only search for some XWikiContext property that might be null even in a valid XWikiContext.
521 +The difference with default provider is that the readonly one won't try to create a new XWikiContext and will return null if it can't find any. It's been introduced for some low level components that were used during XWikiContext creation but in general it should be used by any component that only search for some XWikiContext property that might be null even in a valid XWikiContext.
512 512  
513 513  == New Space/XWikiSpace table ==
514 514  
... ... @@ -557,7 +557,7 @@
557 557  
558 558  === REST script services ===
559 559  
560 -The Script service changed a bit, ##url(EntityReference)## now return relative URL String by default and a new ##url(EntityReference reference, boolean external)## has been added to force returning an external form URL. See [[Generate a REST URL for a resource>>platform:Features.XWikiRESTfulAPI||anchor="HGenerateaRESTURLforaresource"]] for more details.
570 +New ##url(EntityReference)## was introduced to return relative REST URL of an entity. The new ##url(EntityReference reference, boolean external)## has been added to force returning an external form URL. See [[Generate a REST URL for a resource>>platform:Features.XWikiRESTfulAPI||anchor="HGenerateaRESTURLforaresource"]] for more details.
561 561  
562 562  == Miscellaneous ==
563 563  

Get Connected