Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The new file or null otherwise.

file[] files.find(query, [options={}])

...

Warning

The function signature files.find(query, [page], [limit]) is deprecated and will produce a warning in log files.

Retrieves limit file for the given Sphinx query. The sort order relies on the database order (MySQL in IFE3 and PostgreSQL in IFE4).

...

Parameter options:object (optional)

...

Default value for page:int

...

Deprecated! Sets the page of the result. The result contains the elements from index (page-1) x limit -> page x limit.

Parameter limit:int (optional default:10)

Deprecated! The maximum number of resultswill be 1 if no value is provided.

Default value for limit:int will be 10 if no value is provided.

Returns file[]

Returns an array of the found files or an empty array if no files match the query.

...