Commit Graph

81 Commits

Author SHA1 Message Date
Bart van Bragt 6699c8cb58 fix: ngram min_gram=1 indexes tokens that can never be matched
Flarum's search UI enforces a minimum query length of 3 characters
(MIN_SEARCH_LEN in Search.tsx), so 1- and 2-character ngram tokens
are indexed but can never be queried. Changed min_gram from 1 to 3
and updated max_ngram_diff accordingly.
2026-04-09 11:04:27 +02:00
Bart van Bragt 369ee504f3 fix: remove unused content_partial field from seeders
content_partial was introduced alongside a partialMatch() query that
targeted it. That query was later switched to use the content field
instead, but content_partial was never removed from the seeders,
causing every document to store and index its content twice.
2026-04-09 08:39:58 +02:00
Bart van Bragt eeb091273d fix: tag filter produces empty results when browsing a tag
When navigating to /t/{tag}?q=query the tag filter from the request
was silently ignored. Added a TermsQuery on the tags field using the
tag IDs resolved from the provided slugs.
2026-04-09 08:20:42 +02:00
Daniël Klabbers d252a17586 fix: not changing recipients visibility when recipients change 2024-06-13 19:27:14 +02:00
Daniël Klabbers a9dc8bfb16 fix: byobu discussions open up while using this extension 2024-06-12 11:34:18 +02:00
StyleCI Bot 8b519619e5
Apply fixes from StyleCI 2022-11-24 09:38:21 +00:00
Daniël Klabbers 83afe95d61 chore: fix search and seeding 2022-11-24 10:37:57 +01:00
Daniël Klabbers 846cc348ff Merge branch 'dk/search-improvements' into main 2022-11-24 10:29:18 +01:00
Daniël Klabbers 508bb42ac9 chore: clean up buildcommand 2022-11-23 12:46:04 +01:00
StyleCI Bot db74da3e37
Apply fixes from StyleCI 2022-11-23 11:29:48 +00:00
Daniël Klabbers a02d35394b feat: store tags, rawId, support indexing missing objects 2022-11-23 12:09:10 +01:00
StyleCI Bot f8aa3dcf13
Apply fixes from StyleCI 2022-11-18 09:33:13 +00:00
Daniël Klabbers 9401b677a3 change weighing for exact words match 2022-11-10 12:57:46 +01:00
Daniël Klabbers 4bc89949ec complete testing 2022-11-10 12:54:26 +01:00
Daniël Klabbers 29ba864849 settings configurations 2022-11-09 18:06:48 +01:00
Daniël Klabbers e26d90d7b6 fix ambiguous 2022-03-04 12:37:43 +01:00
Daniël Klabbers cb3d4f5225 fix typo 2022-02-28 20:33:01 +01:00
Daniël Klabbers c6fd942bf1 prevent leaking deleted discussions 2022-02-28 20:32:27 +01:00
Daniël Klabbers cc8145c236 drop partial search 2022-02-21 10:20:46 +01:00
Daniel Klabbers ccfb964aff improve search results 2022-02-14 16:51:55 +01:00
Daniël Klabbers 133ded0684 fixes #5 2022-01-11 10:10:39 +01:00
Daniel Klabbers 803d1ecfc5 fix partial matching and weighting 2022-01-10 14:16:42 +01:00
Daniel Klabbers 502f7a9f86 use partial match with weighting 2022-01-10 13:47:05 +01:00
Daniel Klabbers 9108553f09 add and vs or distinction, but partial isnt working in combination with the others yet 2022-01-06 12:58:50 +01:00
Daniel Klabbers b6ac018a56 fix partial matching 2022-01-03 16:53:45 +01:00
Daniel Klabbers 88b3e57d8f added weighting properly, also different for titles vs posts 2022-01-03 15:13:13 +01:00
Daniel Klabbers f180d66815 Revert "feat: add partial word match with low weighting"
This reverts commit 0d51e5d912.
2021-12-23 13:07:04 +01:00
Daniel Klabbers 013f5162c5 Revert "introduce wildcard, needs further testing"
This reverts commit 877533b43d.
2021-12-23 13:07:03 +01:00
Daniel Klabbers 23074a3a0c Revert "attempt to make partial match filter"
This reverts commit f21dc04a00.
2021-12-23 13:07:00 +01:00
Daniel Klabbers 0ee902b7b7 Revert "allow minimum should match config"
This reverts commit d5eebf6c65.
2021-12-23 13:06:56 +01:00
Daniel Klabbers d5eebf6c65 allow minimum should match config 2021-12-16 15:05:22 +01:00
Daniel Klabbers f21dc04a00 attempt to make partial match filter 2021-12-16 15:02:18 +01:00
Daniel Klabbers 877533b43d introduce wildcard, needs further testing 2021-12-14 16:35:16 +01:00
Daniel Klabbers 0d51e5d912 feat: add partial word match with low weighting 2021-12-14 12:05:32 +01:00
Daniel Klabbers ca229c8af8 possibly reduce logging 2021-12-13 12:06:26 +01:00
Daniel Klabbers 68fce10d56 support patching the mapping without recreating 2021-11-16 20:33:17 +01:00
Daniel Klabbers cb7da5d3f8 fix search for the right fields 2021-11-16 20:23:07 +01:00
Daniel Klabbers 868713da11 fix: search for byobu page
Fixes the index for byobu.
2021-11-16 20:22:22 +01:00
Daniël Klabbers 8b1a32af8d add comment count to mapping 2021-11-11 21:46:17 +01:00
Daniël Klabbers cadfc7b9bd seed and use comment count for sorting 2021-11-11 21:40:34 +01:00
Daniel Klabbers 77c406c07f improve scoring by boosting titles, now also major 2021-11-10 16:52:53 +01:00
Daniel Klabbers 8576579aa6 use correct path on index 2021-11-10 13:55:20 +01:00
Daniel Klabbers 8111c214cc override api client on the backend to retrieve discussions from elastic always, this prevents all hits to the MySQL db 2021-11-10 12:40:32 +01:00
Daniel Klabbers a03de74f0b clean up js 2021-11-10 12:39:41 +01:00
Daniel Klabbers 6369637145 fix issue with selection of columns 2021-11-08 20:25:02 +01:00
Daniel Klabbers fd11442a76 optimize search query with join 2021-11-08 16:46:15 +01:00
Daniel Klabbers 8977d3d161 fix for issue with search 2021-11-08 16:41:37 +01:00
Daniël Klabbers 3106667519 attempt to improve results loading with eloquent 2021-11-08 16:04:42 +01:00
Daniël Klabbers 99dff8289d added hidden at to stop indexing hidden posts and discussions 2021-11-08 09:36:53 +01:00
Daniël Klabbers b87a4e2328 support continue flag 2021-11-06 21:32:36 +01:00