Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

WIP: search: add fcc search boilerplate code DO NOT MERGE #35

Open
wants to merge 9 commits into
base: cernbox
Choose a base branch
from

Conversation

labkode
Copy link
Member

@labkode labkode commented Oct 18, 2022

This code compiles.

To enable the file-tree search in web is necessary to add the following configuration parameter to:
/etc/revad/revad-gateway.toml

[http.services.ocs.capabilities.capabilities.dav]
reports = ["search-files"]

To run the code in the box, just:

make build
mv cmd/revad/revad /usr/bin/revad
systemctl restart revad.target

If you issue a web request (REPORT) from Web, you can see the results by:

tail -f /var/log/revad/revad-*.log | grep bleve

To create the index you can use the bleve cli (installed in the box):

export PATH=$PATH:/root/go/bin
bleve create /var/tmp/fcc.bleve

You can fork this branch and create PRs to it.

@labkode labkode changed the title WIP: search: add fcc boilerplate code DO NOT MERGE WIP: search: add fcc search boilerplate code DO NOT MERGE Oct 18, 2022
@SamuAlfageme SamuAlfageme force-pushed the fcc-search branch 5 times, most recently from 435565c to 327ab51 Compare November 24, 2022 15:11
@glpatcern glpatcern requested a review from gmgigi96 as a code owner December 4, 2022 18:13
- SearchDir() with searchstring and basic input validation
- log pattern on REPORT
- ListFolder() with search capabilities via opaque
- add the searchString from opaque to ListFolder mdKeys
@SamuAlfageme SamuAlfageme force-pushed the fcc-search branch 6 times, most recently from f279e98 to b31f37f Compare December 14, 2022 09:51
@SamuAlfageme SamuAlfageme force-pushed the fcc-search branch 2 times, most recently from e972b08 to 9f1ba44 Compare January 23, 2023 13:42
@SamuAlfageme SamuAlfageme force-pushed the fcc-search branch 6 times, most recently from 8736519 to 79bfa5d Compare February 8, 2023 14:47
@SamuAlfageme SamuAlfageme force-pushed the fcc-search branch 7 times, most recently from 45b935a to 3c07bd5 Compare February 8, 2023 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants