nextcloud / nextcloud/fulltextsearch
Fulltextsearch:live nor cron work for indexing content in Group Folders
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
I have the same issue as https://github.com/nextcloud/fulltextsearch/issues/431
Plugin versions:
- files_fulltextsearch: 2.0.0
- fulltextsearch: 2.0.0
- fulltextsearch_elasticsearch: 2.0.0
with a local ElasticSearch instance at version 7.9.2-1
If I take a file and copy it in a Group Folder to a different group folder, the new file location doesn't appear in search even after an hour - I tried using both cron and fulltextsearch:live for this, where:
System cron just doesnt't output any error, runs as expected every 5 minutes:
Nov 4 09:25:01 nc CROND[448822]: (apache) CMD (php -f /var/www/html/nextcloud/cron.php)
Nov 4 09:30:01 nc CROND[448864]: (apache) CMD (php -f /var/www/html/nextcloud/cron.php)
Nov 4 09:35:01 nc CROND[448924]: (apache) CMD (php -f /var/www/html/nextcloud/cron.php)
Fulltextsearch:live is stuck in Action: waiting from which is doesn't move
Here is my run of fulltextsearch:test, where everything seems to be working great
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:
- 'test' (result: 1, expected: ["simple"]) ok
- 'document is a simple test' (result: 2, expected: ["simple","license"]) ok
- '"document is a test"' (result: 0, expected: []) ok
- '"document is a simple test"' (result: 1, expected: ["simple"]) ok
- 'document is a simple -test' (result: 1, expected: ["license"]) ok
- 'document is a simple +test' (result: 1, expected: ["simple"]) ok
- '-document is a simple test' (result: 0, expected: []) ok
- 'document is a simple +test +testing' (result: 1, expected: ["simple"]) ok
- 'document is a simple +test -testing' (result: 0, expected: []) ok
- 'document is a +simple -test -testing' (result: 0, expected: []) ok
- '+document is a simple -test -testing' (result: 1, expected: ["license"]) ok
- 'document is a +simple -license +testing' (result: 1, expected: ["simple"]) ok
Updating documents access. ok
Pausing 3 seconds 1 2 3 ok
Searching with group access rights:
- 'license' - [] - (result: 0, expected: []) ok
- 'license' - ["group_1"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_1","group_2"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_3","group_2"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_3"] - (result: 0, expected: []) ok
Searching with share rights:
- 'license' - notuser - (result: 0, expected: []) ok
- 'license' - user2 - (result: 1, expected: ["license"]) ok
- 'license' - user3 - (result: 1, expected: ["license"]) ok
Removing test. ok
Unlocking process ok
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Group Folder copy with Elasticsearch 7.9.2, then run fulltextsearch:live and inspect the cron.php behavior described in the report. Compare the indexing and search results with fulltextsearch:test; done means the copied file location is indexed and appears in search after either scheduled cron processing or fulltextsearch:live.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, php
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100