-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
Thanks @butonic for the new release... It has been installed on my server (ownCloud 6.0.1 packaged for debian) and here is my feedback... First of all, as a reminder, as I had problems previously with the cron process for the indexation, I switched it to the Ajax method. So after deploying the latest version and accessing my owncloud (with 2 different users), here is what I got in the
After browsing a bit on the ownCloud interface:
Or doing the same with another user:
The table
Table Table
And on the file system:
The only error I have in the PHP error log file is now this one below, but I don't think it's related to the search lucene module (because raised after my first set of tests)
But unfortunately I have the feeling it's not indexing at the moment, have to try additional test using my previous test cases explained in #4 Alexandre |
Hello guys, made a new test with my test case explained on #4 : 1/ Edit through owncloud interface a file
3/ Check
4/ Go back to owncloud interface -
5/ Wait for background job to execute and check
6/ Table 7/ Check table 8/ Content of
I then ran a second test with a document .odt but it didn't index either. Content of
... but this time no PHP error. So unfortunately, at least for me, indexing does not work anymore at all. Content of Waiting now for further instructions ;-) Thanks, Alexandre 8) |
@alexboss sorry to let you waiting so long. I finally found some time to bring this PR up to speed for OC7. It would be great if you could test this again (well ... requires OC7) ... especially migrating from OC6 to OC7 with search_lucene app enabled. Also pulling @MorrisJobke @PVince81 @schiesbn @icewind1991 and @DeepDiver1975 here. Please take some time to try the new version. It now uses the file id as the key in the lucene index, which requires a complete reindex (will work automagically in the background). But that allows me to cleanly solve several problems. |
// the cache already knows mime and other basic stuff | ||
$data = $view->getFileInfo($path); | ||
$data = $this->view->getFileInfo($path); | ||
if (isset($data['mimetype'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you're touching this anyway, it would be better to switch to the using the fileinfo as an object ($data->getMimetype()
etc)
Overall this seems like a great improvement |
$user = OCP\User::getUser(); | ||
|
||
OC_Util::tearDownFS(); | ||
OC_Util::setupFS($user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reason behind this? The filesystem should already be setup properly for the logged in user
@icewind1991 could you re check the search_lucene refactoring? I moved to the new public files api. |
…gger to automatically set the app name
…kipped files and file setup
This is owncloud-archive/apps#1624 moved to this Repo. It does not change the database.xml but changes the way backgroundjobs are used to index new files and update changed files.
Also starts adding unit tests and initial README.md Will enable travis testing and add more tests in future PR.
@DeepDiver1975 @karlitschek @kabum see commit messages for detailed changes.