mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
fix: edited docummentation for adding elasticsearch connector and removed reduntant stringToArray call
This commit is contained in:
parent
97e0ea439b
commit
9cc5cdcb2d
1 changed files with 5 additions and 5 deletions
|
|
@ -160,7 +160,7 @@ export default function ElasticsearchConnectorPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (values.search_fields?.trim()) {
|
if (values.search_fields?.trim()) {
|
||||||
config.ELASTICSEARCH_FIELDS = stringToArray(values.search_fields);
|
// config.ELASTICSEARCH_FIELDS = stringToArray(values.search_fields);
|
||||||
const fields = stringToArray(values.search_fields);
|
const fields = stringToArray(values.search_fields);
|
||||||
config.ELASTICSEARCH_FIELDS = fields;
|
config.ELASTICSEARCH_FIELDS = fields;
|
||||||
config.ELASTICSEARCH_CONTENT_FIELDS = fields;
|
config.ELASTICSEARCH_CONTENT_FIELDS = fields;
|
||||||
|
|
@ -669,6 +669,10 @@ export default function ElasticsearchConnectorPage() {
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>Index Selection:</strong> Specify which indices to search using
|
||||||
|
comma-separated patterns (e.g., "logs-*, documents-*")
|
||||||
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</AccordionContent>
|
</AccordionContent>
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
|
|
@ -682,10 +686,6 @@ export default function ElasticsearchConnectorPage() {
|
||||||
Fine-tune your Elasticsearch connector with these optional settings:
|
Fine-tune your Elasticsearch connector with these optional settings:
|
||||||
</p>
|
</p>
|
||||||
<ul className="list-disc pl-5 space-y-2">
|
<ul className="list-disc pl-5 space-y-2">
|
||||||
<li>
|
|
||||||
<strong>Index Selection:</strong> Specify which indices to search using
|
|
||||||
comma-separated patterns (e.g., "logs-*, documents-*")
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<strong>Search Fields:</strong> Limit searches to specific fields (e.g.,
|
<strong>Search Fields:</strong> Limit searches to specific fields (e.g.,
|
||||||
"title, content") for better relevance
|
"title, content") for better relevance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue