2017 © Pedro Peláez
 

library search

A simple Pragma module which can help to index and search text in Pragma Framework

image

pragma-framework/search

A simple Pragma module which can help to index and search text in Pragma Framework

  • Thursday, July 12, 2018
  • by cyrilrouyer
  • Repository
  • 2 Watchers
  • 1 Stars
  • 531 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 7 Versions
  • 28 % Grown

The README.md

Pragma Search

A simple Pragma module which can help to index and search text in Pragma Framework., (*1)

Installation

In composer.json add:, (*2)

require {"pragma-framework/search": "dev-master"}

Config

Pragma\Search use a stemmer (wamania/php-stemmer) in order to extends the search to other words with the same root., (*3)

To handle your language, you can specify the lang of your text:, (*4)

define('STEMMER_LANGUAGE', 'French');

By default, the stemmer works with "English", (*5)

And define:, (*6)

define('PRAGMA_MODULES','core,search');

For CLI indexation., (*7)

Define your own min length for words the system should index

By default, the min length is 3 characters. But you can define a custom constant named PRAGMA_SEARCH_MIN_WORD_LENGTH in order to change this behavior., (*8)

Skip the contexts during the indexation

If you don't aim to display the context of a result coming from the search, you can skip the contexts during the indexation by setting PRAGMA_SEARCH_SKIP_CONTEXT to true., (*9)

CLI exec

php public/index.php indexer:run

or, (*10)

php public/index.php indexer:rebuild

The Versions

12/07 2018

dev-master

9999999-dev

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

12/07 2018

1.1.1

1.1.1.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

12/07 2018

1.0.3

1.0.3.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

12/07 2018

1.1.0

1.1.0.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

12/07 2018

1.0.2

1.0.2.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

30/05 2018

1.0.1

1.0.1.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma

20/11 2017

1.0.0

1.0.0.0

A simple Pragma module which can help to index and search text in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework search index pragma