Skip to content

Commit

Permalink
Merge pull request #121 from XGhozt00/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
nticaric authored Dec 5, 2017
2 parents e4aa719 + 50b8912 commit 053c0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ $res = $tnt->search("This is a test search", 12);

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

//to display the results you need an additional query
//SELECT * FROM articles WHERE id IN $res ORDER BY FIELD(id, $res);
// to display the results you need an additional query against your application database
// 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
Expand Down

0 comments on commit 053c0a0

Please sign in to comment.