This issue has been created
There are 3 updates.
 
 
LLM AI Integration / cid:jira-generated-image-avatar-79b3e22e-41a7-4975-ba2e-3017c52700ca LLMAI-236 Open

A collection whose spaces are set through the REST API never indexes any page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-88c15663-ed96-4742-b4ca-3c2e63138988 Paul Pantiru created this issue on 20/Nov/26 10:29
 
Summary: A collection whose spaces are set through the REST API never indexes any page
Issue Type: cid:jira-generated-image-avatar-79b3e22e-41a7-4975-ba2e-3017c52700ca Bug
Affects Versions: 0.5
Assignee: Unassigned
Created: 20/Nov/26 10:29
Priority: cid:jira-generated-image-static-major-37e79101-b6cb-4afc-9b45-7dcb361b84db Major
Reporter: Paul Pantiru
Description:

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

  1. In the collections administration, create a collection named Test that uses the wiki pages document store, without selecting any space.
  2. Send PUT /rest/wikis/xwiki/aiLLM/collections/Test with the JSON body {{ {"document_spaces": ["Sandbox"]}

    }}.

  3. Wait for the indexing to finish, or trigger a reindex of the collection.
  4. 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.

 
 

3 updates

 
cid:jira-generated-image-avatar-88c15663-ed96-4742-b4ca-3c2e63138988 Changes by Paul Pantiru on 20/Nov/26 10:29
 
Fix Version: 1.0.1
Description: h2. 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.

h2. 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.

h2. Result
The collection has no chunks. The collection page shows the space as selected.

h2. Expected
The pages of the space are indexed, as when the space is selected in the edit form.

h2. 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.
Assignee: Paul Pantiru