{
  "info": {
    "name": "DIP Generic Search",
    "_postman_id": "2d8f227e-4f38-45c0-9d59-b0642773c993",
    "description": "Sample requests for the generic lexical search slices (full-text, trigram, hybrid, debug, metrics).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {"key": "baseUrl", "value": "http://localhost:8889/api"}
  ],
  "item": [
    {
      "name": "Search - fulltext exact",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"framework agreement\",\n  \"modes\": [\"FULLTEXT\"],\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_ONLY\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - trigram fuzzy title",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"Viena school renovtion\",\n  \"modes\": [\"TRIGRAM\"],\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_ONLY\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - hybrid lexical",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"Maintenance manual\",\n  \"modes\": [\"HYBRID\"],\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_ONLY\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - chunk-aware",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"district heating optimization\",\n  \"modes\": [\"FULLTEXT\"],\n  \"documentTypes\": [\"TEXT\"],\n  \"documentFamilies\": [\"GENERIC\"],\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_AND_CHUNKS\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - createdFrom filter",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"framework agreement\",\n  \"modes\": [\"FULLTEXT\"],\n  \"createdFrom\": \"2026-01-01T00:00:00Z\",\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_ONLY\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - debug",
      "request": {
        "method": "POST",
        "header": [{"key": "Content-Type", "value": "application/json"}],
        "url": "{{baseUrl}}/search/debug",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryText\": \"maintenence manual\",\n  \"modes\": [\"HYBRID\"],\n  \"collapseByDocument\": true,\n  \"representationSelectionMode\": \"PRIMARY_ONLY\",\n  \"page\": 0,\n  \"size\": 10\n}"
        }
      }
    },
    {
      "name": "Search - metrics",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/search/metrics"
      }
    }
  ]
}
