Search lucene refactoring

This is https://github.com/owncloud/apps/pull/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.
That's how it is now. The problem is that I only get the File path in the hook, which quickly exceeds the column length reserved in the jobs table. I would love to store just the id. It's just not what our current hook system gives me.

On 3. Juli 2014 15:13:31 MESZ, icewind1991 <notifications@github.com> wrote:
>>  			//Add Background Job:
>> -			BackgroundJob::addQueuedTask(
>> -					'search_lucene',
>> -					'OCA\Search_Lucene\Hooks',
>> -					'doIndexFile',
>> -					json_encode($param) );
>> +			BackgroundJob::registerJob( '\OCA\Search_Lucene\IndexJob',
>$arguments );
>
>Wouldn't it make more sense to have this hook only index the file the
>hook is called on instead of always doing a full index
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/owncloud/search_lucene/pull/1/files#r14512249

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.