TungstenAutomationLabs / AI-Knowledge-Works

AI Knowledge Works provides automation bot templates for use with Azure AI Search
0 stars 0 forks source link

ESXML2 to Index mapper bot #6

Open tomscoppock2 opened 3 months ago

tomscoppock2 commented 3 months ago

Considerations:

{  
  "name": "einvoice-index",  
  "fields": [  
    { "name": "invoiceId", "type": "Edm.String", "key": true, "searchable": true },  
    { "name": "invoiceDate", "type": "Edm.DateTimeOffset", "filterable": true, "sortable": true },  
    { "name": "buyerName", "type": "Edm.String", "searchable": true, "filterable": true, "facetable": true },  
    { "name": "buyerAddress", "type": "Edm.String", "searchable": true },  
    { "name": "supplierName", "type": "Edm.String", "searchable": true, "filterable": true },  
    { "name": "invoiceTotalAmount", "type": "Edm.Double", "filterable": true, "sortable": true },  
    { "name": "invoiceCurrencyCode", "type": "Edm.String", "filterable": true, "facetable": true },  
    {  
      "name": "invoiceLines",  
      "type": "Collection(Edm.ComplexType)",  
      "fields": [  
        { "name": "lineId", "type": "Edm.String" },  
        { "name": "articleDescription", "type": "Edm.String", "searchable": true },  
        { "name": "quantity", "type": "Edm.Double" },  
        { "name": "lineAmount", "type": "Edm.Double" }  
      ]  
    },  
    // ... Other fields as necessary ...  
  ]  
}