Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nticaric committed Apr 6, 2016
1 parent 6271c35 commit 83965b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ Searching for a phrase or keyword is trivial

$res = $tnt->search("This is a test search", 12);

print_r($res); //returns 12 document ids that best match your query
print_r($res); //returns an array of 12 document ids that best match your query

//to display the results you need an aditional query
//SELECT * FROM articles WHERE id IN $res;
//SELECT * FROM articles WHERE id IN $res ORDER BY FIELD(id, $res);
```

The ORDER BY FIELD clause is important otherwise the database engine will not return
the results in required order

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
Expand Down

0 comments on commit 83965b3

Please sign in to comment.