Skip to content

Implement advanced search#1406

Open
d-buchmann wants to merge 1 commit into
Part-DB:masterfrom
d-buchmann:advanced-search-squashed
Open

Implement advanced search#1406
d-buchmann wants to merge 1 commit into
Part-DB:masterfrom
d-buchmann:advanced-search-squashed

Conversation

@d-buchmann

Copy link
Copy Markdown
Contributor

Up to 5 individual tokens (separated by spaces) can be given as search string. Each token is individually searched for in all selected fields.

Examples (assuming the relevant fields are selected for search):

  • a part named foo with a tag bar will be found with the search string "foo bar".
  • a part named bar baz will be found with the search string "baz bar".
  • a part with the ID 123 and in storage location a_qux_b will be found with the search string "qux 123".
  • A capacitor named MLCC 100n, Manufacturer Kemet, Footprint 0603 will be found with any combination of the keywords.

All above examples don't work in the current search implementation.
The behaviour is off by default using new settings, including configurable behavior of wildcards (#1355).

Up to 5 individual tokens (separated by spaces) can be given as search string.
Each token is individually searched for in all selected fields.

Examples (assuming the relevant fields are selected for search):
- a part named `foo` with a tag `bar` will be found with the search string "foo bar".
- a part named `bar baz` will be found with the search string "baz bar".
- a part with the ID 123 and in storage location `a_qux_b` will be found with the search string "qux 123".
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 47.22222% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.40%. Comparing base (57a0dfd) to head (950cf6d).

Files with missing lines Patch % Lines
src/DataTables/Filters/PartSearchFilter.php 45.71% 19 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1406      +/-   ##
============================================
- Coverage     58.44%   58.40%   -0.05%     
- Complexity     8667     8670       +3     
============================================
  Files           634      634              
  Lines         27991    28008      +17     
============================================
- Hits          16359    16357       -2     
- Misses        11632    11651      +19     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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