Skip to content

feat(search): report why a search result is partial - #8

Merged
marevol merged 1 commit into
mainfrom
feat/report-why-results-are-partial
Sep 14, 2026
Merged

marevol merged 1 commit into
mainfrom
feat/report-why-results-are-partial

Conversation

@marevol

@marevol marevol commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Depends on codelibs/fess#3440.

codelibs/fess#3440 fixes the partial-results flag in Fess. It used to be set only when a shard failed, while the search UI and the log called that a timeout, and a real query timeout was not flagged at all. After it, partial is set for both, SearchRenderData gains isTimedOut() and isShardFailed() to say which, and /api/v2/search in Fess core returns them as timed_out and shard_failed.

This does the same for /api/v1/documents: the search response has timed_out and shard_failed right after partial, and openapi-user.yaml declares both. partial keeps its meaning, so existing clients are unaffected.

openapi-user.yaml also still said info.version: 15.7.0 and linked the 15.7 documentation; the 15.8.0 release shipped it that way, because the version bumps touch only pom.xml. It now says 15.9.0, the release this response ships in, and links the 15.9 documentation.

Testing

Merge order

CI compiles against the published Fess snapshot, so it cannot pass until codelibs/fess#3440 is merged and a snapshot is deployed, and #7 is merged.

@marevol marevol added this to the 15.9.0 milestone Sep 13, 2026
With codelibs/fess#3440, Fess flags a result partial when the query timeout
elapsed as well as when a shard failed, and SearchRenderData says which of the
two happened. /api/v1/documents only passed partial through, so a client still
could not tell a timeout from a failed shard.

The response now carries timed_out and shard_failed right after partial, and
openapi-user.yaml declares both. partial keeps its meaning.

openapi-user.yaml still said 15.7.0 and linked the 15.7 documentation; 15.8.0
shipped it that way. It now says 15.9.0, the release this response ships in,
and links the 15.9 documentation.
@marevol
marevol force-pushed the feat/report-why-results-are-partial branch from bf73554 to c2a9da4 Compare September 13, 2026 05:50
@marevol
marevol merged commit 5a0f5df into main Sep 14, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant