1
0
Fork 0

issue #383: updated documentation

This commit is contained in:
Jan Steemann 2013-02-05 17:54:00 +01:00
parent bad2050738
commit adebe5429c
9 changed files with 37 additions and 29 deletions

View File

@ -81,6 +81,8 @@ WIKI = \
IndexBitArray \ IndexBitArray \
IndexCap \ IndexCap \
IndexCapHttp \ IndexCapHttp \
IndexFulltext \
IndexFulltextHttp \
IndexGeo \ IndexGeo \
IndexGeoHttp \ IndexGeoHttp \
IndexHash \ IndexHash \

View File

@ -23,14 +23,18 @@ Glossary {#Glossary}
@copydoc GlossaryEdgeCollection @copydoc GlossaryEdgeCollection
@copydoc GlossaryIndexGeo
@copydoc GlossaryIndexHash
@copydoc GlossaryIndex @copydoc GlossaryIndex
@copydoc GlossaryIndexHandle @copydoc GlossaryIndexHandle
@copydoc GlossaryIndexEdge
@copydoc GlossaryIndexFulltext
@copydoc GlossaryIndexGeo
@copydoc GlossaryIndexHash
@copydoc GlossaryIndexPrioQueue @copydoc GlossaryIndexPrioQueue
@copydoc GlossaryIndexSkiplist @copydoc GlossaryIndexSkiplist

View File

@ -44,14 +44,14 @@
/// @page HttpSimpleCallsTOC /// @page HttpSimpleCallsTOC
/// ///
/// <ul> /// <ul>
/// <li>@ref HttpSimpleAll "POST /_api/simple/all"</li> /// <li>@ref HttpSimpleAll "PUT /_api/simple/all"</li>
/// <li>@ref HttpSimpleByExample "POST /_api/simple/by-example"</li> /// <li>@ref HttpSimpleByExample "PUT /_api/simple/by-example"</li>
/// <li>@ref HttpSimpleFirstExample "POST /_api/simple/first-example"</li> /// <li>@ref HttpSimpleFirstExample "PUT /_api/simple/first-example"</li>
/// <li>@ref HttpSimpleAny "POST /_api/simple/any"</li> /// <li>@ref HttpSimpleAny "PUT /_api/simple/any"</li>
/// <li>@ref HttpSimpleRange "POST /_api/simple/range"</li> /// <li>@ref HttpSimpleRange "PUT /_api/simple/range"</li>
/// <li>@ref HttpSimpleNear "POST /_api/simple/near"</li> /// <li>@ref HttpSimpleNear "PUT /_api/simple/near"</li>
/// <li>@ref HttpSimpleWithin "POST /_api/simple/within"</li> /// <li>@ref HttpSimpleWithin "PUT /_api/simple/within"</li>
/// <li>@ref HttpSimpleFulltext "POST /_api/simple/fulltext"</li> /// <li>@ref HttpSimpleFulltext "PUT /_api/simple/fulltext"</li>
/// <li>@ref HttpSimpleRemoveByExample "PUT /_api/simple/remove-by-example"</li> /// <li>@ref HttpSimpleRemoveByExample "PUT /_api/simple/remove-by-example"</li>
/// </ul> /// </ul>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -46,7 +46,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @page IndexCap Cap Constraint /// @page IndexCap Cap Constraint
/// ///
/// This is an introduction to ArangoDB's size restrictions aka cap for /// This is an introduction to ArangoDB's size restrictions aka cap constraints for
/// collections. /// collections.
/// ///
/// @EMBEDTOC{IndexCapTOC} /// @EMBEDTOC{IndexCapTOC}
@ -54,9 +54,10 @@
/// @section IndexCapIntro Cap Constraint /// @section IndexCapIntro Cap Constraint
///////////////////////////////////////// /////////////////////////////////////////
/// ///
/// It is possible to restrict the size of collection. If you add a document and /// It is possible to restrict the size of collections. If you add a document and
/// the size exceeds the limit, then the least recently created or updated /// the size exceeds the limit, then the least recently created or updated
/// document will be dropped. /// document will be dropped. The size of a collection is measured in the number
/// of (non-deleted) documents a collection contains.
/// ///
/// @section IndexCapShell Accessing Cap Constraints from the Shell /// @section IndexCapShell Accessing Cap Constraints from the Shell
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////

View File

@ -71,7 +71,7 @@
/// <li>@ref IndexFulltextHttp /// <li>@ref IndexFulltextHttp
/// <ul> /// <ul>
/// <li>@ref IndexFulltextHttpEnsureFulltextIndex "POST /_api/index"</li> /// <li>@ref IndexFulltextHttpEnsureFulltextIndex "POST /_api/index"</li>
/// <li>@ref IndexFulltextHttpFulltext "POST /_api/simple/fulltext"</li> /// <li>@ref IndexFulltextHttpFulltext "PUT /_api/simple/fulltext"</li>
/// </ul> /// </ul>
/// </li> /// </li>
/// </ul> /// </ul>

View File

@ -99,8 +99,8 @@
/// <li>@ref IndexGeoHttp /// <li>@ref IndexGeoHttp
/// <ul> /// <ul>
/// <li>@ref IndexGeoHttpEnsureGeo "POST /_api/index"</li> /// <li>@ref IndexGeoHttpEnsureGeo "POST /_api/index"</li>
/// <li>@ref IndexGeoHttpNear "POST /_api/simple/near"</li> /// <li>@ref IndexGeoHttpNear "PUT /_api/simple/near"</li>
/// <li>@ref IndexGeoHttpWithin "POST /_api/simple/within"</li> /// <li>@ref IndexGeoHttpWithin "PUT /_api/simple/within"</li>
/// </ul> /// </ul>
/// </li> /// </li>
/// </ul> /// </ul>

View File

@ -76,8 +76,8 @@
/// <li>@ref IndexHashHttp /// <li>@ref IndexHashHttp
/// <ul> /// <ul>
/// <li>@ref IndexHashHttpEnsureHash "POST /_api/index"</li> /// <li>@ref IndexHashHttpEnsureHash "POST /_api/index"</li>
/// <li>@ref IndexHashHttpByExample "POST /_api/simple/by-example"</li> /// <li>@ref IndexHashHttpByExample "PUT /_api/simple/by-example"</li>
/// <li>@ref IndexHashHttpFirstExample "POST /_api/simple/first-example"</li> /// <li>@ref IndexHashHttpFirstExample "PUT /_api/simple/first-example"</li>
/// </ul> /// </ul>
/// </li> /// </li>
/// </ul> /// </ul>

View File

@ -76,7 +76,7 @@
/// <li>@ref IndexSkiplistHttp /// <li>@ref IndexSkiplistHttp
/// <ul> /// <ul>
/// <li>@ref IndexSkiplistHttpEnsureSkiplist "POST /_api/index"</li> /// <li>@ref IndexSkiplistHttpEnsureSkiplist "POST /_api/index"</li>
/// <li>@ref IndexSkiplistHttpRange "POST /_api/simple/range"</li> /// <li>@ref IndexSkiplistHttpRange "PUT /_api/simple/range"</li>
/// </ul> /// </ul>
/// </li> /// </li>
/// </ul> /// </ul>

View File

@ -157,12 +157,12 @@ function GET_api_index (req, res) {
/// ///
/// @REST{POST /_api/index?collection=@FA{collection-name}} /// @REST{POST /_api/index?collection=@FA{collection-name}}
/// ///
/// Creates a cap constraint for the collection @FA{collection-name}, if /// Creates a cap constraint (@ref IndexCapIntro) for the collection @FA{collection-name}, if
/// it does not already exist. Expects an object containing the index details. /// it does not already exist. Expects an object containing the index details.
/// ///
/// - @LIT{type}: must be equal to @LIT{"cap"}. /// - @LIT{type}: must be equal to @LIT{"cap"}.
/// ///
/// - @LIT{size}: The maximal size of documents. /// - @LIT{size}: The maximal number of documents for the collection.
/// ///
/// If the index does not already exist and could be created, then a @LIT{HTTP /// If the index does not already exist and could be created, then a @LIT{HTTP
/// 201} is returned. If the index already exists, then a @LIT{HTTP 200} is /// 201} is returned. If the index already exists, then a @LIT{HTTP 200} is
@ -197,7 +197,7 @@ function POST_api_index_cap (req, res, collection, body) {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @brief creates a geo index /// @brief creates a geo index
/// ///
/// @RESTHEADER{GET /_api/index,creates a geo-spatial index} /// @RESTHEADER{POST /_api/index,creates a geo-spatial index}
/// ///
/// @REST{POST /_api/index?collection=@FA{collection-name}} /// @REST{POST /_api/index?collection=@FA{collection-name}}
/// ///
@ -569,10 +569,11 @@ function POST_api_index_bitarray (req, res, collection, body) {
/// Creates a new index in the collection @FA{collection-name}. Expects /// Creates a new index in the collection @FA{collection-name}. Expects
/// an object containing the index details. /// an object containing the index details.
/// ///
/// See @ref IndexCapHttp, @ref IndexGeoHttp, @ref IndexHashHttp, and /// See @ref IndexCapHttp, @ref IndexGeoHttp, @ref IndexHashHttp,
/// @ref IndexSkiplistHttp for details. By default, non-unique indexes will /// @ref IndexFulltextHttp, and @ref IndexSkiplistHttp for details.
/// be created. To change this, use the @LIT{unique} attribute in the index details ///
/// and set its value to @LIT{true}. /// By default, non-unique indexes will be created. To change this, use the
/// @LIT{unique} attribute in the index details and set its value to @LIT{true}.
/// ///
/// If the index does not already exist and could be created, then a @LIT{HTTP /// If the index does not already exist and could be created, then a @LIT{HTTP
/// 201} is returned. If the index already exists, then a @LIT{HTTP 200} is /// 201} is returned. If the index already exists, then a @LIT{HTTP 200} is