This issue has been created
There are 2 updates.
 
 
LLM AI Integration / cid:jira-generated-image-avatar-6cbbd1c9-2a47-40c8-8ff8-941b19b673aa LLMAI-238 Open

Semantic search never returns more than 10 results

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b4e47136-96d2-4879-b68d-83f9f29c5eca Paul Pantiru created this issue on 20/Nov/26 11:30
 
Summary: Semantic search never returns more than 10 results
Issue Type: cid:jira-generated-image-avatar-6cbbd1c9-2a47-40c8-8ff8-941b19b673aa Bug
Affects Versions: 0.3
Assignee: Unassigned
Created: 20/Nov/26 11:30
Priority: cid:jira-generated-image-static-major-44982ae1-79aa-435a-a603-f56f084bcf2d Major
Reporter: Paul Pantiru
Description:

Problem

A search that asks for more than 10 semantic results gets at most 10. The keyword half of the same search returns as many results as asked.

Steps to reproduce

  1. Index a collection with more than 20 chunks.
  2. Send POST /rest/wikis/xwiki/aiLLM/search?query=<text>&collection=<name>&limitSemanticResults=20&limitKeywordResults=0.

Result

10 results.

Expected

20 results, or fewer when chunks with identical content are merged.

Cause

The semantic query asks Solr for the requested number of nearest neighbors but does not set the number of rows to return, so Solr applies its default of 10.

Impact

The REST search, the MCP search_collections tool and the chat context are affected whenever more than 10 semantic results are configured or requested.

 
 

2 updates

 
cid:jira-generated-image-avatar-b4e47136-96d2-4879-b68d-83f9f29c5eca Changes by Paul Pantiru on 20/Nov/26 11:30
 
Fix Version: 1.0.1
Assignee: Paul Pantiru