Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Query
DefinitionReturns the list of documents matching the search result. Allows users to search from documents within GEODI Workspace.
Request

[GEODIURL]/QueryHandler?op=Query&wsName=[WSNAME]&q=[SearchString]&startIndex=[StartIndex]&endIndex=[EndIndex]&options=[OptionsJSON]&UserSession=[TOKEN]

  • wsName(string): Name of the workspace to search inside
  • q(string): Query text
  • StartIndex(int - Optional): The Index which the query results will start.(limit 0)
  • EndIndex(int - Optional)The Index which the query results will end.(limit 0)
  • options(Optional): Additional parameters to change the query result
    • ContentIDFilter(int[] - Optional): Filters the content from which to query.
    • Envelope([LonMin(int),LatMin(int),LonMax(int),LatMax(int)] - Optional): Returns the words within the boundaries of the given BBOX geometry.
    • LayerIdFilter(int[] - Optional): Filters the words according to the IDs of the recognizers that recognize these words.
    • KeywordIdFilter(int[] - Optional): Filters words by IDs
    • CalculateCounts(true/false - Optional): If true, the NumberOfOccurences field is calculated in the result returned from the query.
    • SummaryFill(true/false - Optional): If true, it returns summary information in the Summary field in the results returned from the query.
HttpMethodGET,POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

Return Value


Code Block
languagejs
linenumberstrue
[
	{
		"ContentID":2,
		"Content":
		{
			"DisplayName": "",
			"EnumeratorID": 0,
			"ContentType": "",
			"HasViewer": true,
			"DisableDownload": true,
			"HasNote": true
		},
		"Summary":
		{
			"SummaryID": "",
			"Text": ""
		},
		"Attributes":
		{
			"FolderCanBeShown": "1",
			"PDisplayName": "",
			"PId": "1"
		},
		NumberOfOccurences: 1
	}
]
  • ContentID: ID of İçeriğinthe ID'sicontent.
  • Content: İçerik bilgileriContent information.Attributes: İçeriğe ilişkin dönen ek bilgiler.
    • DisplayName:İçeriğin görüntülenme ismi. (Dosya ismi vs The display name of the content. (File name, etc.)
    • EnumeratorID:İçeriği sağlayan enumerator'ün adı The name of the enumerator that provides the content.
    • ContentType:İçeriğin tipi, varsa uzantısı The type of content, extension.
    • HasViewer:İçeriğin görüntüleyicisinin olup olmadığı.
    • DisableDownload: İçeriğin kullanıcı tarafından indirilmesininin engellenip engellenmediği.
    • HasNote: İçeriğin not eklenmiş olup olmadığı.
  • Summary: Doküman özet bilgileri. İsteğe giden options nesnesinin içinde SummaryFill alanı true gönderilmişse dolu gelir.
    • SummaryID: Özet ID'si.
    • Text: Özet
    •  Whether the content has a viewer or not
    • DisableDownload: Whether the content is prevented from downloading by the user or not
    • HasNote: Whether the content has a note or not
  • Summary: Document summary information. Returns if SummaryFill field in options is true
    • SummaryID: Id of the summary
    • Text: Summary text
  • Attributes: Extra information about the content
    • FolderCanBeShown:
    • PDisplayName:Parent içerik varsa, bu içeriğin görüntülenme ismi If parent content exists, the display name of that content.
    • PId:Parent içerik varsa, bu içeriğin ID'si If parent content exists, the ID of that content.
    • PcontentType: Parent içerik vars, bu içeriğin tipicontent exists, type of content
  • NumberOfOccurences: Kelimenin kaç kez geçtiğiHow many times the word has occured.

Examples


Code Block
//Request : [GEODIURL]/QueryHandler?op=Query&wsName=PROJE&q=ankara,&StartIndex=0&EndIndex=1
[
	{
		"ContentID":2,
		"Content":
		{
			"DisplayName": "1234.doc",
			"EnumeratorID": -1324,
			"ContentType": ".doc",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":"foldercontent:.folder"
		}
	}
]


Code Block
//Request : [GEODIURL]/QueryHandler?op=Query&wsName=PROJE&q=ankara,&StartIndex=0&EndIndex=3
[

	{
		"ContentID":2,
		"Content":
		{
			"DisplayName": "1234.doc",
			"EnumeratorID": -1324,
			"ContentType": ".doc",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":".folder"
		}
	},

	{
		"ContentID":3,
		"Content":
		{
			"DisplayName": "5678.xls",
			"EnumeratorID": -1324,
			"ContentType": ".xls",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":".folder"
		}
	},

	{
		"ContentID":4,
		"Content":
		{
			"DisplayName": "90.pdf",
			"EnumeratorID": -1324,
			"ContentType": ".pdf",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":".folder"
		}
	}
]


Code Block
//Request : [GEODIURL]/QueryHandler?op=Query&wsName=PROJE&q=ankara,&StartIndex=0&EndIndex=1&options={"SummaryFill":true}
[
	{
		"ContentID":2,
		"Content":
		{
			"DisplayName": "1234.doc",
			"EnumeratorID": -1324,
			"ContentType": ".doc",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Summary":
		{
			"SummaryID": "FTS_0_123_4567_8"
			"Text": ... ankara ...
		}
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":".folder"
		}
	},
]


Code Block
//Request : [GEODIURL]/QueryHandler?op=Query&wsName=PROJE&q=ankara,&StartIndex=0&EndIndex=1&options={"CalculateCounts":true}
[
	{
		"ContentID":2,
		"Content":
		{
			"DisplayName": "1234.doc",
			"EnumeratorID": -1324,
			"ContentType": ".doc",
			"HasViewer": true,
			"DisableDownload": false,
			"HasNote": false
		},
		"Attributes":
		{
			"FolderCanBeShown":"1",
			"PDisplayName":"KlasörFolder",
			"PId":"1",
			"PContentType":".folder"
		},
		NumberOfOccurentces: 3
	},
]


Exmple applications

...