Page MenuHomePhabricator

HTTPFutureHTTPResponseStatus when searching for unindexed document types
Closed, ResolvedPublic

Description

I don't think we're actually planning on using them so this is probably very low priority for us, but I found that searching for only the "Initiative" document type (which appears like these: https://secure.phabricator.com/I1 https://secure.phabricator.com/I2) returns this error:

HTTPFutureHTTPResponseStatus
[HTTP/400]
{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[i5bA3UBCTgC2Bmr1Px8aYQ][phabricatormain][0]: RemoteTransportException[[elastic1031][inet[/10.64.48.55:9300]][search/phase/query]]; nested: SearchParseException[[phabricatormain][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"sort\":[{\"dateCreated\":\"desc\"}],\"from\":0,\"size\":101}]]]; nested: SearchParseException[[phabricatormain][0]: from[-1],size[-1]: Parse Failure [No mapping ...

Event Timeline

Krenair raised the priority of this task from to Needs Triage.
Krenair updated the task description. (Show Details)
Krenair subscribed.
demon renamed this task from HTTPFutureHTTPResponseStatus when searching for only "Initiative" document type to HTTPFutureHTTPResponseStatus when searching for unindexed document types.Dec 30 2014, 5:24 AM
demon claimed this task.
demon triaged this task as Medium priority.
demon set Security to None.

This is more general than initially reported. Widened summary and claiming. I think the best way to do it will be to expand the mapping created at initialization so we've got a complete document structure for querying.

Other option would be to just hide the document type when there are none but that feels more hacky and less likely to be accepted upstream.

Merged upstream, is this to be closed now?

Qgil subscribed.
Restricted Application added a subscriber: TerraCodes. · View Herald Transcript