[Bug]: When sorted by Relevance, infinite loading seems to be wrong #17634
-
Checklist
Describe the problem you are havingWhen searching similar, sorting by default is on Relevance. First 25 results are loaded and sorted by score, and then when scrolling down, infinite loading will send a new API request that would include ID of similar object and before=time_stamp of the last of those 25 received objects. Would one not expect to get then results with lower score then? I might be missing the concept though. Steps to reproduce... Version0.15.0 In which browser(s) are you experiencing the issue with?No response Frigate config file-docker-compose file or Docker CLI command-Relevant Frigate log output-Relevant go2rtc log output-Operating systemOther Linux Install methodDocker Compose Network connectionWired Camera make and modelPanasonic Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpful{ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
it's not really clear what you mean, it is loading objects in order of similarity to the image that was originally searched on |
Beta Was this translation helpful? Give feedback.
Because the results are sorted by similarity, the vast majority of good matches will come in the first 25 results. The search API already has a full list of events that match, sorted by distance, so using the before date is the easiest way to pull a new page of objects. Technically, there is some chance that matching events are excluded, but paginating directly on the search distance will greatly complicate the APIs implementation.