Skip to content

Release Candidate

Compare
Choose a tag to compare
@timopruesse timopruesse released this 19 Jun 21:34
· 37 commits to master since this release

Improved the DataScout data component.

  • you can still do a simple search like in the old version by using the "SimpleSearch" class
  • you can now do a fulltext search by using the "FulltextSearch" class (make sure that you have a FULLTEXT INDEX on the columns!!)
/**
  * New way of constructing the DataScout
  */
$dataScout = new DataScout(new SimpleSearch(['name']));
// or the new fulltext search
$dataScout = new DataScout(new FulltextSearch(['name']));
// it supports different modes like "IN NATURAL LANGUAGE MODE", "IN BOOLEAN MODE" and "WITH QUERY EXPANSION"
$dataScout->setMode('WITH QUERY EXPANSION');