File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import com .coveo .pushapiclient .BatchUpdate ;
2+ import com .coveo .pushapiclient .DeleteDocument ;
23import com .coveo .pushapiclient .DocumentBuilder ;
34import com .coveo .pushapiclient .Source ;
45
@@ -13,14 +14,14 @@ public static void main(String[] args) {
1314 DocumentBuilder firstDocumentToAdd = new DocumentBuilder ("https://my.document.uri?ref=1" , "My first document title" );
1415 DocumentBuilder secondDocumentToAdd = new DocumentBuilder ("https://my.document.uri?ref=2" , "My second document title" );
1516
16- DocumentBuilder firstDocumentToDelete = new DocumentBuilder ("https://my.document.uri?ref=3" , "My document to delete " );
17+ DeleteDocument firstDocumentToDelete = new DeleteDocument ("https://my.document.uri?ref=3" );
1718
1819 ArrayList <DocumentBuilder > listOfDocumentsToAddOrUpdate = new ArrayList <>() {{
1920 add (firstDocumentToAdd );
2021 add (secondDocumentToAdd );
2122 }};
2223
23- ArrayList <DocumentBuilder > listOfDocumentsToDelete = new ArrayList <>() {{
24+ ArrayList <DeleteDocument > listOfDocumentsToDelete = new ArrayList <>() {{
2425 add (firstDocumentToDelete );
2526 }};
2627
You can’t perform that action at this time.
0 commit comments