Metro-Records / la-metro-councilmatic

:metro: An instance of councilmatic for LA Metro
MIT License
6 stars 2 forks source link

Some searches mysteriously time out #718

Open hancush opened 3 years ago

hancush commented 3 years ago

We've only seen one instance of this so far: http://boardagendas.metro.net/search/?order_by=desc&q=consolidated%20audit%20package%20a&search-all=on&sort_by=date

Sorts can be expensive, but, oddly, this search (sans sort) only has 731 results. Larger result sets can be sorted without issue.

hancush commented 3 years ago

Don't see any errors in the Solr logs.

hancush commented 3 years ago

Another: se volvera a pagar pasaje

hancush commented 1 year ago

Theory: Does this have something to do with non-English search terms?

hancush commented 1 year ago

Pause barring update on ElasticSearch migration until December meeting.

antidipyramid commented 8 months ago

Looks like this is still happening with ElasticSearch.

My suspicion is that this is because both of these searches (consolidated audit package a and se volvera a pagar pasaje both contain the (very short!) word a. Searching consolidated audit package e also produces the same behavior. Might have something to do with finding every occurrence of such common strings, even in the middle of words. Not quite sure why it seems to only happen during sorting, though.

Image