You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/content/usage.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ When you open the 'Load Data' menu, the Data Import Window will appear. This win
22
22
23
23
Each source file added via the 'Add' button can be configured to tailor the data set to specific requirements. Configuration options include:
24
24
25
-
**Fields**
25
+
#### Fields
26
26
27
27
Fields represent the individual columns or attributes in the source file and can be assigned one of four types: **Text**, **Int**, **Float**, or **Boolean**. Each field type determines how the data is interpreted and processed by the application.
28
28
@@ -35,29 +35,36 @@ Certain field types can have additional variants, which define how the data in t
35
35
-**Index** (for Text fields): Adds properties such as:
36
36
-**Language**: Specifies the language of the data for indexing purposes. Currently, only one language per field is supported.
37
37
-**Default**: Marks the field as the default for searches, allowing queries to omit specifying the field explicitly. Only one default field is allowed per data set, and at least one index field is required. The source file containing the index field becomes the **main source file**, which is used to display all data from the source (e.g., if the source CSV file has columns like `text`, `author`, and `year`, all columns will be displayed unless disabled).
38
-
-**Unique** (for Int fields): Adds the **Identifiable** property, which designates the field as the unique identifier for the source. While this does not affect search capabilities, it optimizes the initial data loading process.
38
+
-**Unique** (for Int fields): Adds the **Identifiable** property, which designates the field as the unique identifier for the source. It optimizes the initial data loading process and is needed for the **Filter** feature for identification.
39
39
40
40
**Float** and **Boolean** fields do not support additional properties or variants.
41
41
42
-
Every field also includes a **Link** option, which is particularly useful for the main source file. This feature enables linking fields in the main source to fields in other source files, allowing for relationships between data sets. For example, if the main source contains a field called `author` and another source file contains detailed information about authors, the linked source can be used to fetch and display additional information during queries. Note that linked sources are not searchable, and links are unidirectional, flowing from the main source to the linked source (e.g., `main source -> linked source`).
42
+
Every field also includes a **Link** option, which is particularly useful for the main source file. This feature enables linking fields in the main source to fields in other source files by identical fields, allowing for relationships between data sets. For example, if the main source contains a field called `author` and another source file contains detailed information about authors, the linked source can be used to fetch and display additional information during queries. Note that linked sources are not searchable, and links are unidirectional, flowing from the main source to the linked source (e.g., `main source -> linked source`).
43
43
44
-
**Filter**
44
+

45
45
46
-
In the Filter tab the pre-filtering is configured.
46
+
#### Filter
47
+
48
+
The Filter tab is where pre-filtering is configured. Pre-filtering selects a set of entries based on linked conditions when used in a search. This configuration consists of setting filter conditions and links. For this configuration to work, a link must exist in the current source.
49
+
50
+
The filter configuration consists of three key elements:
51
+
-**Key**: A field in the main source that uniquely identifies each entry.
52
+
-**Link Key**: A field in the linked source whose value is used to evaluate conditions.
53
+
-**Value**: A field in the current source that stores the value for conditional lookups.
For more details on how to use variants in searches, see [Pre-filtering](#pre-filtering).
51
58
52
-
**Variant Mapping**
59
+
#### Variant Mapping
53
60
54
61
Variant Mapping is used to unify multiple fields into a single representation.
55
62
56
63
The **Base Field** is the primary field used for the representation. For example, if a data set contains Greek names and their English translations, the base field would be the one containing the English names (e.g., "Jesus"). It is important to note that the base field itself is not used when searching for variants; only the values from the fields specified in the **Variants** textbox are considered during searches.
57
64
58
65
The **Variants** textbox accepts a comma-separated list of fields from the source file that contain the variations of the base field. For instance, these fields might include translations or alternative spellings of a name.
59
66
60
-
#### **Example**
67
+
**Example**
61
68
62
69
Consider a data set where:
63
70
@@ -67,7 +74,7 @@ Consider a data set where:
67
74
The data should be structured as follows:
68
75
69
76
| label_en | label_el_norm | variant |
70
-
|--------|-------------|--------|
77
+
|----------|---------------|----------|
71
78
| name1 | translation1 | variant1 |
72
79
| name1 | translation2 | variant2 |
73
80
| name1 | translation1 | variant3 |
@@ -82,7 +89,7 @@ The application will then group all translations and variants (e.g., `translatio
For more details on how to use variants in searches, see [Variant Search](<Link To Variant Search>).
92
+
For more details on how to use variants in searches, see [Variant Search](#variant-search).
86
93
87
94
## Load a Plugin
88
95
@@ -111,7 +118,7 @@ For a more precise search, wrap the query in quotes (e.g., "Term1 Term2 Term3")
111
118
112
119

113
120
114
-
**Boolean Search**
121
+
#### Boolean Search
115
122
116
123
Boolean search allows you to refine your search by logically connecting terms using operators such as `AND`, `OR`, `AND NOT`, and parentheses `()` for grouping. For example:
117
124
@@ -122,7 +129,7 @@ Boolean search allows you to refine your search by logically connecting terms us
122
129
123
130

124
131
125
-
**Field Search**
132
+
#### Field Search
126
133
127
134
With field search, you can target specific fields in the dataset by specifying a field and its corresponding value. This allows precise filtering based on pre-defined field values. For instance:
128
135
@@ -131,7 +138,7 @@ With field search, you can target specific fields in the dataset by specifying a
131
138
132
139

133
140
134
-
**Variant Search**
141
+
#### Variant Search
135
142
136
143
Variant search enables you to search for different variations of terms that often represent the same concept. For example, terms like `America`, `USA`, `US`, and `United States` may all refer to the same entity in your data set. These variants are configured during the data set loading process (see [Load a Data Set](#load-a-data-set)).
137
144
@@ -144,7 +151,7 @@ For instance:
144
151
145
152
-`@name:Jesus` searches all entries where the field `name` contains terms associated with the label _Jesus_.
146
153
147
-
**Pre filtering**
154
+
#### Pre filtering
148
155
149
156
Pre-filtering enables the pre-selection of entries based on linked conditions and criteria, allowing for targeted filtering in cases where multiple data sources are interconnected. Unlike simple field searches, pre-filtering draws from data relationships configured during the data set loading process (see [Load a Data Set](#load-a-data-set)). These relationships point to different fields and values across multiple sources.
150
157
For example, the example data set provided in the [installation section](installation.md) includes a file that indicates whether a specific name or token is present or missing in certain phrases. These conditions are established in the configuration of the data set itself, not by the application.
0 commit comments