Problem A collection that indexes wiki pages and receives its list of spaces through the collections REST API stays empty: no page of those spaces is indexed, and nothing is logged. The same collection works when the spaces are chosen in the collection's edit form. Steps to reproduce
- In the collections administration, create a collection named Test that uses the wiki pages document store, without selecting any space.
- Send PUT /rest/wikis/xwiki/aiLLM/collections/Test with the JSON body {{ {"document_spaces": ["Sandbox"]}
}}.
- Wait for the indexing to finish, or trigger a reindex of the collection.
- Open the chunks list of the collection.
Result The collection has no chunks. The collection page shows the space as selected. Expected The pages of the space are indexed, as when the space is selected in the edit form. Cause The REST API stores the list of spaces in a different storage form than the one the edit form uses. The query that finds the collections a page belongs to only reads the form used by the edit form. |