esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

/characters/{character_id}/search/ returns fewer structure results than you might expect

Open wtfrank opened this issue 9 years ago • 3 comments

The public structure endpoint /universe/structures/ returns 1893 structures. Right now, 3 of those give 403 responses when you query /universe/structures/{structure_id}/. Of the remaining 1890 public structures, 1840 have names that contain the three character string " - " and 50 don't.

You would therefore expect an authenticated search of structures containing " - " to return ~1840 results for a character that's not on any ACLs. However only 172 results are returned from a search of the form:

searchStrucs = client.Search.get_characters_character_id_search( character_id=charId, search=" - ", strict=False, categories=["structure"],

Is there a deliberate upper limit on the number of results that will be returned or is this a bug? If its a deliberate limit then please document in the swagger spec :)

wtfrank avatar Nov 23 '16 18:11 wtfrank

Hrm, there might be an accidental limit coming from Sphinx, the search engine that backs these queries.

ghost avatar Nov 24 '16 13:11 ghost

This is also a bug with Ansiblex Jump Gates. If you don't have "docking access" to the gate itself, it's excluded from the /character/{character_id}/search endpoint. This is not what the scope documentation says, esi-search.search-structures.v1 is documented as searching what the player can see in the structure browser. I can see my corp's jump gates in-game in the structure browser, but I cannot see them via ESI. It seems like it's not taking ACLs into account at all despite needing authentication to use that particular endpoint in the first place.

mminnick avatar Mar 18 '20 15:03 mminnick

Is there any news?

Raerten avatar Aug 27 '20 14:08 Raerten