Skip to content

Commit

Permalink
Add --no-index option documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliGautier committed Nov 29, 2024
1 parent e706d60 commit b239800
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions docs/docs/indices.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ The values of the first lines of the files are used to infer the mapping for eac

Make sure to take enough rows to get all the fields with the option `--nb_lines`

!!! tip
The data can be split in different NDJSON files in a folder:
```
part-00000-[...].json
part-00001-[...].json
...
```
In practice, the `file` Argument can be filed with a **pattern** such as `path/to/data.json/part-0000*.json` to reference all the different files.


### Type identification

Expand Down Expand Up @@ -135,7 +126,7 @@ A **date** is identified as such if

By default, the keywords and text fields are searchable as fulltext to be accessible in the search bar.

!!! note "--no-fulltext "
!!! note "--no-fulltext"

If searching through a field value is not needed, it can be deactivated.
That would result in better performances for the fulltext search.
Expand All @@ -144,6 +135,17 @@ By default, the keywords and text fields are searchable as fulltext to be access

- `--no-fulltext field_keyword`

!!! note "--no-index"
If a field doesn't need to be explored in the dashboard, it should be removed before indexing the data.

Alternatively, you can explicitly exclude the field from being indexed using the `--no-index` option.

Example:

- `--no-index unused_field`

The field will remain in the data but will not be indexed.

### Created mapping

By default, the `arlas_cli indices mapping` directly returns the mapping in the command line.
Expand Down Expand Up @@ -269,6 +271,15 @@ Example:
data {index_name} {path/to/data.json}
```

!!! tip
The data can be split in different NDJSON files in a folder:
```
part-00000-[...].json
part-00001-[...].json
...
```
In practice, the `files` Argument can be filed with a **pattern** such as `path/to/data.json/part-0000*.json` to reference all the different files.

!!! warning
If the index already contains data, the data is added to the index.

Expand Down

0 comments on commit b239800

Please sign in to comment.