You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was evaluating FlexSearch as replacement for our current search engine, but we are hitting a pretty big roadblock with the lack of scores in the search results... (or I simply can't figure out how to get internal scoring to get returned).
We are indexing some big government regulations, so we build a separate search index for each regulation since our users can have access to only one, two or more of these regulations, we will dynamically search the regulations they have enabled. This means, we run multiple searches in parallel, then we combine the results in the end, and return them a unified search result. However, because Flexsearch doesn't return it's internal score for each result, we can rank the results from each of the searches into this unified list. Obviously, this is very important, because we want the results ranked from best match to lowest match.
I added the custom "score" function to the indexes of our documents, but it doesn't even seem to get called.
Any known method to get FlexSearch to return a score along with the results when I do a search on our Document object? I can't seem to find anything in the docs, and google AI keeps hallucinating solutions that don't exist .. LOL
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I was evaluating FlexSearch as replacement for our current search engine, but we are hitting a pretty big roadblock with the lack of scores in the search results... (or I simply can't figure out how to get internal scoring to get returned).
We are indexing some big government regulations, so we build a separate search index for each regulation since our users can have access to only one, two or more of these regulations, we will dynamically search the regulations they have enabled. This means, we run multiple searches in parallel, then we combine the results in the end, and return them a unified search result. However, because Flexsearch doesn't return it's internal score for each result, we can rank the results from each of the searches into this unified list. Obviously, this is very important, because we want the results ranked from best match to lowest match.
I added the custom "score" function to the indexes of our documents, but it doesn't even seem to get called.
Any known method to get FlexSearch to return a score along with the results when I do a search on our Document object? I can't seem to find anything in the docs, and google AI keeps hallucinating solutions that don't exist .. LOL
Beta Was this translation helpful? Give feedback.
All reactions