Full text search on OwnCloud 9.1

known_app_bug
fulltext_search
help
9.1.x

#1

Hello guys,

I installed owncloud 9.1 and am trying it and it works fine .

I searched the word "share" in the search field and I had no results . This word is present in one of the sample files.
The full text search function is present in this version of ownCloud ? Should I install some extensions to do it?

Regards,
Stefano


How to enable Full text Search
#2

Hi,

there is no fulltext search in oC 9.1. The app providing this functionality wasn't updated for oC 8.2+:

https://apps.owncloud.com/content/show.php/Search+Lucene?content=168709


How to enable Full text Search
#3

Thank's for your reply.

I installed the apps and it works, but when i click on the result the server shows the following error:

Not Found
The requested URL /owncloud/files/index.php was not found on this server.

The path seems wrong.

Have you some idea to solve the error?

Regards,
Stefano


#4

As already written: The app is not compatible with current oC versions. You need to wait until some one is releasing a compatible version.

Closing here for now as the needed info was already provided.


closed #5

opened #6

#7

Re-opening here. Just stumbled over a new app which seems to provide fulltext search for oC 9.1+ together with Apache Solr (needs to be installed separately):

https://apps.owncloud.com/content/show.php/Nextant?content=174750


#8

The ownCloud company is also offering Full Text Search together with ElasticSearch as a Consulting project for Enterprise customers. https://owncloud.com/successful-owncloud-consulting-projects/
Considering full integration once the API is ready, so Desktop and Mobile Apps can also benefit from it.


#9

If it can be of any help, I have stumbled across this situation myself and solved with few lines of coding.

The issue is that lucene generates this type of url:

http://domain.com/files/index.php?dir=%2FDocuments&file=Example.odt

and OC wants this:

http://domain.com/remote.php/webdav/Documents/Example.odt

This is what I did:

open this file:

yourownclouddir\apps\search_lucene\search\luceneresult.php

and overwrite the public function __construct(QueryHit $hit) with these lines:

public function __construct(QueryHit $hit) {
		$this->id = (string)$hit->fileId;
		$this->path = $this->getRelativePath($hit->path);
		$this->name = basename($this->path);
		$this->size = (int)$hit->size;
		$this->score = $hit->score;
		
		$myfile='webdav'.dirname($this->path).'/'.$this->name;
		$this->link = \OCP\Util::linkToAbsolute(
			'remote.php',
			$myfile
		);
		$this->permissions = $this->getPermissions($this->path);
		$this->modified = (int)$hit->mtime;
		$this->mime_type = $hit->mimetype;
	}

After you've saved it, perform a search and click on any file the search has provided and it will work.

Hope it helps.


#10

Hi,

thanks for posting this. Could you create a Pull Request with the fix on github at:

https://github.com/owncloud/search_lucene/

so anyone can benefit from this? Thanks.


#11

Thanks, done it just now.