Lora search function works strangely.
It's looks like civitai changed something. I don't know exact rule, so I gonna show example:
Lets say that I want this LORA DetailedEyes_XL (https://civitai.com/models/120723/detailedeyesxl).
If I search by this name "DetailedEyes_XL" in civitai I got it right in first place. (and 239 other result, at this particular moment).
But If I use their API to get list of LORAs in json (which is also used by app), like this:
https://civitai.com/api/v1/models?limit=100&types=LORA&nsfw=true&query=DetailedE...
(since limit cannot be bigger than 100, you have to use "cursor" from metadata to goto next page)
"nextPage":"https://civitai.com/api/v1/models?limit=100&types=LORA&nsfw=true&query=DetailedEyes_XL&cursor=1292902"
It didn't occur until last page:
"nextPage":"https://civitai.com/api/v1/models?limit=100&types=LORA&nsfw=true&query=DetailedEyes_XL&cursor=393901"
But it will work properly if you search for it with name without special characters ("detailedeyesxl"):
Of course in this way you cannot search for LORAs with space in name. It is strange.
My guess is that this API give response in ascending order. So the best results are very last and since app is getting only first 20 results of search it looks like it is getting something random unless you got search result with like one or few element.
Strangely adding "sort" option to api url doesn't help:
https://civitai.com/api/v1/models?limit=100&types=LORA&sort=Highest%20Rated&nsfw...