views:

13

answers:

0

I've got an array with data. For example

$data = array(
    'test',
    'test2',
    'tost',
    'testing',
    'another',
    'search'
);

I wanna do a search on this array. lets say "test~" with lucene. I would for that way want to have the first 5 results in the array, and as feedback i need an array with those 5 items. Is this possible in Zend Lucene with PHP or not. And if so, how?