Entering content frame

 Synchronous Indexing 

When you perform synchronous indexing for an XML document, the document is indexed each time you use a modified PUT request to save it to the document store. The index values are stored as WebDAV properties.

If the indexing fails, the document is not saved to the document store.

Procedure

...

       1.      Use the following HTTP header to assign the XML document to a document class:

SAPDB_DocumentClass: <document_class>

       2.      If you want to prevent the document being indexed synchronously, even though it is assigned to a document class, then use an additional header, as follows:

SAPDB_AsyncIndexing: {F|T}

¡        If you specify F (False) or if you do not specify this header, then the document is indexed synchronously.

¡        If you specify T (True), then the XML document is saved only with the information about its document class. The document is then indexed asynchronously by the index engine.

PUT /webdav/test.xml HTTP/1.1
Host: <web_server>
Content-Type: text/xml
Content-Length: 1000
SAPDB_DocumentClass: BOOK
SAPDB_AnsyncIndexing: F

<mediadescription>
   <header mediatype="BOOK">
      <subtype>PAPERBACK</subtype>
      <isbn>3-446-12345-8</isbn>
      <pages>244</pages>
   </header>
   <data>
      <authors>
         <author>
            <name>Shepard, Francis</name>
         </author>
      </authors>
      <title>XML Indexing. Basics.</title>
      <shortdesc>
         All you need to know about XML Indexing to
         get a good start.
      </shortdesc>
      <price>$49.90</price>
      <longdesc>...</longdesc>
   </data>
</mediadescription>

See also Overview: XML Indexing and the WebDAV Service

 

Leaving content frame