diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/add/elasticsearch-connector/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/add/elasticsearch-connector/page.tsx index 2e00f4584..6dada1564 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/add/elasticsearch-connector/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/add/elasticsearch-connector/page.tsx @@ -440,6 +440,53 @@ export default function ElasticsearchConnectorPage() { )} /> )} + + {/* Index Selection */} + ( + + Index Selection + + + + + Comma-separated indices to search (e.g., "logs-*, documents-*"). + + + + )} + /> + + {/* Show parsed indices as badges */} + {form.watch("indices")?.trim() && ( +
+

Selected Indices:

+
+ {stringToArray(form.watch("indices")).map((index) => ( + + {index} + + ))} +
+
+ )} + + + + Index Selection Tips + +
    +
  • Use wildcards like "logs-*" to match multiple indices
  • +
  • Separate multiple indices with commas
  • +
  • + Leave empty to search all accessible indices including internal ones +
  • +
  • Choosing specific indices improves search performance
  • +
+
+
{/* Advanced Configuration */} @@ -447,42 +494,7 @@ export default function ElasticsearchConnectorPage() { Advanced Configuration - {/* Index Selection */} - ( - - - Index Selection{" "} - (Optional) - - - - - - Comma-separated indices to search (e.g., "logs-*, documents-*"). - Leave empty for all indices. Supports wildcards. - - - - )} - /> - - {/* Show parsed indices as badges */} - {form.watch("indices")?.trim() && ( -
-

Selected Indices:

-
- {stringToArray(form.watch("indices")).map((index) => ( - - {index} - - ))} -
-
- )} - + {/* Default Search Query */} + {/* Form Fields */} )} /> - - - - Index Selection Tips - -
    -
  • Use wildcards like "logs-*" to match multiple indices
  • -
  • Separate multiple indices with commas
  • -
  • Leave empty to search all accessible indices
  • -
  • Choosing specific indices improves search performance
  • -
-
-