Search Results for

    Show / Hide Table of Contents

    Method SearchProposalGlobal

    SearchProposalGlobal(String, SearchDefinitionContract, String, String, Int32, String)

    Search proposal for objects

    Declaration
    List<ProposalResultContract> SearchProposalGlobal(string connectionId, SearchDefinitionContract searchDefinition, string propertyTypeId, string inputValue, int maxCount, string searchCulture)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    SearchDefinitionContract searchDefinition

    Optional: Definition of search conditions

    System.String propertyTypeId

    Search proposal for the property type id. See also Id

    System.String inputValue

    Optional: value contained in proposal

    System.Int32 maxCount

    Number of results to return

    System.String searchCulture

    Definition of specific search culture

    Returns
    Type Description
    System.Collections.Generic.List<ProposalResultContract>

    Returns the result of search proposal

    Examples

    POST http://YourServerName/InfoShare/Json/Search/SearchProposalGlobal

    A simple example for search proposal global, is specific for guid properties.

    {
       "connectionId": "29edddd1-f659-4aa7-8248-54bae7121038",
       "searchDefinition": {
         "Conditions": [{
           "Values": ["2019-09-26T12:06:48"],
           "ComparisonEnum": "LessEquals",
           "PlaceHolder": "",
           "PropertyTypeId": "01000009-38a7-11d8-a902-0050bf427e8f",
           "RelationEnum": "And" }],
        "FulltextWordRelation": "AND",
        "FulltextWords": "",
        "PageSize": 100,
        "SearchStores": ["4b07ac1e-b9cf-e911-a939-00155d290a08", "c5b7dd4e-b8cf-e911-a939-00155d290a08",
        "5ff3c8f6-b8cf-e911-a939-00155d290a08", "3bb6448c-b9cf-e911-a939-00155d290a08",
        "67727470-b9cf-e911-a939-00155d290a08", "e46bc061-b7cf-e911-a939-00155d290a08"],
        "UseWildCard": true },
      "propertyTypeId": "01000000-d596-485b-ace6-d64647a94277",
      "inputValue": "",
      "maxCount": 20,
      "searchCulture": "de"
    }

    Response:

    {
       "SearchProposalGlobalResult": [{
         "Id": "0100a000-38a7-11d8-a902-0050bf427e8f",
         "Values": {
           "Values": [{
             "Culture": "de",
             "Text": "Standardsicherheit" }] } }]
    }

    Example for search proposal with optional paramater, is specific for guid properties.

    {
       "connectionId": "29edddd1-f659-4aa7-8248-54bae7121038",
       "searchDefinition": {
         "Conditions": [{
           "Values": ["2019-09-26T12:06:48"],
           "ComparisonEnum": "LessEquals",
           "PlaceHolder": "",
           "PropertyTypeId": "01000009-38a7-11d8-a902-0050bf427e8f",
           "RelationEnum": "And" }],
        "FulltextWordRelation": "AND",
        "FulltextWords": "",
        "PageSize": 100,
        "SearchStores": ["4b07ac1e-b9cf-e911-a939-00155d290a08", "c5b7dd4e-b8cf-e911-a939-00155d290a08",
        "5ff3c8f6-b8cf-e911-a939-00155d290a08", "3bb6448c-b9cf-e911-a939-00155d290a08",
        "67727470-b9cf-e911-a939-00155d290a08", "e46bc061-b7cf-e911-a939-00155d290a08"],
        "UseWildCard": true },
      "propertyTypeId": "760fa49a-c1cf-e911-a939-00155d290a08",
      "inputValue": "Sta",
      "maxCount": 20,
      "searchCulture": "de"
    }

    Response:

    {
       "SearchProposalGlobalResult": [{
         "Id": "0100a000-38a7-11d8-a902-0050bf427e8f",
         "Values": {
           "Values": [{
             "Culture": "de",
             "Text": "Standardsicherheit" }] } }]
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Search store not found {infoStore} (10033)

    ServiceException

    Property type not found {propertyTypeId} (10034)

    ServiceException

    String was not recognized as a valid DateTime: {dateTimeValue}. Expected format {expectedFormat} (10059)

    ServiceException

    Comparison operator {comparisonOperator} is not allowed for property type {propertyTypeId} (10087)

    ServiceException

    Unknown comparison operator {comparisonOperator} (10088)

    ServiceException

    Property type {propertyTypeId} is deleted (10090)

    ServiceException

    Property type {propertyTypeId} is deactivated (10091)

    ServiceException

    Only Guid property types are allowed (10142)

    Back to top Copyright © Kendox