Somehow I cannot find real clear details on how search by relevance works in advanced search. Does anyone have details?
Topic on Extension talk:AdvancedSearch/Flow
Unfortunately it's hard to tell what you mean when you say "how it works"? There is a dedicated "sorting order" field in the AdvancedSearch interface you can play around with. Maybe you are looking for Help:CirrusSearch?