Skip to content

Commit f15249e

Browse files
committed
🔧 Enable matching on name parts per default
1 parent d84ca6c commit f15249e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

docs/matching.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Matching stages 1 (normalized keywords) and 2 (name keys) are always enabled. St
2929

3030
| Setting | Default | Stage |
3131
|---------|---------|-------|
32-
| `OPENALEPH_SEARCH_MATCH_NAME_PARTS` | `false` | Name parts (partial token overlap) |
32+
| `OPENALEPH_SEARCH_MATCH_NAME_PARTS` | `true` | Name parts (partial token overlap) |
3333
| `OPENALEPH_SEARCH_MATCH_PHONETIC` | `false` | Phonetic encoding (sound-alike) |
3434
| `OPENALEPH_SEARCH_MATCH_SYMBOLS` | `false` | Name symbols (cross-language) |
3535

@@ -99,9 +99,6 @@ Catches alternate spellings and transcription variations.
9999

100100
### 4. Name parts {: #name-parts }
101101

102-
!!! note
103-
Disabled by default. Enable with `OPENALEPH_SEARCH_MATCH_NAME_PARTS=true`.
104-
105102
Individual name components for partial matching.
106103

107104
Index field: `name_parts` (keyword)
@@ -177,7 +174,7 @@ Match scores combine multiple factors:
177174
| Name keys (order-independent) | 3.0 | `name_keys` | always |
178175
| Identifiers | 3.0 | `properties.*` (for group type "identifier") | always |
179176
| High-value properties | 2.0 | `properties.*` (ip, url, email, phone) | always |
180-
| Name parts | 1.0 | `name_parts` | opt-in |
177+
| Name parts | 1.0 | `name_parts` | always |
181178
| Other properties | 1.0 | `properties.*` | always |
182179
| Phonetic codes | 0.8 | `name_phonetics` | opt-in |
183180
| Name symbols | 0.8 | `name_symbols` | opt-in |

docs/reference/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ Maximum document frequency for MLT query terms. Common terms above this threshol
402402
Enable name parts matching (partial token overlap, requires 2+ matching tokens).
403403

404404
- Type: `bool`
405-
- Default: `false`
405+
- Default: `true`
406406

407407
### `match_phonetic`
408408

openaleph_search/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Settings(BaseSettings):
100100

101101
# Entity matching stages (names_query in query/matching.py)
102102
# Stages 1 (names) and 2 (name_keys) are always enabled.
103-
match_name_parts: bool = False
103+
match_name_parts: bool = True
104104
match_phonetic: bool = False
105105
match_symbols: bool = False
106106

0 commit comments

Comments
 (0)