[owncloud-devel] OCA.Search: JS-based search results

Devin Ceartas devin at nacredata.com
Mon Apr 25 14:06:28 GMT 2016

FWIW I have a pull request open on the search leucine repo which updates the result display to be compatible with OC 9, though the main focus of the work is allowing search across all shared files not just those.

I am waiting for some experienced OC developers to take a look at that code, and I am also planning to move forward with finding a workable patch for some of the Cron issues which have been noted. 

I am developing on behalf of a nonprofit which does not have a large excess of resources, but very much wants the search lucene module to be maintained and usable as it is a key function for their use of on cloud.

contact info: http://nacredata.com/devin

> On Apr 25, 2016, at 09:57, Victor Dubiniuk <dubiniuk at owncloud.com> wrote:
> IIRC it is not maintained for some time.
> :-/
> You can have a look on how it as done by @butonic a long time ago in search_lucene:
> https://github.com/owncloud/search_lucene/blob/master/appinfo/app.php
> https://github.com/owncloud/search_lucene/blob/master/js/checker.js
> https://github.com/owncloud/search_lucene/blob/master/search/luceneprovider.php
> https://github.com/owncloud/search_lucene/blob/master/search/luceneresult.php
>> On 04/25/2016 11:05 AM, Georg Ehrke wrote:
>> Hey,
>> I’m currently working on the search capabilities of the calendar app.
>> Due to the app’s nature we need to generate the search results in JavaScript.
>> OCA.Search provides three kinds of functions an app can register: filters, renderers, handlers
>> A filter is called when the search input changes and the app is supposed to filter its current view based on the query.
>> As far as I can tell from the code filters are not supposed to generate a list of search results and the result of the filter function is simply ignored.
>> Renderers and handlers both require some server side code, so it’s not suitable in my use case.
>> Is there an ‘official’ way to generate a list of search results in JavaScript?
>> If not, what to do about it?
>> Overwriting OCA.Search.search(…) won’t work, because showResults and addResults are private functions.
>> Just implement my own OCA.Search?
>> One thing I noted during investigating this issue:
>> Our developer documentation is really lacking information about public JS APIs.
>> Now I’m familiar with ownCloud’s code base, but new app developers are really left behind here. :/
>> Cheers,
>> Georg
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel

More information about the Devel mailing list