1 /**
2 * @schema AdminSearchIndexField
3 * type: object
4 * description: A leaf field stored in a search index, with the capabilities declared on it.
5 * x-schemaName: AdminSearchIndexField
6 * externalDocs:
7 * url: https://docs.medusajs.com/resources/infrastructure-modules/search/index-definitions/fields
8 * description: Learn about search index field types and modifiers
9 * required:
10 * - name
11 * - type
12 * - searchable
13 * - filterable
14 * - sortable
15 * - facetable
16 * properties:
17 * name:
18 * type: string
19 * title: name
20 * description: The field's dotted path in the index, such as `title` or `variants.sku`.
21 * type:
22 * type: string
23 * title: type
24 * description: The field's type in the index, such as `text`, `keyword`, `integer`, `float`, `date`, `boolean`, `geo`, `object`, or `vector`.
25 * searchable:
26 * type: boolean
27 * title: searchable
28 * description: Whether the field is matched against a free-text search query.
29 * filterable:
30 * type: boolean
31 * title: filterable
32 * description: Whether the field can be used in a search query's filters.
33 * sortable:
34 * type: boolean
35 * title: sortable
36 * description: Whether search results can be sorted by this field.
37 * facetable:
38 * type: boolean
39 * title: facetable
40 * description: Whether the field can be used to build facets of search results.
41 *
42 */
43