Commit Graph

16 Commits

Author SHA1 Message Date
Florian Schade ed0dbce978 enhancement: Keyword Query Language (KQL) search syntax support (#7043)
* feat(search): introduce search query package

With the increasing complexity of how we organize our resources, the search must also be able to find them using entity properties.

The query package provides the necessary functionality to do this.

This makes it possible to search for resources via KQL, the microsoft spec is largely covered and can be used for this.

In the current state, the legacy query language is still used, in a future update this will be deprecated and KQL will become the standard
2023-08-28 16:41:36 +02:00
Roman Perekhod b879254fcb Fix the search 2023-08-03 17:02:25 +02:00
Roman Perekhod 99b8cdc7d6 fix the total count 2023-07-12 18:13:58 +02:00
Daniël Franke e43001fb96 Pass context for reva bump.
Also refresh the generated code.
2023-07-03 11:08:45 +02:00
Florian Schade a26aea758a [full-ci] enhancement: add search result content preview and term highlighting. (#6634)
* enhancement: add search result content preview and term highlighting.

* chore: fix changelog

* noop

* enhancement: provide search highlight tests
2023-06-27 15:56:17 +02:00
André Duffeck 80c944b311 Fix: Always make Name and Tags queries case-insensitive 2023-06-13 14:16:38 +02:00
André Duffeck e1279da025 Do not mess with non-lowercased fields 2023-05-25 10:55:52 +02:00
André Duffeck cfb0152372 Fix boolean queries 2023-05-24 12:01:35 +02:00
André Duffeck b1bfb93230 Fix test expectations 2023-05-24 12:01:35 +02:00
André Duffeck e8c9d16576 Do not choke on : searches
Fixes #4744
2023-05-24 12:01:35 +02:00
André Duffeck 9fe1225b53 Make field base search case insensitive
Fixes part of #6366
2023-05-24 12:01:35 +02:00
André Duffeck 6275b7b124 Do not include full-text and tag data in the composite field
This commit removes the full-text and tag data from the composite field
("_all") which can be used for default term queries which we don't do
anyways.
2023-05-19 16:13:30 +02:00
André Duffeck 63b2ac2368 Do not use prefix queries which gets slow with big indexes
Co-authored-by: Florian Schade <f.schade@icloud.com>
2023-05-12 10:37:43 +02:00
Daniël Franke d2076941f4 Add tests.
Also update mocks with mockery.
2023-01-23 14:38:12 +01:00
Florian Schade 1db03dd512 [full-ci] experimental tags backport (#5227)
* add tags to search service resource
add tags getTags, AssignTags and UnassignTags endpoint to graph
use and prefer search event spaceOwner over executant
add tags to search report response
update libre graph api
update reva

Co-authored-by: David Christofas <dchristofas@owncloud.com>
2022-12-19 15:44:02 +01:00
Florian Schade 2404eff48e [full-ci] experimental search backport (#5221)
* experimental search backport
fix basic extractor resource name
move escapeQuery regex into global variable
minor pr review changes
rename DebounceDuration env variable
add document title and content when rebuilding bleve resource

Co-authored-by: David Christofas <dchristofas@owncloud.com>
2022-12-13 14:22:41 +01:00