excerpt_custom.php 441 B

1234567891011
  1. <?php
  2. require ("sphinxapi.php");
  3. $cl = new SphinxClient();
  4. $cl->BuildExcerpts(array('10', '20'), 'index', 'word1 word2', array('before_match' => 'before',
  5. 'after_match' => 'after',
  6. 'chunk_separator' => 'separator',
  7. 'limit' => 10));
  8. ?>