|
27 | 27 | import android.util.Log;
|
28 | 28 |
|
29 | 29 | import com.algolia.search.offline.core.LocalIndex;
|
30 |
| -import com.algolia.search.offline.core.SearchResults; |
| 30 | +import com.algolia.search.offline.core.Response; |
31 | 31 |
|
32 | 32 | import org.json.JSONArray;
|
33 | 33 | import org.json.JSONException;
|
@@ -488,7 +488,7 @@ public void run()
|
488 | 488 | String[] objectFilePaths = new String[objectFiles.size()];
|
489 | 489 | for (int i = 0; i < objectFiles.size(); ++i)
|
490 | 490 | objectFilePaths[i] = objectFiles.get(i).getAbsolutePath();
|
491 |
| - int status = getLocalIndex().build(settingsFile.getAbsolutePath(), objectFilePaths, true /* clearIndex */); |
| 491 | + int status = getLocalIndex().build(settingsFile.getAbsolutePath(), objectFilePaths, true /* clearIndex */, null /* deletedObjectIDs */); |
492 | 492 | if (status != 200) {
|
493 | 493 | throw new AlgoliaException("Build index failed", status);
|
494 | 494 | }
|
@@ -840,7 +840,7 @@ JSONObject run() throws AlgoliaException {
|
840 | 840 | private JSONObject _searchOffline(@NonNull Query query) throws AlgoliaException
|
841 | 841 | {
|
842 | 842 | try {
|
843 |
| - SearchResults searchResults = getLocalIndex().search(query.build()); |
| 843 | + Response searchResults = getLocalIndex().search(query.build()); |
844 | 844 | if (searchResults.getStatusCode() == 200) {
|
845 | 845 | String jsonString = new String(searchResults.getData(), "UTF-8");
|
846 | 846 | JSONObject json = new JSONObject(jsonString);
|
@@ -1068,7 +1068,7 @@ JSONObject run() throws AlgoliaException {
|
1068 | 1068 | private JSONObject _browseMirror(@NonNull Query query) throws AlgoliaException
|
1069 | 1069 | {
|
1070 | 1070 | try {
|
1071 |
| - SearchResults searchResults = getLocalIndex().browse(query.build()); |
| 1071 | + Response searchResults = getLocalIndex().browse(query.build()); |
1072 | 1072 | if (searchResults.getStatusCode() == 200) {
|
1073 | 1073 | String jsonString = new String(searchResults.getData(), "UTF-8");
|
1074 | 1074 | JSONObject json = new JSONObject(jsonString);
|
|
0 commit comments