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