Skip to content

Implemented exact search [Issue#18]#19

Open
magsko wants to merge 2 commits intobellingcat:mainfrom
magsko:exact-search-match
Open

Implemented exact search [Issue#18]#19
magsko wants to merge 2 commits intobellingcat:mainfrom
magsko:exact-search-match

Conversation

@magsko
Copy link
Copy Markdown
Contributor

@magsko magsko commented Oct 1, 2025

  • Implemented exact search matching by applying reg-ex to the FTS results
  • Added separate snippet generation for exact match so that that exact matches are highlighted
  • Added a checkbox for exact match
Screenshot 2025-10-01 at 1 49 46 PM

@GalenReich GalenReich self-requested a review October 29, 2025 16:30
Copy link
Copy Markdown
Contributor

@GalenReich GalenReich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, I have a couple of tweaks to ask of you:

  • Could you avoid committing unrelated changes to project env files - if there is a problem with these, please open an issue and we can solve this together separately

  • Please revert whitespace changes, a couple of files have moved from tabs of 4 spaces to 2 spaces

  • More substantially, I find the exact search to be very slow and am concerned that the current algorithm could put users off the tool. Perhaps a different search approach would work better. I am also not sure if it is the search or the timestamp generation that is causing the bulk of delay - some investigation here would be useful

Comment thread .DS_Store
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this file, feel free to add it to .gitignore if neeeded

Comment thread .env
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please restore the .env file and try to avoid touching project structure files

Comment thread .gitignore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there is some line ending weirdness happening here, one to watch out for.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(no action needed)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please restore this file

<v-col cols="12">
<v-row class="mb-1" justify="end">
<v-col cols="auto">
<v-checkbox
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to place the checkbox just below the search bar, rather than above it - I think it could be confusing for users otherwise

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert whitespace changes

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.

2 participants