2017 © Pedro Peláez
 

neos-package simplesearch

Plain PHP search engine using sqlite3 as storage backend.

image

flowpack/simplesearch

Plain PHP search engine using sqlite3 as storage backend.

  • Friday, April 27, 2018
  • by kitsunet
  • Repository
  • 3 Watchers
  • 19 Stars
  • 6,832 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 10 Forks
  • 8 Open issues
  • 13 Versions
  • 4 % Grown

The README.md

SensioLabs Insight Code Climate, (*1)

Flowpack.SimpleSearch

A simple php search engine based on SQLite or MySQL. Performance is acceptable but decreases quickly with the amount of entries. Depending on the queries you want to perform a sane upper limit is somewhere around 50000 entries (for SQLite)., (*2)

This package has no hard dependencies on anything so could be used in any project., (*3)

Code and API are still pretty rough. I just implemented the minimum version. A higher level query API will follow (see the ContentRepositoryAdaptor for the direction)., (*4)

If you look at the code the sqlite storage of properties looks pretty strange but with SQlite3 the actual storage type is determined per row, so a column can contain different data types in each row. That should make all those empty rows more or less acceptable. We are trying to mimic a document database here after all., (*5)

Using MySQL

To use MySQL, switch the implementation for the interfaces in your Objects.yaml and configure the DB connection as needed:, (*6)

Flowpack\SimpleSearch\Domain\Service\IndexInterface:
  className: 'Flowpack\SimpleSearch\Domain\Service\MysqlIndex'

Neos\ContentRepository\Search\Search\QueryBuilderInterface:
  className: 'Flowpack\SimpleSearch\ContentRepositoryAdaptor\Search\MysqlQueryBuilder'

Flowpack\SimpleSearch\Domain\Service\MysqlIndex:
  arguments:
    1:
      value: 'Neos_CR'
    2:
      value: 'mysql:host=%env:DATABASE_HOST%;dbname=%env:DATABASE_NAME%;charset=utf8mb4'
  properties:
    username:
      value: '%env:DATABASE_USERNAME%'
    password:
      value: '%env:DATABASE_PASSWORD%'

The arguments are the index identifier (can be chosen freely) and the DSN., (*7)

The Versions

27/04 2018

dev-master

9999999-dev

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

The Requires

 

27/04 2018

3.0.0

3.0.0.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

The Requires

 

15/02 2017

2.0.x-dev

2.0.9999999.9999999-dev

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

The Requires

 

15/02 2017

2.0.0

2.0.0.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

The Requires

 

15/02 2017

1.3.x-dev

1.3.9999999.9999999-dev

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

05/07 2016

1.3.3

1.3.3.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

05/07 2016

1.2.x-dev

1.2.9999999.9999999-dev

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

05/07 2016

1.2.2

1.2.2.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

01/02 2016

1.3.2

1.3.2.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

01/02 2016

1.3.1

1.3.1.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

29/06 2015

1.3

1.3.0.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

31/03 2015

1.2.1

1.2.1.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT

03/09 2014

1.2.0

1.2.0.0

Plain PHP search engine using sqlite3 as storage backend.

  Sources   Download

MIT