Skip to content

Search finds a person by name and employer in one query - #2268

Merged
wintermeyer merged 1 commit into
mainfrom
search-name-and-employer
Sep 21, 2026
Merged

wintermeyer merged 1 commit into
mainfrom
search-name-and-employer

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

On /search, "siemens" found everybody with Siemens in their CV, but "lukas siemens" found nobody: the whole text had to stand in one employer name.

Now one CV entry has to hold the words the member's first or last name does not, in either order, so "lukas siemens" finds Lukas who worked at Siemens. The words of an employer have to stand in the same entry, so "deutsche bank" no longer counts someone who was at Deutsche Telekom and later at another bank. Words under three letters only filter, and as whole words: "tu münchen" finds the TU, not the "tu" inside "Hauptverwaltung München".

The rule lives in Vutuv.Search.cv_arms/1; matched_entries/3 reads the same rule, so each row names the entry that matched. On the production copy "michael siemens" runs in about 1 ms, driven by the trigram indexes from #2267.

An AI agent wrote this text in my name. I know that is problematic.

„lukas siemens“ fand bisher niemanden, weil der ganze Text im Arbeitgeber stehen
musste; jetzt muss eine Lebenslauf-Station die Wörter tragen, die nicht im Vor-
oder Nachnamen stehen, in beliebiger Reihenfolge. Die Wörter einer Firma müssen
in derselben Station stehen, damit „deutsche bank“ niemanden von der Telekom und
einer anderen Bank findet, und kurze Wörter filtern als ganzes Wort („tu
münchen“), ohne den Index zu treiben.

Diesen Text hat ein KI-Agent in meinem Namen geschrieben. Ich weiß, dass das problematisch ist.
@wintermeyer
wintermeyer merged commit 2fb7f6e into main Sep 21, 2026
1 check passed
@wintermeyer
wintermeyer deleted the search-name-and-employer branch September 21, 2026 14:04
wintermeyer added a commit that referenced this pull request Sep 21, 2026
„müller siemens“ findet seit #2268 den Namen beim Arbeitgeber, aber die Hilfe
verriet das nicht, und ähnlich klingende Namen fielen dabei weg. Mit
„müller firma:siemens“ bleibt der Freitext eine Namenssuche samt Phonetik, der
Operator filtert über dieselben Index-Arme wie die Lebenslaufsuche, und jede
Zeile nennt die Station bei diesem Arbeitgeber. Kurze Werte gelten als ganzes
Wort, damit „schule:tu“ die TU findet und nicht Stuttgart; gespeicherte Suchen
und ihre Mails kennen beide Operatoren.

Diesen Text hat ein KI-Agent in meinem Namen geschrieben. Ich weiß, dass das problematisch ist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant